androidx / androidx/media

Audio tracks not selectable in HLS playlist

Open
#2,634 24 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

enhancement low priority
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Version

Media3 main branch

More version details

Checked using this commit: https://github.com/androidx/media/commit/9ce160359392f243e196b5005157284fc6615180

Also checked on this commit: https://github.com/androidx/media/commit/ae9a2339679826f870690092509a135dffc0d7e4

Devices that reproduce the issue

Android studio emulator running Android 16 (SDK 36.0).

It does not seem to be device specific based on testing.

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps
  1. Play the raw video file: https://img.kaswy.com/hls/243938856/1080/s_0.jpg?t=1727660095
  2. Open up track selector and see multiple available audio tracks for different languages
  3. Play the example m3u8: https://gist.githubusercontent.com/CranberrySoup/493d18335a46008887d1edd7ead4b821/raw/3bf03d13dc1d6aeb3a00aecaca5d08c7b80af5da/example.m3u8
  4. There are no selectable audio tracks besides English in the player
Expected result

There should be selectable audio tracks in the player since the video file contains audio tracks.

Actual result

There are no extra audio tracks in the player when playing from an m3u8.

Media

Backup video file:
https://github.com/user-attachments/assets/fa26c83c-5af7-46f9-ac43-953a95dc30fc

Backup m3u8:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:11
#EXTINF:10.510089,
https://img.kaswy.com/hls/243938856/1080/s_0.jpg?t=1727660095
#EXT-X-ENDLIST
Bug Report
  • You will email the zip file produced by adb bugreport to android-media-github@google.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.