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: 
panzhuli
Level 7

Captions appearing in the middle of the screen

HI all - I'm implementing closed captioning in my app, but they're appearing in the middle of the screen. I don't see an obvious way with the roVideoScreen to position the captions. Here's my code:


subtitle_config = {
TrackName: episode.ccURL
}
metadata = {
Stream: {
Url: episode.stream
},
StreamFormat: "hls",
SubtitleConfig: subtitle_config
}
screen.SetContent(metadata)


The captions are TTML and include the following:


<layout>
<region xml:id="subtitleArea" style="s1" tts:extent="560px 62px" ttsSmiley Tongueadding="5px 3px" tts:backgroundColor="black" tts:displayAlign="after"/>
</layout>


So there's nothing in there about positioning. Any advice is appreciated. Thanks!
0 Kudos