Skip to content

VideoSubtitleConfiguration

VideoSubtitleConfiguration #

Represents the configuration for video subtitles.

padding #

padding: PaddingValue = field(
    default_factory=lambda: Padding(
        left=16.0, top=0.0, right=16.0, bottom=24.0
    )
)

The padding to be used for the subtitles.

text_align #

text_align: TextAlign = CENTER

The text alignment to be used for the subtitles.

text_scale_factor #

text_scale_factor: Number = 1.0

Defines the scale factor for the subtitle text.

text_style #

text_style: TextStyle = field(
    default_factory=lambda: TextStyle(
        height=1.4,
        size=32.0,
        letter_spacing=0.0,
        word_spacing=0.0,
        color=WHITE,
        weight=NORMAL,
        bgcolor=BLACK54,
    )
)

The text style to be used for the subtitles.

visible #

visible: bool = True

Whether the subtitles should be visible or not.