MDN self-hosted library · e01.org

HTMLMediaElement: audioTracks property

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

html
<video id="video" src="somevideo.mp4"></video>
js
const video = document.getElementById("video");

for (const track of video.audioTracks) {
  track.enabled = false;
}