You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, if a m3u channel has subtitles, the exoplayer selects and displays automatically the first subtitle. Why not "off" by default?
There should be a method to turn off this default behavior, without hacking the DefaultTrackSelector.
Btw. I tried this, but the player still displays the first subtitle track by default. What am I missing?
DefaultTrackSelector oTrackSelector = new DefaultTrackSelector(this);
DefaultTrackSelector.Parameters parameters = oTrackSelector
.buildUponParameters()
.setPreferredTextLanguage(null) // This ensures no text track is selected by default
.setSelectUndeterminedTextLanguage(false) // Do not select any text track if the language is undetermined
.build();
oTrackSelector.setParameters(parameters);
oPlayer = new ExoPlayer.Builder(this, oRenderersFactory)
.setTrackSelector(oTrackSelector)
.setMediaSourceFactory(oMediaSourceFactory)
.build();