Interface: VideoTrack
Describes a video track (a.k.a. quality/level representation) available in the media source. Commonly used for adaptive bitrate streaming (HLS/DASH) to switch between different qualities.
Properties
active
active:
boolean
Whether this track is currently selected (active) for playback.
bandwidth
bandwidth:
number
Declared bandwidth of the track in bits per second (bps). Used by ABR to choose the appropriate quality based on network conditions.
id
id:
string
Unique identifier for the track.
abrMode?
optionalabrMode:"auto"|"manual"
Whether this track got selected manually or the player does automatic selection.
height?
optionalheight:number
The video height in pixels of this variant, if known.
width?
optionalwidth:number
The video width in pixels of this variant, if known.
Last updated on