@volcengine/veplayer 1.19.2-rc.19 → 1.19.2-rc.20
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 +17 -0
- package/index.min.js +2 -2
- package/lite.cjs +2 -2
- package/lite.esm.mjs +2 -2
- package/lite.min.js +2 -2
- package/package.json +1 -1
- package/plugin/hlsEncrypt.js +2 -2
- package/plugin/hlsjsPro.js +2 -2
- package/plugin/modules/DashAbralgo.mjs +1 -1
- package/plugin/modules/XGVideo.mjs +1 -1
- package/plugin/modules/danmuMask.mjs +1 -1
- package/plugin/modules/danmujs.mjs +1 -1
- package/plugin/modules/dash.mjs +1 -1
- package/plugin/modules/flv.mjs +1 -1
- package/plugin/modules/hls.mjs +1 -1
- package/plugin/modules/hlsEncrypt.mjs +2 -2
- package/plugin/modules/hlsjs.mjs +1 -1
- package/plugin/modules/hlsjsPro.mjs +2 -2
- package/plugin/modules/mp4Encrypt.mjs +1 -1
- package/plugin/modules/preloader.mjs +1 -1
- package/plugin/modules/streamprobe.mjs +1 -1
- package/plugin/modules/vestrategy.mjs +1 -1
- package/plugin/modules/vestrategy_adapt_range.mjs +1 -1
- package/plugin/modules/vestrategy_h265.mjs +1 -1
- package/plugin/modules/vestrategy_preload.mjs +1 -1
package/index.d.ts
CHANGED
|
@@ -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 是否开启详细日志
|