@byteplus/veplayer 1.19.2-rc.17 → 1.19.2-rc.19

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
@@ -7705,7 +7705,7 @@ declare class PlayerData {
7705
7705
  /**
7706
7706
  * @description: 获取当前的streamType
7707
7707
  */
7708
- getCurrentStreamType(): string;
7708
+ getCurrentStreamType(fallback?: string): string;
7709
7709
  getStreamType(): string;
7710
7710
  getConfiguredHlsAbrEngine(): HlsAbrEngine;
7711
7711
  isOpenVePlayerABR(): boolean;
@@ -8800,6 +8800,23 @@ declare class VePlayer {
8800
8800
  * ```
8801
8801
  */
8802
8802
  static prefetchMediaInfo(sources: IMediaInfoPrefetchSource[]): Promise<IMediaInfoPrefetchResult[]>;
8803
+ /** {zh}
8804
+ * @brief 全局设置是否为 MSE 媒体请求添加 x-tt-trace-id,默认关闭。
8805
+ * @param enable - 是否开启。新建播放器或下一次 playNext 时生效,当前播放保持原设置。
8806
+ * @notes 开启前需确保 CDN 的 CORS 配置允许 x-tt-trace-id。独立预加载不添加该请求头。
8807
+ * @example
8808
+ * VePlayer.setMediaTraceEnabled(true);
8809
+ * @list Api
8810
+ */
8811
+ /** {en}
8812
+ * @brief Globally enable x-tt-trace-id on MSE media requests. Disabled by default.
8813
+ * @param enable - Applies to new players and the next playNext; the current playback is unchanged.
8814
+ * @notes The CDN must allow x-tt-trace-id in CORS. Independent preloads do not include this header.
8815
+ * @example
8816
+ * VePlayer.setMediaTraceEnabled(true);
8817
+ * @list Api
8818
+ */
8819
+ static setMediaTraceEnabled(enable: boolean): void;
8803
8820
  /** {zh}
8804
8821
  * @brief 设置全局日志开关。开启后会输出 VE_DEBUG.log 级别日志。
8805
8822
  * @param enable 是否开启详细日志
@@ -9357,6 +9374,7 @@ declare class VePlayer {
9357
9374
  * @memberof VePlayer
9358
9375
  */
9359
9376
  updateAuthToken(config: IPlayAuthTokenConfig): Promise<void>;
9377
+ private _finishMediaPreparation;
9360
9378
  private _playerPlayNext;
9361
9379
  /** {zh}
9362
9380
  * @brief 返回当前视频的地址。