tim_beynart
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2017
01:28 PM
Closed Captions fail to display when RAF is integrated (Brightscript v1)
Has anyone run in to this?
This question is for a non-scenegraph application. We have VOD content with embedded captions and server side ads stitched in. So far so good.
Recently we integrated Roku Ad Framework. Now thew captions fail to render. None of the caption logic was touched with the RAF integration. The roImageCanvas instance we provide in SetCaptionScreen is visible on screen during playback, it's the same instance we draw the scrubber in.
Here's a summary of our code to generate captions:
This question is for a non-scenegraph application. We have VOD content with embedded captions and server side ads stitched in. So far so good.
Recently we integrated Roku Ad Framework. Now thew captions fail to render. None of the caption logic was touched with the RAF integration. The roImageCanvas instance we provide in SetCaptionScreen is visible on screen during playback, it's the same instance we draw the scrubber in.
Here's a summary of our code to generate captions:
videoScreen = CreateObject("roVideoScreen")
uiScreen = CreateObject("roImageCanvas")
CaptionRenderer = videoScreen.GetCaptionRenderer()
CaptionRenderer.ShowSubtitle(true)
videoScreen.SetMode(1)
videoScreen.SetCaptionScreen(uiScreen)
9 REPLIES 9
tim_beynart
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2017
01:51 PM
Re: Closed Captions fail to display when RAF is integrated (Brightscript v1)
I narrowed it down to one thing. If I comment out the stitchedAdHandledEvent call in the video loop, captions work as expected.
Is this a known issue with RAF and SSAI? Is there something I missed in the integration docs?
Is this a known issue with RAF and SSAI? Is there something I missed in the integration docs?

Community Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2017
01:04 PM
Re: Closed Captions fail to display when RAF is integrated (Brightscript v1)
In what format are the captions? EIA-608 embedded in H.264 user data? WebVTT or TTML?
tim_beynart
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2017
06:54 AM
Re: Closed Captions fail to display when RAF is integrated (Brightscript v1)
EIA-608 embedded in HLS. We opened a ticket, #3971. Thanks!
NB_
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2017
12:47 PM
Re: Closed Captions fail to display when RAF is integrated (Brightscript v1)
"tim_beynart" wrote:
... Now thew captions fail to render. ...
Can you please clarify in detail what do you mean by "fail to render"?
E.g. do the captions show before the first ad plays? Do they stop showing after an ad - or do you mean they don't show during an ad?
tim_beynart
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2017
01:41 PM
Re: Closed Captions fail to display when RAF is integrated (Brightscript v1)
We have preroll, so I can't speak to what happens before an ad is rendered.
During ads I never see captions, though I cannot guarantee they should be present.
During content the captions do not render at all.
During ads I never see captions, though I cannot guarantee they should be present.
During content the captions do not render at all.
NB_
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2017
03:00 PM
Re: Closed Captions fail to display when RAF is integrated (Brightscript v1)
"tim_beynart" wrote:
We have preroll, so I can't speak to what happens before an ad is rendered.
During ads I never see captions, though I cannot guarantee they should be present.
During content the captions do not render at all.
It would help the troubleshooting if you try without a pre-roll - if there are captions before an ad and they disappear after it, that will direct the investigation in particular direction. Otherwise - in another way.
tim_beynart
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2017
03:16 PM
Re: Closed Captions fail to display when RAF is integrated (Brightscript v1)
Did you guys make any over-the-air changes to the RAF library? Suddenly captions work again. I have not touched our code (been working on another branch).
NB_
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2017
04:03 PM
Re: Closed Captions fail to display when RAF is integrated (Brightscript v1)
"tim_beynart" wrote:
Did you guys make any over-the-air changes to the RAF library? Suddenly captions work again. I have not touched our code (been working on another branch).
Has there been an update to RAF during this past week? That would be a "no".
Btw the version gets printed to console on initialization - also there is a .getLibVersion() method.
tim_beynart
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2017
07:26 AM
Re: Closed Captions fail to display when RAF is integrated (Brightscript v1)
The plot thickens... captions started to work after scrubbing. But once we exit a midroll pod, they are gone again.
I am going to abandon this thread and keep communicating with you guys through our open ticket. Once we find a resolution I'll update this thread.
I am going to abandon this thread and keep communicating with you guys through our open ticket. Once we find a resolution I'll update this thread.