@volcengine/veplayer 1.20.0-rc.14 → 1.20.0-rc.16

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
@@ -3489,8 +3489,8 @@ export interface IJSBCallbackResult {
3489
3489
  is_success: number | boolean;
3490
3490
  error?: MinisError;
3491
3491
  data?: {
3492
- /** {zh} @brief 锚点播放是否有效;首次播放时 false 表示应返回首页。 @hidden */
3493
- /** {en} @brief Whether anchor playback is valid; false on first playback redirects home. @hidden */
3492
+ /** {zh} @brief 锚点播放是否有效;仅 anchor/anchor_selection 入口首播时 false 返回首页,同次进入 Minis 拦截后不再跳转。 @hidden */
3493
+ /** {en} @brief Whether anchor playback is valid; false redirects initial anchor/anchor_selection playback home once per Minis entry. @hidden */
3494
3494
  if_valid_anchor_play?: boolean;
3495
3495
  /** {zh} @brief Native 埋点通参;缺失时不报对应字段。 */
3496
3496
  /** {en} @brief Native tracking fields; omitted fields are not reported. */
@@ -7801,8 +7801,8 @@ declare class AuthToken extends SdkPlugin {
7801
7801
  defaultDefinition: string;
7802
7802
  }>;
7803
7803
  private reportEmptyDramaPlaylist;
7804
- /** {zh} @brief 页面首次短剧播放的锚点失效时返回首页。 @hidden */
7805
- /** {en} @brief Redirect home when the first page playback has an invalid drama anchor. @hidden */
7804
+ /** {zh} @brief 仅 anchor/anchor_selection 入口的首播锚点失效时返回首页,同次进入 Minis 后续播放不再跳转。 @hidden */
7805
+ /** {en} @brief Redirect invalid initial anchor/anchor_selection playback once per Minis entry. @hidden */
7806
7806
  private redirectInvalidAnchorPlay;
7807
7807
  /**
7808
7808
  * 短剧 Minis 环境:通过 JSB getDramaInfo 获取媒体信息
@@ -9105,7 +9105,7 @@ declare class VePlayer {
9105
9105
  /** {zh}
9106
9106
  * @brief 全局设置是否为 MSE 媒体请求添加 x-tt-trace-id,默认关闭。
9107
9107
  * @param enable - 是否开启。新建播放器或下一次 playNext 时生效,当前播放保持原设置。
9108
- * @notes 开启前需确保 CDN 的 CORS 配置允许 x-tt-trace-id。独立预加载不添加该请求头。
9108
+ * @notes CDN 需允许 x-tt-trace-id。开启后新启动的 MP4/HLS 预加载携带 trace,首次播放沿用;缓存重复消费通过 preload_trace_ids 日志字段关联来源。
9109
9109
  * @example
9110
9110
  * VePlayer.setMediaTraceEnabled(true);
9111
9111
  * @list Api
@@ -9113,7 +9113,7 @@ declare class VePlayer {
9113
9113
  /** {en}
9114
9114
  * @brief Globally enable x-tt-trace-id on MSE media requests. Disabled by default.
9115
9115
  * @param enable - Applies to new players and the next playNext; the current playback is unchanged.
9116
- * @notes The CDN must allow x-tt-trace-id in CORS. Independent preloads do not include this header.
9116
+ * @notes The CDN must allow x-tt-trace-id. New MP4/HLS preloads carry a trace adopted by the first playback; later cache consumers report the origin in preload_trace_ids.
9117
9117
  * @example
9118
9118
  * VePlayer.setMediaTraceEnabled(true);
9119
9119
  * @list Api
@@ -9676,6 +9676,7 @@ declare class VePlayer {
9676
9676
  * @memberof VePlayer
9677
9677
  */
9678
9678
  updateAuthToken(config: IPlayAuthTokenConfig): Promise<void>;
9679
+ private _prepareMediaTrace;
9679
9680
  private _finishMediaPreparation;
9680
9681
  private _playerPlayNext;
9681
9682
  /** {zh}