subtitleStyle([style])

Class: MediaPlayer.

Description:

Sets or gets the style of the subtitles. When None, subtitles are not visible. The background is used for improved readability when video colors are similar to colors of subtitles text.

Parameters:

Name Type Description

[style]

MediaPlayer.SubtitleStyle

Style of the subtitle, or None to make it not visible. It's still sent as a PlayerEvent.

Returns:

If called without parameters, the instance of the MediaPlayer component is returned, otherwise current value is returned.

Type: MediaPlayer.SubtitleStyle | MediaPlayer

Also See: