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
Community Upgrade Coming Soon!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12, or you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!