Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
nabeards
Visitor

HLS Alternative Audio

Does anyone know if using alternative audio groups in HLS should work? Here's an example playlist:
#EXTM3U
#EXT-X-VERSION:7
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac-hi",NAME="English",DEFAULT=YES,AUTOSELECT=YES,LANGUAGE="en",URI="aac-hi/playlist.m3u8"

#EXT-X-STREAM-INF:AVERAGE-BANDWIDTH=1777603,BANDWIDTH=1775895,VIDEO-RANGE=SDR,CODECS="avc1.64001e",RESOLUTION=720x404,FRAME-RATE=23.976,CLOSED-CAPTIONS=NONE,AUDIO="aac-hi"
https://example.com/video/playlist.m3u8


When I test this (using the wonderful stream tester tool or within a feed) I get the first second or two of audio, then the audio cuts out. Video plays fine the entire time. This same playlist works correctly in Apple Safari and VLC. The audio seems to cut out right after the initial byterange in the EXT-X-MAP row loads.
0 Kudos
1 REPLY 1
nabeards
Visitor

Re: HLS Alternative Audio

Just a quick follow up: if I use segments instead of byteranges, the first audio segment plays then no other segments play.
0 Kudos