@volcengine/veplayer 1.19.2-rc.1 → 1.20.0-rc.1
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 +35 -40
- package/index.min.js +2 -2
- package/lite.cjs +2 -2
- package/lite.d.ts +40 -36
- 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 +2 -2
- package/plugin/vestrategy_preload.js +1 -1
package/index.d.ts
CHANGED
|
@@ -3385,19 +3385,6 @@ export interface ITTDramaEnv {
|
|
|
3385
3385
|
* @type {function}
|
|
3386
3386
|
*/
|
|
3387
3387
|
sendLog: (EventName: string, params: Record<string, any>) => void;
|
|
3388
|
-
/** {zh}
|
|
3389
|
-
* @hidden
|
|
3390
|
-
* @brief 当前在播短剧身份变化通知,由宿主集成层消费。
|
|
3391
|
-
*/
|
|
3392
|
-
/** {en}
|
|
3393
|
-
* @hidden
|
|
3394
|
-
* @brief Notifies the host integration when the current drama playback identity changes.
|
|
3395
|
-
*/
|
|
3396
|
-
onCurrentDramaPlaybackContextChange?: (context: {
|
|
3397
|
-
albumId: string | null;
|
|
3398
|
-
episodeId: string | null;
|
|
3399
|
-
vid: string | null;
|
|
3400
|
-
} | null) => boolean | void;
|
|
3401
3388
|
/**
|
|
3402
3389
|
* 低版本 app 下验证 TTOP 签发的 playAuthToken 时使用的密钥
|
|
3403
3390
|
* 通过 JSB(如 minis.getSecret)从 Native 获取,用于 HMAC-SHA256 签名校验
|
|
@@ -3446,35 +3433,18 @@ export interface IGetDramaInfoPerfInfo {
|
|
|
3446
3433
|
* JSB 获取短剧信息返回结果
|
|
3447
3434
|
*/
|
|
3448
3435
|
export interface IJSBCallbackResult {
|
|
3449
|
-
/** {zh} @brief 旧回包的顶层 Native 通参;优先使用 data.tracking_context。 */
|
|
3450
|
-
/** {en} @brief Legacy top-level tracking fields; data.tracking_context takes priority. */
|
|
3451
|
-
tracking_context?: {
|
|
3452
|
-
enter_from?: string;
|
|
3453
|
-
minis_type?: string;
|
|
3454
|
-
minis_id?: string;
|
|
3455
|
-
ttoclid?: string;
|
|
3456
|
-
};
|
|
3457
3436
|
is_success: number | boolean;
|
|
3458
3437
|
error?: MinisError;
|
|
3459
3438
|
data?: {
|
|
3460
|
-
/** {zh} @brief Native 埋点通参;缺失时不报对应字段。 */
|
|
3461
|
-
/** {en} @brief Native tracking fields; omitted fields are not reported. */
|
|
3462
|
-
tracking_context?: IJSBCallbackResult["tracking_context"];
|
|
3463
3439
|
status: number;
|
|
3464
3440
|
drama_info: {
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
drama_name?: string;
|
|
3470
|
-
album_cover?: string;
|
|
3471
|
-
drama_cover?: string;
|
|
3472
|
-
album_description?: string;
|
|
3473
|
-
drama_description?: string;
|
|
3441
|
+
album_id: string;
|
|
3442
|
+
drama_name: string;
|
|
3443
|
+
drama_cover: string;
|
|
3444
|
+
drama_description: string;
|
|
3474
3445
|
};
|
|
3475
3446
|
episode_info: {
|
|
3476
3447
|
episode_id: string;
|
|
3477
|
-
episode_current_num?: number;
|
|
3478
3448
|
episode_name: string;
|
|
3479
3449
|
episode_cover: string;
|
|
3480
3450
|
episode_description: string;
|
|
@@ -7119,7 +7089,6 @@ export declare const enum LangTextKey {
|
|
|
7119
7089
|
NETWORK_URL_EXPIRE = "NETWORK_URL_EXPIRE",
|
|
7120
7090
|
NETWORK_URL_SIGN = "NETWORK_URL_SIGN",
|
|
7121
7091
|
NETWORK_ENCRYPT_HLS_ERR = "NETWORK_ENCRYPT_HLS_ERR",
|
|
7122
|
-
DECODER_INIT_NOT_SUPPORTED = "DECODER_INIT_NOT_SUPPORTED",
|
|
7123
7092
|
MEDIA_ERR = "MEDIA_ERR",
|
|
7124
7093
|
MEDIA_ERR_ABORTED = "MEDIA_ERR_ABORTED",
|
|
7125
7094
|
MEDIA_ERR_NETWORK = "MEDIA_ERR_NETWORK",
|
|
@@ -7245,7 +7214,6 @@ declare class AuthToken extends SdkPlugin {
|
|
|
7245
7214
|
getVideoInfo(sourceConfigs?: IPlayerConfig): Promise<{
|
|
7246
7215
|
vid: string;
|
|
7247
7216
|
__mediaInfoCacheHit: boolean;
|
|
7248
|
-
__dramaTrackingContext: Record<string, unknown>;
|
|
7249
7217
|
playList: Stream[];
|
|
7250
7218
|
codec: ICodecType;
|
|
7251
7219
|
defaultDefinition: string;
|
|
@@ -7922,6 +7890,20 @@ export declare type IPreloadUpdateConfig = {
|
|
|
7922
7890
|
* @detail Options
|
|
7923
7891
|
*/
|
|
7924
7892
|
export declare type IPreloadResolvedStream = {
|
|
7893
|
+
/** {zh}
|
|
7894
|
+
* @brief HLS 分片数量,覆盖 strategies.preload.sn。
|
|
7895
|
+
*/
|
|
7896
|
+
/** {en}
|
|
7897
|
+
* @brief HLS segment count; overrides strategies.preload.sn.
|
|
7898
|
+
*/
|
|
7899
|
+
sn?: number;
|
|
7900
|
+
/** {zh}
|
|
7901
|
+
* @brief HLS master 子列表索引,覆盖 strategies.preload.level。
|
|
7902
|
+
*/
|
|
7903
|
+
/** {en}
|
|
7904
|
+
* @brief Zero-based HLS master variant index; overrides strategies.preload.level.
|
|
7905
|
+
*/
|
|
7906
|
+
level?: number;
|
|
7925
7907
|
/** {zh}
|
|
7926
7908
|
* @brief 视频 ID
|
|
7927
7909
|
*/
|
|
@@ -8108,16 +8090,30 @@ export declare type IPreloadConfig = {
|
|
|
8108
8090
|
*/
|
|
8109
8091
|
preloadScene?: PreloadScene;
|
|
8110
8092
|
/** {zh}
|
|
8111
|
-
* @brief
|
|
8093
|
+
* @brief 预加载格式,可传数组以同时初始化 MP4 和 HLS。
|
|
8112
8094
|
* - mp4: mp4格式
|
|
8113
8095
|
* - hls: hls格式
|
|
8114
8096
|
* @default mp4
|
|
8115
8097
|
*/
|
|
8116
8098
|
/** {en}
|
|
8117
|
-
* @brief
|
|
8099
|
+
* @brief Preload format. An array initializes both MP4 and HLS.
|
|
8118
8100
|
* @default mp4
|
|
8119
8101
|
*/
|
|
8120
|
-
format?: PreloadFormat;
|
|
8102
|
+
format?: PreloadFormat | PreloadFormat[];
|
|
8103
|
+
/** {zh}
|
|
8104
|
+
* @brief HLS 预载分片数量,正整数,默认 2。
|
|
8105
|
+
*/
|
|
8106
|
+
/** {en}
|
|
8107
|
+
* @brief Number of HLS segments to preload. Positive integer; defaults to 2.
|
|
8108
|
+
*/
|
|
8109
|
+
sn?: number;
|
|
8110
|
+
/** {zh}
|
|
8111
|
+
* @brief HLS master 子列表索引,从 0 开始,默认 0。
|
|
8112
|
+
*/
|
|
8113
|
+
/** {en}
|
|
8114
|
+
* @brief Zero-based HLS master variant index; defaults to 0.
|
|
8115
|
+
*/
|
|
8116
|
+
level?: number;
|
|
8121
8117
|
/** {zh}
|
|
8122
8118
|
* 向前预加载视频个数,Feed流场景时生效
|
|
8123
8119
|
* @default 1
|
|
@@ -8415,7 +8411,6 @@ declare function getMediaInfoCacheConfig(): NormalizedMediaInfoCacheConfig;
|
|
|
8415
8411
|
export interface DramaIdentity {
|
|
8416
8412
|
albumId: string | null;
|
|
8417
8413
|
episodeId: string | null;
|
|
8418
|
-
vid: string | null;
|
|
8419
8414
|
}
|
|
8420
8415
|
export declare type PlayerPlaybackState = "creating" | "ready" | "playing" | "paused" | "buffering" | "ended" | "error" | "destroyed";
|
|
8421
8416
|
export interface PlayerPlaybackStateSnapshot extends DramaIdentity {
|