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