Forced subtitle track may not be displayed and selectable by the user
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
### ExoPlayer Version
2.18.0
### Devices that reproduce the issue
* Samsung Galaxy S21 FE running Android 12
### Devices that do not reproduce the issue
_No response_
### Reproducible in the demo app?
Yes
### Reproduction steps
1. Open the attached video file in the demo app
### Expected result
The mkv file contains a single subtitle track with [forced flag](https://www.matroska.org/technical/notes.html#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 the `default` 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](https://github.com/google/ExoPlayer/files/9034708/forced.zip)
### Bug Report
- [ ] You will email the zip file produced by `adb bugreport` to dev.exoplayer@gmail.com after filing this issue.
Contributor guide
Assessment
This issue has not been assessed yet.