Skip to main content

VideoSubtitleConfiguration

VideoSubtitleConfiguration class has the following properties:

src

The source of the subtitles (URL or local asset file).

title

The title of the subtitles.

language

The language of the subtitles.

text_style

The style of the subtitle text.

text_scale_factor

The scale factor of the subtitles.

text_align

The alignment of the subtitles.

Defaults to TextAlign.CENTER.

padding

The padding of the subtitles.

visible

Whether or not the subtitles should be visible.

Defaults to True.