HTML Audio/Video DOM videoTracks attribute
Example
Get the number of available video tracks:
myVid=document.getElementById("video1"); alert(myVid.videoTracks.length);
Definition and usage
The videoTracks attribute returns a VideoTrackList object.
The VideoTrackList object represents the available video tracks of the video.
The VideoTrack object represents each available video track.
Browser support
No mainstream browser supports the videoTracks attribute.
syntax
video.videoTracks
return value
type | description |
---|---|
TextTrackList object |
represents the available video tracks of the video. VideoTrackList object:
Note:The index of the first available VideoTrack object is 0. |
TextTrack Object |
Represents a video track. Properties of VideoTrack Object:
|