@volcengine/veplayer 1.21.1-rc.2 → 1.21.1-rc.4
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 +19 -12
- package/index.min.js +2 -2
- package/lite.cjs +2 -2
- package/lite.d.ts +4 -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 +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
|
@@ -3413,17 +3413,13 @@ export interface ITTDramaEnv {
|
|
|
3413
3413
|
sendLog: (EventName: string, params: Record<string, any>) => void;
|
|
3414
3414
|
/** {zh}
|
|
3415
3415
|
* @hidden
|
|
3416
|
-
* @brief
|
|
3416
|
+
* @brief 通知宿主当前在播短剧及其播放参数的变化。
|
|
3417
3417
|
*/
|
|
3418
3418
|
/** {en}
|
|
3419
3419
|
* @hidden
|
|
3420
|
-
* @brief Notifies the host
|
|
3420
|
+
* @brief Notifies the host when the current drama or its playback options change.
|
|
3421
3421
|
*/
|
|
3422
|
-
onCurrentDramaPlaybackContextChange?: (context:
|
|
3423
|
-
albumId: string | null;
|
|
3424
|
-
episodeId: string | null;
|
|
3425
|
-
vid: string | null;
|
|
3426
|
-
} | null) => boolean | void;
|
|
3422
|
+
onCurrentDramaPlaybackContextChange?: (context: DramaPlaybackContext | null) => boolean | void;
|
|
3427
3423
|
/**
|
|
3428
3424
|
* 低版本 app 下验证 TTOP 签发的 playAuthToken 时使用的密钥
|
|
3429
3425
|
* 通过 JSB(如 minis.getSecret)从 Native 获取,用于 HMAC-SHA256 签名校验
|
|
@@ -3453,6 +3449,21 @@ export interface IGetDramaInfoTranscodeParam {
|
|
|
3453
3449
|
drm_kek?: string;
|
|
3454
3450
|
js_player?: string;
|
|
3455
3451
|
}
|
|
3452
|
+
/** {zh}
|
|
3453
|
+
* @brief 当前在播短剧的标识和播放参数。
|
|
3454
|
+
* @hidden
|
|
3455
|
+
*/
|
|
3456
|
+
/** {en}
|
|
3457
|
+
* @brief The identity and playback options of the current drama.
|
|
3458
|
+
* @hidden
|
|
3459
|
+
*/
|
|
3460
|
+
export interface DramaPlaybackContext {
|
|
3461
|
+
albumId: string | null;
|
|
3462
|
+
episodeId: string | null;
|
|
3463
|
+
vid: string | null;
|
|
3464
|
+
transcodeParam?: IGetDramaInfoTranscodeParam;
|
|
3465
|
+
defaultDefinition?: string;
|
|
3466
|
+
}
|
|
3456
3467
|
export interface MinisError {
|
|
3457
3468
|
error_code: number;
|
|
3458
3469
|
error_msg: string;
|
|
@@ -8774,11 +8785,7 @@ export declare type NormalizedMediaInfoCacheConfig = {
|
|
|
8774
8785
|
maxEntries: number;
|
|
8775
8786
|
};
|
|
8776
8787
|
declare function getMediaInfoCacheConfig(): NormalizedMediaInfoCacheConfig;
|
|
8777
|
-
export
|
|
8778
|
-
albumId: string | null;
|
|
8779
|
-
episodeId: string | null;
|
|
8780
|
-
vid: string | null;
|
|
8781
|
-
}
|
|
8788
|
+
export declare type DramaIdentity = Pick<DramaPlaybackContext, "albumId" | "episodeId" | "vid">;
|
|
8782
8789
|
export declare type PlayerPlaybackState = "creating" | "ready" | "playing" | "paused" | "buffering" | "ended" | "error" | "destroyed";
|
|
8783
8790
|
export interface PlayerPlaybackStateSnapshot extends DramaIdentity {
|
|
8784
8791
|
playbackSessionId: string;
|