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

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
Roku Employee
Roku Employee

Re: WebVTT via roVideoPlayer

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

Thanks,

Joel
0 Kudos
andyy
Level 7

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

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

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