MediaPlayer.setTrackSwitchModeFor always fails
Created by: nickygerritsen
It seems that the MediaController has a bug. setSwitchMode
accepts no modes.
This seems to be because of https://github.com/Dash-Industry-Forum/dash.js/blob/development/src/streaming/controllers/MediaController.js#L240
MediaController[mode]
does not exist.
Furthermore setSelectionModeForInitialTrack
has a similar issue, because MediaController.trackSelectionModes[mode]
also doesn't exist.
I'm not entirely sure what needed to be here, but I guess it should check if the mode is valid, right?