subtitle/subtitle library

字幕系统

提供字幕数据模型、样式配置和渲染构建器, 支持默认字幕渲染和完全自定义字幕 Widget。

Subtitle system

Provides subtitle data models, style configuration, and rendering builders, supporting both default subtitle rendering and fully custom subtitle widgets.

Classes

CustomSubtitleBuilder
自定义字幕构建器,允许开发者通过自定义函数完全控制字幕的渲染方式。
DefaultSubtitleBuilder
默认字幕构建器,使用 SubtitleStyleConfig 中的样式渲染字幕文本。
Subtitle
单条字幕实体,包含轨道索引和字幕文本。
SubtitleBuilder
字幕构建器接口,定义字幕 Widget 的构建合约。
SubtitleConfig
字幕完整配置,包含样式、位置和动画设置。
Subtitles
字幕集合,管理多条字幕轨道。
SubtitleStyleConfig
字幕样式配置,控制字幕的文本样式和布局属性。