HTML Audio/Video DOM videoTracks Property
Example
var vid = document.getElementById("myVideo");
function myFunction() {
alert(vid.videoTracks.length);
}
Meaning
The videoTracks property returns a VideoTrackList object representing the available video tracks.
Note: The first available VideoTrack object is index 0.
Standard Syntax
audio|video.videoTracks
Advertisement
Property Value
| Type | Description |
|---|---|
| VideoTrackList Object | Returns the available video tracks for the video.
|
| VideoTrack Object | Represents a video track.
|