MovaSubtitleButtonComponent class
Subtitle entry button; renders nothing when no STT recognizer is configured
(IMovaApi.stt.languages is empty), matching MovaPipButtonComponent's
unsupported-capability convention.
Tap opens a picker listing every language the configured recognizer covers
(a single joint entry for a bilingual recognizer like the default Zipformer,
not one row per language — see
doc/notes/2026-08-04-stt-recognizer-decision.md: only one recognizer is
supported per player in this version) plus a "turn off" row.
字幕入口按钮;未配置 STT 识别器时(IMovaApi.stt.languages 为空)不渲染任何
内容,对应 MovaPipButtonComponent 的"能力不支持"约定。
点击弹出选择器,列出已配置识别器覆盖的语言(像默认 Zipformer 这样的双语识别器
是一整条联合入口,不是每个语言一行——见
doc/notes/2026-08-04-stt-recognizer-decision.md:本版本每个播放器只支持一个
识别器),外加一行"关闭字幕"。
- Inheritance
-
- Object
- MovaComponent
- MovaSubtitleButtonComponent
Constructors
- MovaSubtitleButtonComponent()
- Creates the subtitle-button leaf component.
Properties
-
children
→ List<
MovaComponent> -
Nested child components, if this node is a composite. Empty for leaves.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Stable identifier used for path matching in MovaPatch operations.
no setteroverride
- order → int
-
Sort key within a slot; ascending, ties broken by original position.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slot → MovaSlot
-
The overlay region this component renders into.
no setteroverride
Methods
-
build(
BuildContext context, IMovaApi api, List< Widget> children) → Widget -
Builds the widget for this component.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- componentName → const String
-
This component's path segment for
MovaPatchaddressing.