Skip to content

Commit f27e342

Browse files
update readme
1 parent 697a729 commit f27e342

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ This package provides integration with **[PHP-FFMpeg](https://github.com/PHP-FFM
2323
- [Transcoding](#transcoding)
2424
- [Saving Files](#saving-files)
2525
- [Live](#live)
26+
- [Metadata](#metadata)
2627
- [Conversion](#conversion)
2728
- [Other Advanced Features](#other-advanced-features)
2829
- [Asynchronous Task Execution](#asynchronous-task-execution)
@@ -268,6 +269,17 @@ $hls
268269

269270
Please see **[FFmpeg Protocols Documentation](https://ffmpeg.org/ffmpeg-protocols.html)** for more information.
270271

272+
### Metadata
273+
You can get information from multimedia streams and the video file using the following code.
274+
``` php
275+
$hls = $hls->save();
276+
$metadata = $hls->metadata()->export();
277+
278+
print_r($metadata);
279+
```
280+
281+
Please see **[the example](https://video.aminyazdanpanah.com/start?r=metadata#metadata)** for more information.
282+
271283
### Conversion
272284
You can convert your stream to a file or to another stream protocols. You should pass a manifest of the stream to the `open` method:
273285

0 commit comments

Comments
 (0)