Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
grock
Level 7

How to get separate audio and video streams sharing a message port

<stuff deleted>
So at this time I cannot. But the solution below is supported. 

Trying this: ifVideoPlayer->ChangeAudioTrack(trackID as Integer) as void

example below: https://tools.ietf.org/html/draft-pantos-http-live-streaming-20

   #EXTM3U
   #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="English", \
      DEFAULT=YES,AUTOSELECT=YES,LANGUAGE="en", \
      URI="main/english-audio.m3u8"
   #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="Deutsch", \
      DEFAULT=NO,AUTOSELECT=YES,LANGUAGE="de", \
      URI="main/german-audio.m3u8"
   #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="Commentary", \
      DEFAULT=NO,AUTOSELECT=NO,LANGUAGE="en", \
      URI="commentary/audio-only.m3u8"
   #EXT-X-STREAM-INF:BANDWIDTH=1280000,CODECS="...",AUDIO="aac"
   low/video-only.m3u8
   #EXT-X-STREAM-INF:BANDWIDTH=2560000,CODECS="...",AUDIO="aac"
   mid/video-only.m3u8
   #EXT-X-STREAM-INF:BANDWIDTH=7680000,CODECS="...",AUDIO="aac"
   hi/video-only.m3u8
   #EXT-X-STREAM-INF:BANDWIDTH=65000,CODECS="mp4a.40.5",AUDIO="aac"
   main/english-audio.m3u8
0 Kudos
2 REPLIES 2\
renojim
Community Streaming Expert

Re: How to get separate audio and video streams sharing a message port

I'm fairly certain that what you're trying to do is impossible. You can't have both audio player and video player active at the same time. You'd have to remux the audio and video on your server.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
EnTerr
Level 11

Re: How to get separate audio and video streams sharing a message port

... or perhaps there'd be only one video, with the audio embedded - but you'll play it differently?  Smiley Wink
(So that in one of the cases the image is not visible.)
0 Kudos