Skip to end of metadata
Go to start of metadata

This component is deprecated.

Beginning July 1st, 2017, any new channels using this component will be rejected during certification.

Beginning January 1st, 2018, any updates to existing channels using this component will be rejected during certification.

The roCaptionRenderer component provides a mechanism for BrightScript channels to render closed captions in video played back with the roVideoPlayer.  Prior to the v 5.2 Roku firmware, captions could only be rendered in roVideoScreen.

Supported Interfaces

Supported Events

Description

Prior to the 5.2 Roku firmware version, closed captions could only be rendered in roVideoScreen.  Now channels that use roVideoPlayer embedded in an roScreen or roImageCanvas can also take advantage of Roku's closed captioning support.  roCaptionRenderer supports two different modes, which is set using the SetMode() method.  Depending on the mode set, and the type of screen being used, the BrightScript channel needs to do different levels of work to render captions.  These different workflows are highlighted in the tables below:

Mode 1
roScreenroImageCanvas
Call SetScreen()Call SetScreen()
Call UpdateCaption() 
Mode 2
roScreenroImageCanvas
All caption rendering is done by the channel's BrightScript codeAll caption rendering is done by the channel's BrightScript code

BrightScript channels do not create roCaptionRenderer instances directly using CreateObject().  Instead, when an roVideoPlayer is created, it contains an roCaptionRenderer.  BrightScript channels call ifVideoPlayer.GetCaptionRenderer() to get the caption renderer associated with their video player.

 

Sample Code
  • No labels