Attempting to change tracks in multi-angle adaptive HLS playlis
@tianyif is already working on this.
Since May 14, 2026.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
I wonder if there is any support plan in media3 for the function described in https://github.com/google/ExoPlayer/issues/2600
benwilber
opened on Mar 24, 2017
Contributor
I am trying to change the selected video track in a multi-angle adaptive HLS playlist as described in Listing 13 here "Variant playlist with 3 different camera angles and different bit rates."I have created a test stream with 3 different "angles" each having 3 adaptive variants here:
#EXTM3U
#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="3000k",NAME="Red",AUTOSELECT=YES,DEFAULT=YES
#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="3000k",NAME="Green",AUTOSELECT=YES,DEFAULT=NO,URI="green/index-f1-v1-a1.m3u8"
#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="3000k",NAME="Blue",AUTOSELECT=YES,DEFAULT=NO,URI="blue/index-f1-v1-a1.m3u8"#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="5000k",NAME="Red",AUTOSELECT=YES,DEFAULT=YES
#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="5000k",NAME="Green",AUTOSELECT=YES,DEFAULT=NO,URI="green/index-f2-v1-a1.m3u8"
#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="5000k",NAME="Blue",AUTOSELECT=YES,DEFAULT=NO,URI="blue/index-f2-v1-a1.m3u8"#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="8000k",NAME="Red",AUTOSELECT=YES,DEFAULT=YES
#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="8000k",NAME="Green",AUTOSELECT=YES,DEFAULT=NO,URI="green/index-f3-v1-a1.m3u8"
#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="8000k",NAME="Blue",AUTOSELECT=YES,DEFAULT=NO,URI="blue/index-f3-v1-a1.m3u8"#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=613606,RESOLUTION=1920x1080,CODECS="avc1.640028,mp4a.40.2",VIDEO="3000k"
red/index-f1-v1-a1.m3u8#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=815785,RESOLUTION=1920x1080,CODECS="avc1.640028,mp4a.40.2",VIDEO="5000k"
red/index-f2-v1-a1.m3u8#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1110022,RESOLUTION=2560x1440,CODECS="avc1.640032,mp4a.40.2",VIDEO="8000k"
red/index-f3-v1-a1.m3u8
Unfortunately I'm not able to determine from the TrackSelector API how I can actually change to a different "angle" as a result of user button press, for instance. Is this possible with ExoPlayer v2.3.0 presently?Thanks!
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.