VideoTrack object

Represents a video track for video elements with multiple tracks.

HTML5 A vocabulary and associated APIs for HTML and XHTML

 

Syntax

var videoTrack = VideoTrackList.item(index)

Members

The VideoTrack object has these types of members:

Properties

The VideoTrack object has these properties.

PropertyAccess typeDescription

id

Read-only

Returns the TextTrackCue, VideoTrack, or AudioTrack identifier.

language

Read-only

Gets or sets the BCP47 language tag of an AudioTrack, VideoTrack or TextTrack if available, or an empty string if not.

selected

Get or sets whether a VideoTrack is currently selected.

sourceBuffer

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.

 

 

Show: