Version: 2.67.0

TextTrackStyle

THEOplayer > TextTrackStyle

TextTrackStyle interface

Inherits from EventDispatcher<TextTrackStyleEventMap> . See parent page for inherited properties and methods.

The text track style API.

Signature:
export interface TextTrackStyle extends EventDispatcher<TextTrackStyleEventMap>

Properties

Property

Type

Description

backgroundColor

string &#124; undefined

The background color for the text track.

edgeStyle

EdgeStyle

The edge style of the text, represented by a value from the following list:
- 'none'
- 'dropshadow'
- 'raised'
- 'depressed'
- 'uniform

fontColor

string &#124; undefined

The font color for the text track.

fontFamily

string &#124; undefined

The font family for the text track.

fontSize

'50%' &#124; '75%' &#124; '100%' &#124; '150%' &#124; '200%' &#124; undefined

The font size for the text track.

windowColor

string &#124; undefined

The window color for the text track.

Remarks


- Available since v2.27.4.