I load content from the following manifest using dash.js into an HTML5 video: MPD file. It contains one video and four audio tracks. I'm trying to figure out how I can enumerate and enable/disable the different audio tracks available.
I understand that if they were added as TRACK
elements to the VIDEO
element I could enable/disable them through video.audioTracks
but that isn't possible as they are loaded from the manifest.
Any pointers as to how I could solve this would be greatly appreciated.
videoObject.audioTracks[audioTrackIndex].enabled = true;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With