@volcengine/veplayer 1.20.0-rc.13 → 1.20.0-rc.15
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 +26 -2
- 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/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 +1 -1
- package/plugin/modules/hlsjs.mjs +1 -1
- package/plugin/modules/hlsjsPro.mjs +1 -1
- package/plugin/modules/mp4Encrypt.mjs +2 -2
- 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/plugin/mp4Encrypt.js +2 -2
package/index.d.ts
CHANGED
|
@@ -1686,6 +1686,23 @@ export interface mp4OptsItem {
|
|
|
1686
1686
|
* @kind property
|
|
1687
1687
|
*/
|
|
1688
1688
|
export interface IEncryptHlsPluginConfig {
|
|
1689
|
+
/** {zh}
|
|
1690
|
+
* @brief 是否关闭 HLS 播放错误时降级到原生 video。默认开启降级,仅在浏览器支持原生 HLS 且插件允许时生效。
|
|
1691
|
+
* @default false
|
|
1692
|
+
* @example
|
|
1693
|
+
* ```js
|
|
1694
|
+
* new VePlayer({ id: 'video', url: 'video.m3u8', EncryptHlsPlugin: { closeDowngrade: true } });
|
|
1695
|
+
* ```
|
|
1696
|
+
*/
|
|
1697
|
+
/** {en}
|
|
1698
|
+
* @brief Whether to disable native video fallback after HLS playback errors. Fallback is enabled by default when the browser supports native HLS and the plugin permits it.
|
|
1699
|
+
* @default false
|
|
1700
|
+
* @example
|
|
1701
|
+
* ```js
|
|
1702
|
+
* new VePlayer({ id: 'video', url: 'video.m3u8', EncryptHlsPlugin: { closeDowngrade: true } });
|
|
1703
|
+
* ```
|
|
1704
|
+
*/
|
|
1705
|
+
closeDowngrade?: boolean;
|
|
1689
1706
|
/** {zh}
|
|
1690
1707
|
* @brief 获取播放地址的请求域名。
|
|
1691
1708
|
* @default https://vod.volcengineapi.com
|
|
@@ -3472,6 +3489,9 @@ export interface IJSBCallbackResult {
|
|
|
3472
3489
|
is_success: number | boolean;
|
|
3473
3490
|
error?: MinisError;
|
|
3474
3491
|
data?: {
|
|
3492
|
+
/** {zh} @brief 锚点播放是否有效;首次播放时 false 表示应返回首页。 @hidden */
|
|
3493
|
+
/** {en} @brief Whether anchor playback is valid; false on first playback redirects home. @hidden */
|
|
3494
|
+
if_valid_anchor_play?: boolean;
|
|
3475
3495
|
/** {zh} @brief Native 埋点通参;缺失时不报对应字段。 */
|
|
3476
3496
|
/** {en} @brief Native tracking fields; omitted fields are not reported. */
|
|
3477
3497
|
tracking_context?: IJSBCallbackResult["tracking_context"];
|
|
@@ -7781,6 +7801,9 @@ declare class AuthToken extends SdkPlugin {
|
|
|
7781
7801
|
defaultDefinition: string;
|
|
7782
7802
|
}>;
|
|
7783
7803
|
private reportEmptyDramaPlaylist;
|
|
7804
|
+
/** {zh} @brief 页面首次短剧播放的锚点失效时返回首页。 @hidden */
|
|
7805
|
+
/** {en} @brief Redirect home when the first page playback has an invalid drama anchor. @hidden */
|
|
7806
|
+
private redirectInvalidAnchorPlay;
|
|
7784
7807
|
/**
|
|
7785
7808
|
* 短剧 Minis 环境:通过 JSB getDramaInfo 获取媒体信息
|
|
7786
7809
|
*/
|
|
@@ -9082,7 +9105,7 @@ declare class VePlayer {
|
|
|
9082
9105
|
/** {zh}
|
|
9083
9106
|
* @brief 全局设置是否为 MSE 媒体请求添加 x-tt-trace-id,默认关闭。
|
|
9084
9107
|
* @param enable - 是否开启。新建播放器或下一次 playNext 时生效,当前播放保持原设置。
|
|
9085
|
-
* @notes
|
|
9108
|
+
* @notes CDN 需允许 x-tt-trace-id。开启后新启动的 MP4/HLS 预加载携带 trace,首次播放沿用;缓存重复消费通过 preload_trace_ids 日志字段关联来源。
|
|
9086
9109
|
* @example
|
|
9087
9110
|
* VePlayer.setMediaTraceEnabled(true);
|
|
9088
9111
|
* @list Api
|
|
@@ -9090,7 +9113,7 @@ declare class VePlayer {
|
|
|
9090
9113
|
/** {en}
|
|
9091
9114
|
* @brief Globally enable x-tt-trace-id on MSE media requests. Disabled by default.
|
|
9092
9115
|
* @param enable - Applies to new players and the next playNext; the current playback is unchanged.
|
|
9093
|
-
* @notes The CDN must allow x-tt-trace-id
|
|
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.
|
|
9094
9117
|
* @example
|
|
9095
9118
|
* VePlayer.setMediaTraceEnabled(true);
|
|
9096
9119
|
* @list Api
|
|
@@ -9653,6 +9676,7 @@ declare class VePlayer {
|
|
|
9653
9676
|
* @memberof VePlayer
|
|
9654
9677
|
*/
|
|
9655
9678
|
updateAuthToken(config: IPlayAuthTokenConfig): Promise<void>;
|
|
9679
|
+
private _prepareMediaTrace;
|
|
9656
9680
|
private _finishMediaPreparation;
|
|
9657
9681
|
private _playerPlayNext;
|
|
9658
9682
|
/** {zh}
|