ExoPlayer adds an additional empty subtitle track not present in the HLS playlist
Open
Nobody has claimed this yet.
bug
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Media3 Version
ExoPlayer 2.18.7
Devices that reproduce the issue
- Samsung Galaxy S21 running Android 13
- NVIDIA Shield running Android 11
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
- Add the provided samples to
media.exolist.json - Play
Subtitle samples > Sample 1 (broken) - Open text track selector/subtitle dialog
Expected result
Only the subtitles given in the HLS playlist are shown in the track selector/subtitle selector dialog
Actual result
An additional subtitle choice with no label ("Unknown") is shown
This is a screenshot from a breakpoint in onTracksChanged() when playing Sample 1 (broken). There are two groups with type=C.TRACK_TYPE_TEXT, but the HLS playlist only contains one subtitle. The first group (id=main:muxed:2) is the erroneous one
Media
Some samples to be added to media.exolist.json:
{
"name": "Subtitle samples",
"samples": [
{
"name": "Sample 1 (broken)",
"uri": "https://nrk-od2.telenorcdn.net/open/ps/mynt/mynt25000121/8092c2d8-4.smil/muxed.m3u8?adap=small"
},
{
"name": "Sample 2 (works)",
"uri": "https://nrk-od2.telenorcdn.net/open/ps/nnfa/nnfa19060123/a2fff27f-7.smil/muxed.m3u8?adap=small"
}
]
}
Bug Report
- You will email the zip file produced by
adb bugreportto dev.exoplayer@gmail.com after filing this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.