Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.32 KB

cvaa-override.md

File metadata and controls

27 lines (20 loc) · 1.32 KB

Removing style settings from the captions menu

The player enables viewers to modify the captions style using the "Advanced captions settings" in the language menu, and clicking the 'Set custom caption' button.

To prevent viewers from using these modifications, simply overload the style option's class and add display: none to it.

For example, adding the line below will remove the ability to change the captions color:

.playkit-font-color {
  display: none
}

Refer to the list of caption settings classes below for detailed information on each class.

Captions settings class list

Class Name Description
.playkit-font-size Changes the size of the captions
.playkit-font-color Changes the color of the captions
.playkit-font-family Changes the font family of the captions
.playkit-font-style Changes the weight of the captions
.playkit-font-opacity Changes the opacity of the captions
.playkit-background-color Changes the color of the captions background
.playkit-background-opacity Changes the opacity of the captions background