Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumHTMLvideo audio tracksSingle-choice MCQ

Given multiple in-band or <track> text tracks, how do you read which one the user is currently viewing from JavaScript?

const video = document.querySelector('video'); for (const t of video.textTracks) { // ... }