Forum Discussion

tim_beynart's avatar
tim_beynart
Channel Surfer
9 years ago

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)

9 Replies

  • 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?
  • RokuBen's avatar
    RokuBen
    Community Moderator
    In what format are the captions?  EIA-608 embedded in H.264 user data?  WebVTT or TTML?
  • "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?
  • 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. 
  • "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.
  • 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). 
  • "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.
  • 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.