Skip to content

Commit 5fffe8b

Browse files
[DOC] fix ->getStreams() delivers a array. No first method there. (#432)
1 parent d1125f7 commit 5fffe8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ $media = FFMpeg::fromDisk('videos')->open('video.mp4');
817817

818818
// The 'getStreams' method will be called on the underlying Media object since
819819
// it doesn't exists on this object.
820-
$codec = $media->getStreams()->first()->get('codec_name');
820+
$codec = $media->getVideoStream()->get('codec_name');
821821
```
822822

823823
If you want direct access to the underlying object, call the object as a function (invoke):

0 commit comments

Comments
 (0)