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: 
andysmith1965
Streaming Star

subtitle vtt issues

Hi 

I've implemented the closed caption support using WEBVTT format as the source for the subtitles.
The subtitles display fine, including the positioning, however neither the colour or any html entities (<) within the text are displayed.

A snippet of the vtt file is as follows:

WEBVTT

NOTE: MatID = 56966001001001   Title = ************               
NOTE Created by .sng webVTT Encoder module WriteVTT v2016_10_28-1


1
00:00:02.000 --> 00:00:07.000 line:77%  position:50% align:middle
<c.white>This programme contains strong</c>
<c.white>language and adult humour.</c>

Can anyone explain if this format is supported by Roku?

Regards

Andy Smith
0 Kudos
5 REPLIES 5
RokuBen
Community Moderator
Community Moderator

Re: subtitle vtt issues

As of 8.1, the only HTML tags that are handled by the WebVTT parser are <b>, <i>, and <u>. The HTML entities for amp, lt, and gt are all parsed and should result in the correct character showing up in the subtitle output, but there may be a bug here.
0 Kudos
SECHIN_SUNNY
Visitor

Re: subtitle vtt issues

Hi , can you please tell me on how to make changes in closedCaptions by changing the background , text color etc .Have tried using  
m.videoPlayer.captionStyle={"Text color":"Yellow"}
but there is no change 

Please suggest what should i do .
Thanks in advance
Thanks
Regards
Sechin Sunny
0 Kudos
andysmith1965
Streaming Star

Re: subtitle vtt issues

"RokuBen" wrote:
As of 8.1, the only HTML tags that are handled by the WebVTT parser are <b>, <i>, and <u>. The HTML entities for amp, lt, and gt are all parsed and should result in the correct character showing up in the subtitle output, but there may be a bug here.

Thanks for this. I am certainly not seeing the &lt; entity.

So for example the following embedded tag in the vtt file will not be recognised by the Roku parser : <c.yellow> ? Is there no way of including the style yellow?
0 Kudos
RokuBen
Community Moderator
Community Moderator

Re: subtitle vtt issues

At the moment, there's no way to specify color information in a WebVTT file.
0 Kudos
andysmith1965
Streaming Star

Re: subtitle vtt issues

"RokuBen" wrote:
At the moment, there's no way to specify color information in a WebVTT file.

Thanks for the info.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.