@volcengine/veplayer 1.20.1-rc.6 → 1.20.1-rc.8

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
@@ -9717,7 +9717,7 @@ declare class VePlayer {
9717
9717
  afterPlayerCreate(): void;
9718
9718
  /** @hidden 为当前播放内核挂载会话隔离的 Master M3U8 Level 控制器。 */
9719
9719
  private _mountHlsMasterController;
9720
- /** @hidden 为当前 hls.js 播放会话挂载安全的 Master 字幕适配器。 */
9720
+ /** @hidden 为当前 HLS 播放会话挂载 Master 字幕适配器。 */
9721
9721
  private _mountHlsSubtitleAdapter;
9722
9722
  /** @hidden 克隆业务字幕策略,避免由运行时注入列表反推来源。 */
9723
9723
  private _cloneExplicitSubtitleList;
@@ -10830,6 +10830,7 @@ export declare class Subtitle extends Plugin {
10830
10830
  private _optionListLeaveHandler?;
10831
10831
  private webVttPlayback?;
10832
10832
  private webVttHls?;
10833
+ private nativeHlsSubtitle?;
10833
10834
  private _runtimeSubtitleSource;
10834
10835
  private _runtimeSubtitleBridge?;
10835
10836
  afterCreate(): void;
@@ -10865,6 +10866,10 @@ export declare class Subtitle extends Plugin {
10865
10866
  setRuntimeSubtitleSource(source: "config" | "hls"): void;
10866
10867
  /** @hidden Connect the custom renderer to the current hls.js instance. */
10867
10868
  setWebVttHls(hls?: HlsRuntimeLike): void;
10869
+ /** @hidden Read Master subtitles from the native video element in external mode. */
10870
+ setNativeHlsSubtitleSession(sessionId?: string, options?: ISubtitleConfig): void;
10871
+ /** @hidden Restore the native track that was selected before hiding subtitles. */
10872
+ showNativeHlsSubtitle(): boolean;
10868
10873
  setRuntimeSubtitleBridge(bridge?: {
10869
10874
  switchSubtitle: (subtitle: {
10870
10875
  id?: string | number;
@@ -10873,7 +10878,7 @@ export declare class Subtitle extends Plugin {
10873
10878
  hide: () => void;
10874
10879
  show: () => Promise<void>;
10875
10880
  }): void;
10876
- replaceRuntimeSubtitleList(list: ISubTitleItem[], isOpen: boolean): void;
10881
+ replaceRuntimeSubtitleList(list: ISubTitleItem[], isOpen: boolean, selectedId?: ISubTitleItem["id"] | null): void;
10877
10882
  confirmRuntimeSubtitleSelection(item: ISubTitleItem | null): void;
10878
10883
  syncRuntimeSubtitleRenderer(runtimeIndex: number): void;
10879
10884
  clearRuntimeSubtitleView(): void;
@@ -10930,6 +10935,7 @@ export declare class Subtitle extends Plugin {
10930
10935
  updateList(data?: {
10931
10936
  list?: any[];
10932
10937
  isOpen?: boolean;
10938
+ selectedId?: ISubTitleItem["id"] | null;
10933
10939
  }): void;
10934
10940
  changeTipText(): void;
10935
10941
  showMobilePanel(): void;