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

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" tts:padding="5px 3px" tts:backgroundColor="black" tts:displayAlign="after"/>
</layout>


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