Constructor

TextTrackStyle

new TextTrackStyle()

Describes style information for a text track.

Colors are represented as strings “#RRGGBBAA” where XX are the two hexadecimal symbols that represent the 0-255 value for the specific channel/color. It follows CSS 8-digit hex color notation (See http://dev.w3.org/csswg/css-color/#hex-notation).

Properties

backgroundColor

nullable string

Background RGBA color, represented as "#RRGGBBAA". The alpha channel should be used for transparent backgrounds.

customData

Object

Custom application data.

edgeColor

nullable string

RGBA color for the edge, represented as "#RRGGBBAA". This value will be ignored if edgeType is NONE.

edgeType

nullable chrome.cast.media.TextTrackEdgeType

fontFamily

nullable string

If the font is not available in the receiver the fontGenericFamily will be used.

fontGenericFamily

nullable chrome.cast.media.TextTrackFontGenericFamily

fontScale

nullable number

The font scaling factor for the text track (the default is 1.0).

fontStyle

nullable chrome.cast.media.TextTrackFontStyle

foregroundColor

nullable string

Foreground RGBA color, represented as "#RRGGBBAA".

windowColor

nullable string

RGBA color for the window, represented as "#RRGGBBAA". This value will be ignored if windowType is NONE.

windowRoundedCornerRadius

nullable number

Rounded corner radius absolute value in pixels (px). This value will be ignored if windowType is not ROUNDED_CORNERS.

windowType

nullable chrome.cast.media.TextTrackWindowType

The window concept is defined in CEA-608 and CEA-708, See http://goo.gl/M3ea0X. In WebVTT is called a region.