Techdocs

AMP Web SDK

AMP player

akamai.amp.CaptionSettings

The CaptionSettings interface.

Members

backgroundColor

:akamai.amp.ColorPresets

The caption background color.

backgroundOpacity

:string|number

The caption background opacity as a percentage value. (string "0%" - "100%" or numer 0.0 - 1.0)

edgeColor

:akamai.amp.ColorPresets

The caption edge color.

edgeOpacity

:string|number

The caption edge opacity as a percentage value. (string "0%" - "100%" or numer 0.0 - 1.0)

edgeType

:akamai.amp.EdgeTypePresets

The caption edge type.

fontColor

:akamai.amp.ColorPresets

The caption font color.

fontFamily

:akamai.amp.FontFamilyPresets

The caption font family.

fontOpacity

:string|number

The caption opacity as a percentage value. (string "0%" - "100%" or numer 0.0 - 1.0)

fontSize

:akamai.amp.FontSizePresets

The caption font size.

presets

:akamai.amp.CaptionPresets

The caption presets.

scroll

:akamai.amp.CaptionScrollType

The caption scroll style.

styles

:akamai.amp.CaptionStyles

The caption styles computed from the preset values or provided as overrides.

windowColor

:akamai.amp.ColorPresets

The caption window color.

windowOpacity

:string|number

The caption window opacity as a percentage value. (string "0%" - "100%" or numer 0.0 - 1.0)