Skip to main content

SubtitleStyle

The style of the text track.

Example​

{
fontSize: 50,
foregroundColor: 16777215,
backgroundColor: 0,
foregroundOpacity: 0.9,
backgroundOpacity: 0.2,
leftMargin: 0,
rightMargin: 0,
topMargin: 0,
bottomMargin: 0,
}

Properties​

backgroundColor​

backgroundColor?: number;

backgroundOpacity​

backgroundOpacity?: number;

bottomMargin​

bottomMargin?: number;

fontSize​

fontSize?: number;

foregroundColor​

foregroundColor?: number;

foregroundOpacity​

foregroundOpacity?: number;

leftMargin​

leftMargin?: number;

rightMargin​

rightMargin?: number;

topMargin​

topMargin?: number;