Skip to Content
The new glomex player is released! 🎉View upgrade guide

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?

optional abrMode: "auto" | "manual"

Whether this track got selected manually or the player does automatic selection.


height?

optional height: number

The video height in pixels of this variant, if known.


width?

optional width: number

The video width in pixels of this variant, if known.

Last updated on