Roku Developer Program

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

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
Elijah_Baley
Level 7

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