mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-02 05:13:50 +02:00
Oops
This commit is contained in:
@@ -60,6 +60,12 @@ await input.computeDuration(); // => 1905.4615
|
|||||||
```
|
```
|
||||||
More specifically, the duration is defined as the maximum end timestamp across all tracks.
|
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
|
## Reading track metadata
|
||||||
|
|
||||||
You can extract the list of all media tracks in the file like so:
|
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
|
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
|
::: info
|
||||||
Subtitle tracks are currently not supported for reading.
|
Subtitle tracks are currently not supported for reading.
|
||||||
:::
|
:::
|
||||||
|
|||||||
Reference in New Issue
Block a user