-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forced subtitle track may not be displayed and selectable by the user #10401
Comments
Thanks for the detailed explanation and repro media!
ExoPlayer's Line 3550 in 03569f9
In the
I think there's a couple of approaches here:
I think I prefer (1) - it seems reasonable to me that the player should select the forced subtitle track in the media you've provided. @tonihei Do you have any thoughts on my suggested changes to the |
I think the proposed logic change makes sense. The HLS spec for example only says
Having one of the languages undefined constitutes a "match with the playback environment" I'd say. This means the evaluation for
We could add this option with another parameter in In any case, if we make this change, the problem above should be fixed and it should also work for a mixture of defined and undefined languages because any defined match will always be preferred over a (partially) undefined one even if multiple forced texts are eligible for selection. |
ExoPlayer Version
2.18.0
Devices that reproduce the issue
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
Expected result
The mkv file contains a single subtitle track with forced flag. I would expect the default behavior of
StyledPlayerView
that track would be either in full control of the user or at least that the track would be active/visible.Actual result
Because the subtitle track has
forced
flag, the subtitle selector is disabled (#9432, since r2.18.0). But because the track lacks thedefault
flag, it is not selected and therefore not visible to the user.In versions prior to r2.18.0, user could just open the subtitle selector and enable this track.
I fully understand that ExoPlayer as well as the ui library is more tailored for streaming solutions where operators are in control of the media. So this is just my case for your consideration as files like these (in this case mkv bluray rips) exists and should be valid. It would be just as nice to be able to handle user media files in the
StyledPlayerView
.Media
forced.zip
Bug Report
adb bugreport
to dev.exoplayer@gmail.com after filing this issue.The text was updated successfully, but these errors were encountered: