VideoTrack object
Represents a video track for video elements with multiple tracks.
![]() |
Syntax
var videoTrack = VideoTrackList.item(index)
Members
The VideoTrack object has these types of members:
Properties
The VideoTrack object has these properties.
| Property | Access type | Description |
|---|---|---|
|
Read-only |
Returns the TextTrackCue, VideoTrack, or AudioTrack identifier. | |
|
Read-only |
Gets or sets the BCP47 language tag of an AudioTrack, VideoTrack or TextTrack if available, or an empty string if not. | |
|
Get or sets whether a VideoTrack is currently selected. | ||
|
Read-only |
Gets the source buffer associated with the audio or video track. |
Standards information
Remarks
Video tracks are represented on a video element as a VideoTrackList object, which contains one or more video tracks. The videoTracks property is used to get the VideoTrackList object, and individual video tracks are retrieved with indexes into the object.
