Video videoTracks attribute
Definition and usage
videoTracks
Properties return the VideoTrackList object.
The VideoTrackList object represents the available video tracks of the video.
Each available video track is represented by a VideoTrack object.
Example
Get the number of available video tracks:
var x = document.getElementById("myVideo").videoTracks.length;
Syntax
videoObject.videoTracks
Return value
Type | Description |
---|---|
VideoTrackList object |
Represents the available video tracks of the video. VideoTrackList object:
Note:The first available VideoTrack object is at index 0. |
VideoTrack object |
Represents the video track. VideoTrack object properties:
The value of the kind attribute:
|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Not Supported | Not Supported | Not Supported | Not Supported | Not Supported |