@volcengine/veplayer 1.15.3-rc.26 → 1.15.3-rc.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -710,6 +710,10 @@ export declare type IAutoSubtitleFormatterResult = string | number | boolean | n
710
710
  visible?: boolean;
711
711
  /** 排序权重,值越小越靠前。未指定时保持原始顺序。 */
712
712
  order?: number;
713
+ /** 是否为默认选中的字幕。 */
714
+ isDefault?: boolean;
715
+ /** 是否为默认选中的字幕,与 `isDefault` 等价。 */
716
+ default?: boolean;
713
717
  };
714
718
  export declare type IAutoSubtitleItemFormatter = (item: IAutoSubtitleSourceItem, index: number) => IAutoSubtitleFormatterResult;
715
719
  /**
@@ -2943,7 +2947,7 @@ export interface IPlayerConfig extends IPlayerOptions {
2943
2947
  */
2944
2948
  autoSubtitle?: boolean;
2945
2949
  /** {zh}
2946
- * @brief 自动字幕项格式化回调。返回字符串或数字时作为字幕名称;返回 `false` 或 `{ show: false }` 时不展示该项。
2950
+ * @brief 自动字幕项格式化回调。返回字符串或数字时作为字幕名称;返回 `false` 或 `{ show: false }` 时不展示该项;返回 `{ isDefault: true }` 或 `{ default: true }` 时设为默认字幕。
2947
2951
  * @default -
2948
2952
  */
2949
2953
  formatAutoSubtitleItem?: IAutoSubtitleItemFormatter;