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

Captions in video node don't start displaying on start of video playback

We're trying to convert our channel to use the scene graph video node instead of legacy video objects. We need to support closed captions on all episodes, but are running into some trouble.

We have tried both side loading srt subfiles in the subtitleConfig field of the content meta-data and embedding the captions in the smooth stream manifest itself. In both cases the closed captions do no display at the start of video playback; they only display if you pause or fast forward and even then they don't start to display until many minutes later.

I'm currently testing on a Roku model 4230X - Roku 3 on firmware version 7.5.0 build 4100-04
0 Kudos
3 Replies
bbrouse
Level 7

Re: Captions in video node don't start displaying on start of video playback

I noticed that the subtitleTrack field on the video node doesn't get populated by default, even if the global caption settings are set to "On". I threw this conditional in and captions are now displaying consistently:
if video_player.availableSubtitleTracks.count() > 0 then
    video_player.subtitleTrack = video_player.availableSubtitleTracks[0].TrackName
end if
0 Kudos
destruk
Level 10

Re: Captions in video node don't start displaying on start of video playback

Thanks for posting about this.
0 Kudos
lylyahiko
Level 7

Re: Captions in video node don't start displaying on start of video playback

Is this the only way to force the captions to start by default?
0 Kudos