@byteplus/veplayer 1.19.2-rc.8 → 1.19.2-rc.9
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 +21 -7
- 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 +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
|
@@ -7181,6 +7181,8 @@ export declare const enum LangTextKey {
|
|
|
7181
7181
|
DRAMA_FAILED_TO_QUERY = "DRAMA_FAILED_TO_QUERY",
|
|
7182
7182
|
DRAMA_INVALID_TTOP_TOKEN = "DRAMA_INVALID_TTOP_TOKEN",
|
|
7183
7183
|
DRAMA_NOT_ON_SHELF = "DRAMA_NOT_ON_SHELF",
|
|
7184
|
+
DRAMA_EMPTY_PLAYLIST = "DRAMA_EMPTY_PLAYLIST",
|
|
7185
|
+
DRAMA_GET_INFO_TIMEOUT = "DRAMA_GET_INFO_TIMEOUT",
|
|
7184
7186
|
DRAMA_FAILED_GET_EPISODE_INFO = "DRAMA_FAILED_GET_EPISODE_INFO"
|
|
7185
7187
|
}
|
|
7186
7188
|
declare const DRAMA_ERROR_CODE: {
|
|
@@ -7230,6 +7232,16 @@ declare const DRAMA_ERROR_CODE: {
|
|
|
7230
7232
|
readonly message: "Video is not on shelf";
|
|
7231
7233
|
readonly textKey: LangTextKey.DRAMA_NOT_ON_SHELF;
|
|
7232
7234
|
};
|
|
7235
|
+
readonly EMPTY_PLAYLIST: {
|
|
7236
|
+
readonly code: 9311;
|
|
7237
|
+
readonly message: "Episode video playlist is empty";
|
|
7238
|
+
readonly textKey: LangTextKey.DRAMA_EMPTY_PLAYLIST;
|
|
7239
|
+
};
|
|
7240
|
+
readonly GET_INFO_TIMEOUT: {
|
|
7241
|
+
readonly code: 9312;
|
|
7242
|
+
readonly message: "getDramaInfo request timed out";
|
|
7243
|
+
readonly textKey: LangTextKey.DRAMA_GET_INFO_TIMEOUT;
|
|
7244
|
+
};
|
|
7233
7245
|
readonly FAILED_GET_EPISODE_INFO: {
|
|
7234
7246
|
readonly code: 9399;
|
|
7235
7247
|
readonly message: "Failed get episode info";
|
|
@@ -7251,7 +7263,7 @@ declare class AuthToken extends SdkPlugin {
|
|
|
7251
7263
|
playInfo?: VideoInfoRes;
|
|
7252
7264
|
constructor(args: any);
|
|
7253
7265
|
beforePlayerCreate(): Promise<void>;
|
|
7254
|
-
getVideoInfo(sourceConfigs?: IPlayerConfig): Promise<{
|
|
7266
|
+
getVideoInfo(sourceConfigs?: IPlayerConfig, errors?: any[]): Promise<{
|
|
7255
7267
|
vid: string;
|
|
7256
7268
|
__mediaInfoCacheHit: boolean;
|
|
7257
7269
|
__serverFetchDuration: number;
|
|
@@ -7260,10 +7272,11 @@ declare class AuthToken extends SdkPlugin {
|
|
|
7260
7272
|
codec: ICodecType;
|
|
7261
7273
|
defaultDefinition: string;
|
|
7262
7274
|
}>;
|
|
7275
|
+
private reportEmptyDramaPlaylist;
|
|
7263
7276
|
/**
|
|
7264
7277
|
* 短剧 Minis 环境:通过 JSB getDramaInfo 获取媒体信息
|
|
7265
7278
|
*/
|
|
7266
|
-
getDramaInfoViaJSB(sourceConfigs?: IPlayerConfig): Promise<VideoInfoRes | undefined>;
|
|
7279
|
+
getDramaInfoViaJSB(sourceConfigs?: IPlayerConfig, errors?: any[]): Promise<VideoInfoRes | undefined>;
|
|
7267
7280
|
/**
|
|
7268
7281
|
* 将审核状态映射到短剧错误码
|
|
7269
7282
|
*/
|
|
@@ -7282,7 +7295,7 @@ declare class AuthToken extends SdkPlugin {
|
|
|
7282
7295
|
episodeId?: string;
|
|
7283
7296
|
vid?: string;
|
|
7284
7297
|
}): void;
|
|
7285
|
-
getVideos(sourceConfigs?: IPlayerConfig): Promise<any>;
|
|
7298
|
+
getVideos(sourceConfigs?: IPlayerConfig, errors?: any[]): Promise<any>;
|
|
7286
7299
|
getPrivateDrmInfo(playList: Stream[], vid: string, streamType: string): Promise<void>;
|
|
7287
7300
|
getThumbnailConfig(thumbs: IThumbInfoItem[]): void;
|
|
7288
7301
|
getBarrageMaskUrl(url: string): void;
|
|
@@ -7303,16 +7316,16 @@ declare class AuthToken extends SdkPlugin {
|
|
|
7303
7316
|
/**
|
|
7304
7317
|
* 剧集切换:configs 已由 player 更新 album_id/episode_id,重新拉取媒体信息
|
|
7305
7318
|
*/
|
|
7306
|
-
updateDramaEpisode(isNewVideo: boolean, candidateConfig?: IPlayerConfig): Promise<void>;
|
|
7319
|
+
updateDramaEpisode(isNewVideo: boolean, candidateConfig?: IPlayerConfig, errors?: any[]): Promise<void>;
|
|
7307
7320
|
/**
|
|
7308
7321
|
* @description 更新playAuthToken
|
|
7309
7322
|
* @param {IPlayAuthTokenConfig} getVideoByToken token信息
|
|
7310
7323
|
* @param {boolean} isNewVideo 是否新视频,即是否为切换视频
|
|
7311
7324
|
*/
|
|
7312
7325
|
updateAuthToken(getVideoByToken: IPlayAuthTokenConfig, isNewVideo: boolean): Promise<void>;
|
|
7313
|
-
checkPlayAuthTokenValid(): boolean;
|
|
7314
|
-
checkKeyTokenValid(): boolean;
|
|
7315
|
-
checkDrmAuthTokenValid(): boolean;
|
|
7326
|
+
checkPlayAuthTokenValid(errors?: any[]): boolean;
|
|
7327
|
+
checkKeyTokenValid(errors?: any[]): boolean;
|
|
7328
|
+
checkDrmAuthTokenValid(errors?: any[]): boolean;
|
|
7316
7329
|
}
|
|
7317
7330
|
/** {zh}
|
|
7318
7331
|
* @hidden
|
|
@@ -9395,6 +9408,7 @@ declare class VePlayer {
|
|
|
9395
9408
|
private _buildDramaInvalidParamError;
|
|
9396
9409
|
private _getDramaAlbumIdFromConfig;
|
|
9397
9410
|
private _getDramaEpisodeIdFromConfig;
|
|
9411
|
+
private _reportPlayNextFailure;
|
|
9398
9412
|
private switchDramaEpisode;
|
|
9399
9413
|
/** {zh}
|
|
9400
9414
|
* @brief 销毁xgplayer实例
|