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

Closed captions not appearing

I'm updating a current application for a client and am implementing the new Captioning spec (http://sdkdocs.roku.com/display/sdkdoc/ ... on+Support). My code looks like this:


screen = CreateObject("roVideoScreen")
subtitle_config = {
TrackName: episode.ccURL
}
metadata = {
Stream: {
Url: episode.stream
},
StreamFormat: "hls",
SubtitelConfig: subtitle_config
}
screen.SetContent(metadata)
screen.ShowSubtitle(true)
screen.Show()



my episode.ccURL is in a format as such: http://www.somesite.com/content.xml

The xml looks like this:


<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<tt xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns="http://www.w3.org/ns/ttml">
<head>
<styling>
<style xml:id="s1" tts:color="white" tts:fontFamily="proportionalSansSerif" tts:fontSize="22px" tts:textAlign="left" />
<style xml:id="s2" style="s1" tts:fontStyle="italic" />
</styling>
<layout>
<region xml:id="subtitleArea" style="s1" tts:extent="560px 62px" tts:padding="5px 3px" tts:backgroundColor="black" tts:displayAlign="after" />
</layout>
</head>
<body region="subtitleArea">
<div>
<p begin="00:00:00:00" end="00:00:10:23"> </p>
<p begin="00:00:10:23" end="00:00:14:12">&gt;&gt; male narrator: JULY, 2002,<br />THE WORLD'S PRESS GATHERS IN</p>
<p begin="00:00:14:12" end="00:00:17:18">NEW YORK TO WITNESS THE MOST<br />EXTRAORDINARY AUCTION OF THE NEW</p>
<p begin="00:00:17:18" end="00:00:21:18">MILLENNIUM.<br />JUST ONE ITEM IS FOR SALE:</p>
[...and so forth..]
</div>
</body>
</tt>


I've turned on captions on my box's settings, but the captions are not displaying. Thoughts? My Roku box is a 3100X and has v5.4 build 3358 on it.

Thanks!
0 Kudos
1 REPLY 1
panzhuli
Visitor

Re: Closed captions not appearing

typo.

SubtitelConfig: subtitle_config => SubtitleConfig: subtitle_config
0 Kudos