buildSubtitleSlot function

Widget buildSubtitleSlot(
  1. SlotBuildContext ctx,
  2. double width,
  3. double height
)

构建外挂字幕插槽的默认实现。 Builds the default subtitle slot content.

监听外挂字幕显示状态,当开启时委托给 _SubtitleSlotWidget 构建字幕 UI。 Listens to external subtitle visibility; delegates to _SubtitleSlotWidget when enabled.

Implementation

Widget buildSubtitleSlot(
  SlotBuildContext ctx,
  double width,
  double height,
) {
  return _SubtitleSlotWidget(ctx: ctx);
}