diff --git a/docs/guide/reading-media-files.md b/docs/guide/reading-media-files.md index 85d3afb..dc8fd42 100644 --- a/docs/guide/reading-media-files.md +++ b/docs/guide/reading-media-files.md @@ -60,6 +60,12 @@ await input.computeDuration(); // => 1905.4615 ``` More specifically, the duration is defined as the maximum end timestamp across all tracks. +Mediabunny also lets you read descriptive metadata tags from media files, such as title, artist, or cover art: +```ts +await input.getMetadataTags(); // => MetadataTags +``` +For more info, see [`MetadataTags`](../api/MetadataTags). + ## Reading track metadata You can extract the list of all media tracks in the file like so: @@ -76,12 +82,6 @@ await input.getPrimaryVideoTrack(); // => InputVideoTrack | null await input.getPrimaryAudioTrack(); // => InputAudioTrack | null ``` -Mediabunny also lets you read descriptive metadata tags from media files, such as title, artist, or cover art: -```ts -await input.getMetadataTags(); // => MetadataTags -``` -For more info, see [`MetadataTags`](../api/MetadataTags). - ::: info Subtitle tracks are currently not supported for reading. :::