MediaTrack
Can be returned via MediaContainer.extractDataSource.
MediaTrack An audio or video track that can be used to perform some operations on the track.
Methods
Property | Type | Read only | Description |
---|---|---|---|
duration | number | Yes | Track duration |
kind | "audio" | "video" | Yes | Track type |
volume | number | No | Volume, valid under audio track |
Parameters
kind
Property | Description |
---|---|
audio | Audio tracks |
video | Video tracks |