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: 
tim_beynart
Channel Surfer

Multiple Embedded Caption Tracks

Hi! We are trying to test multiple language captions. We use embedded EIA-608 captions in HLS.
I do not understand how to get multiple captions to appear as options in the captions selector (pressing the * button during playback). Is there some configuration I am expected to do?

Here's a pseudo example of our code, it work for default English captions. 
videoContent = createObject("RoSGNode", "ContentNode")
videoContent.url = my_media_url
videoContent.streamformat = "hls"
videoContent.SubtitleConfig = {TrackName:"eia608/1"}
m.videoplayer.content = videoContent
0 Kudos
2 REPLIES 2
tim_beynart
Channel Surfer

Re: Multiple Embedded Caption Tracks

anyone?  😐
0 Kudos
RokuCC
Binge Watcher

Re: Multiple Embedded Caption Tracks

In general, instead of SubtitleConfig, use SubtitleTracks.
eia608 is a special case though... it basically tells the firmware to search for the tracks. When it finds data it will add tracks for the ones it finds data for (like CC1, CC2, Service1 etc).
So in your case it may not be able to find the data, or the data is encrypted. If part of the slice header is in the clear - it will use picture order counts from the H.264 stream to reorder the captions. If only the SEI headers are in the clear, it will use the PTSs to reorder the captions.
0 Kudos