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

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:

videoScreen = CreateObject("roVideoScreen")
uiScreen = CreateObject("roImageCanvas")
CaptionRenderer = videoScreen.GetCaptionRenderer()
CaptionRenderer.ShowSubtitle(true)
videoScreen.SetMode(1)
videoScreen.SetCaptionScreen(uiScreen)
0 Kudos
9 Replies
tim_beynart
Level 7

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?
0 Kudos
Roku Employee
Roku Employee

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?
0 Kudos
tim_beynart
Level 7

Re: Closed Captions fail to display when RAF is integrated (Brightscript v1)

EIA-608 embedded in HLS. We opened a ticket, #3971. Thanks!
0 Kudos
Roku Employee
Roku Employee

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?
0 Kudos
tim_beynart
Level 7

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. 
0 Kudos
Roku Employee
Roku Employee

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.
0 Kudos
tim_beynart
Level 7

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). 
0 Kudos
Roku Employee
Roku Employee

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.
0 Kudos
tim_beynart
Level 7

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.
0 Kudos