Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dreamer2057
Channel Surfer

WebVTT via roVideoPlayer

How can i display WebVTT Closed Captions on my custom roVideoPlayer? I Have m3u8 HLS Live stream with included webvtt subtitles in manifest.

I read it:

  1. https://sdkdocs.roku.com/display/sdkdoc/Closed+Caption+Support

  2. https://blog.roku.com/developer/2014/01/16/new-closed-caption-features-for-brightscript-developers/


But it doesn't work. subtitles still didn't shown. roCaptionRendererEvent never occurs.
Sincerely, Sergey Shoshin, software developer.
0 Kudos
4 REPLIES 4
RokuJoel
Binge Watcher

Re: WebVTT via roVideoPlayer

Please send stream URL with webVTT we can test to developer (at) roku.com

Thanks,

Joel
0 Kudos
andyy
Visitor

Re: WebVTT via roVideoPlayer

While it's unlikely you're still hung up on this problem, I want to leave this working example here for anyone else who may run into the same issue.
https://github.com/andyyu/roku-channel- ... HLS_WebVTT

Andy
0 Kudos
dreamer2057
Channel Surfer

Re: WebVTT via roVideoPlayer

All examples with webVTT subtitles requires stream track number. It's variable information in our streams (sometimes 1, sometimes 9, etc.), can i ignore it in my code?

For example from doc:
subtitle_config = {
TrackName: 
"webvtt/9"
}

For example from andyy's code:

TrackIDSubtitle: "webvtt/1" ' TrackIDSubtitle property should be set to webvtt/track, where track specifies the index of the caption track to render


etc...
Sincerely, Sergey Shoshin, software developer.
0 Kudos
menghao
Visitor

Re: WebVTT via roVideoPlayer

Just wondering is there a way of setting a webvtt url as subtitle instead of embed it in the HLS stream?
0 Kudos