I'm trying to create an accessible <video> element for a regular HLS video stream. However, I noticed that there is no cross-browser way to specify multiple audio tracks and switch between them efficiently, like you can with closed-captions.
I've considered the audioTrack property but this does not work on many browsers. I've tried mediaGroup as well, which is also not cross-browser compatible.
The only thing I've seen that may work is video.js (https://docs.videojs.com/docs/guides/audio-tracks.html), but I was wondering if there was a way to do this without bringing in this library.
Seems odd that you wouldn't be able to do this without a library.
The end goal is to programmatically switch audio tracks for different language audios on an HTML5 video across all (most) browsers.