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: 
srbsdean
Visitor

Captions for Episodic channel

I am trying to add captions to my episodes in my channel. I see in the SDK documentation, the new specs for adding TTML captions to my channel, but I don't see any documentation on how to add it to your episode XML document. I found on another post the following code that was added to the appVideoScreen.brs:
screen = CreateObject("roVideoScreen")
subtitle_config = {
TrackName: episode.ccURL
}
metadata = {
Stream: {
Url: episode.stream
},
StreamFormat: "hls",
SubtitleConfig: subtitle_config
}
screen.SetContent(metadata)
screen.ShowSubtitle(true)
screen.Show()

but I still can't figure out where I put my caption file url in my episode xml document. I am not very good at this stuff, so any help would be greatly appreciated!

Thanks!
0 Kudos
1 REPLY 1
Elijah_Baley
Visitor

Re: Captions for Episodic channel

You need to ask that in the developer's forum:
viewforum.php?f=34
Two Roku Ultras, three Roku 3s and a Roku 1
"Part of the secret of success in life is to eat what you like and let the food fight it out inside." Mark Twain
Van Roy's Law: An unbreakable toy is useful for breaking other toys.
0 Kudos