Class: TextTrackStyle

Constructor

TextTrackStyle

new TextTrackStyle()

Properties

backgroundColor

nullable string

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

customData

nullable 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.