The default look and feel of the captions is subject to change so you may wish to style the captions. When styling captions, be cautious to preserve adequate color contrast to meet WCAG accessibility guidelines and consider end viewers when making styling changes.
There are a few ways that captions can be styled:
Style options can be applied directly to the WebVTT file that allow you to change the location and orientation of the captions as well as the text. Here are a few examples:
<b>Lorem ipsum</b>
<i>dolor sit amet</i>
<u>consectetuer adipiscing</u>
Because the Brightcove Player manages the positioning of captions, you can not use styles to change the location or orientation of the captions. The inline styles don't provide many styling options. For a greater variety of styling options, you can use a CSS file as described in the next section.
For details about inline styles, see this link.
You can adjust caption appearance for your own viewing session in the Video Properties section. Here are the steps to style captions:
Clicking on the captions settings menu will display an overlay which allows the following caption properties to be set:
This table shows which CSS properties are and are not supported for styling captions with the Brightcove Player:
CSS Property | Supported | Not Supported |
---|---|---|
font-family |
✔ | |
font-size |
✔ | |
font-weight |
✔ | |
color |
✔ | |
background |
✔ | |
background-color |
✔ | |
opacity |
✔ | |
visibility |
✔ | |
text-decoration |
✔ | |
text-shadow |
✔ | |
width |
✔ | |
height |
✔ | |
line-height |
✔ | |
white-space |
✔ | |
word-wrap |
✔ | |
top |
✔ | |
left |
✔ | |
display |
✔ | |
direction |
✔ |
For more information on styling options for caption files, see the W3C WebVTT specification document or see Video Subtitling and WebVTT.
This table shows which CSS properties are and are not supported for styling captions with the Brightcove Player:
CSS Property | Supported | Not Supported |
---|---|---|
font-family |
✔ | |
font-size |
✔ | |
font-weight |
✔ | |
color |
✔ | |
background |
✔ | |
background-color |
✔ | |
opacity |
✔ | |
visibility |
✔ | |
text-decoration |
✔ | |
text-shadow |
✔ | |
width |
✔ | |
height |
✔ | |
line-height |
✔ | |
white-space |
✔ | |
word-wrap |
✔ | |
top |
✔ | |
left |
✔ | |
display |
✔ | |
direction |
✔ |
For more information on styling options for caption files, see the W3C WebVTT specification document or see Video Subtitling and WebVTT.
For users on iOS devices, caption styling is controlled through the iOS Settings. To access the settings select Settings > General > Accessibility > Subtitles & Captioning > Style. Here you can select a predefined style or create new styles.
Viewers on desktop and Android devices can change the appearance of the captions by using the captions settings menu.
Clicking on the captions settings menu will display an overlay which allows the following caption properties to be set:
Click Reset to return the captions to their default styling.
Captions are supported on the following device types and operating systems.