Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
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: {
StreamFormat: "hls",
SubtitleConfig: subtitle_config

The captions are TTML and include the following:

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

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