mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 02:43:48 +02:00
Add InputTrack.number
This commit is contained in:
@@ -98,6 +98,10 @@ Once you have an `InputTrack`, you can start extracting metadata from it.
|
||||
// Get a unique ID for this track in the input file:
|
||||
track.id; // => number
|
||||
|
||||
// Get the 1-based index of this track among all tracks of the same type
|
||||
// (e.g., first video track is 1, second video track is 2, etc.):
|
||||
track.number; // => number
|
||||
|
||||
// Check the track's type:
|
||||
track.type; // => 'video' | 'audio' | 'subtitle';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user