dash.js
dash.js copied to clipboard
Support for no enabled audio track(s)
This is related to the feature request "Support for playing multi-tracks simultaneously" #1972
** AudioTrackList object represents a dynamic list of zero or more audio tracks, of which zero or more can be enabled at a time. Each audio track is represented by an AudioTrack object.**
Current implementation supports 1..1 enabled audio track (the MediaPlayer API setCurrentTrack(track) requires a valid MediaInfo object)
While #1972 requests 0..N tracks enabled, it would be nice as a first step to be able to have 0..1 enabled track, i.e. be able to disable all the audio tracks ( all AudioTracks objects with enabled property = false)
Thanks!
Thanks for adding it. It is not easy to manage because deactivating a track completely implies changes in the underlying SourceBuffer (otherwise playback will stall because lack of buffer). We are evaluating which changes we would need to apply and will keep you updated.
As pointed out before, this would require us to remove the audio sourcebuffer from the MediaSource. Otherwise playback will stall due to an empty buffer. I don't think this is something that we should implement unless at some point MSE implementations can handle empty Sourcebuffers