Skip to main content
Version: Next

MediaTrack

Can be returned via MediaContainer.extractDataSource.

MediaTrack An audio or video track that can be used to perform some operations on the track.

Reference

Methods

PropertyTypeRead onlyDescription
durationnumberYesTrack duration
kind"audio" | "video"YesTrack type
volumenumberNoVolume, valid under audio track

Parameters

kind

PropertyDescription
audioAudio tracks
videoVideo tracks