VideoSubtitleTrack
VideoSubtitleTrack
#
Represents a subtitle track for a video.
album_art: Optional[bool] = None
#
audio_channels: Optional[int] = None
#
bitrate: Optional[int] = None
#
channels: Optional[str] = None
#
channels_count: Optional[int] = None
#
codec: Optional[str] = None
#
decoder: Optional[str] = None
#
fps: Optional[ft.Number] = None
#
language: Optional[str] = None
#
The language of the subtitle track, e.g. 'en'.
par: Optional[ft.Number] = None
#
rotate: Optional[int] = None
#
sample_rate: Optional[int] = None
#
src: str
#
The subtitle source.
Supported values
- A URL (e.g. "https://example.com/subs.srt" or "www.example.com/sub.vtt")
- An absolute local file path (not supported on the web platform)
- A raw subtitle text string (e.g. the full contents of an SRT/VTT file)
title: Optional[str] = None
#
The title of the subtitle track, e.g. 'English'.
auto() -> VideoSubtitleTrack
#
Default subtitle track. Selects the first subtitle track.
none() -> VideoSubtitleTrack
#
No subtitle track. Disables subtitle output.