const videoElem = document.querySelector("video");
let numVideoTracks = 0;
if (videoElem.videoTracks) {
numVideoTracks = videoElem.videoTracks.length;
}VideoTrackList: length property / notebook
VideoTrackList: length property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.