androidx / androidx/media

ExoPlayer adds an additional empty subtitle track not present in the HLS playlist

Open
#432 3 comments 0 reactions 1 assignee View on GitHub

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
  1. Add the provided samples to media.exolist.json
  2. Play Subtitle samples > Sample 1 (broken)
  3. 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

studio64_oevZnpSo35

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 bugreport to dev.exoplayer@gmail.com after filing this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.