Forum Discussion

andysmith1965's avatar
andysmith1965
Streaming Star
7 years ago

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

5 Replies

  • RokuBen's avatar
    RokuBen
    Community Moderator
    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.
  • 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
  • "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?
  • RokuBen's avatar
    RokuBen
    Community Moderator
    At the moment, there's no way to specify color information in a WebVTT file.
  • "RokuBen" wrote:
    At the moment, there's no way to specify color information in a WebVTT file.

    Thanks for the info.