@volcengine/veplayer 1.7.0-rc.1 → 1.7.1-rc.0
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 +461 -30
- package/index.min.css +1 -1
- package/index.min.js +2 -2
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import VodLogger from '@byted/xgplayer-app-logger/es/logger.js';
|
|
|
2
2
|
import { Property } from 'dom-helpers/esm/types';
|
|
3
3
|
import EventEmitter from 'eventemitter3';
|
|
4
4
|
import Player from 'xgplayer';
|
|
5
|
-
import { I18N, IXGI18nText, Plugin } from 'xgplayer';
|
|
5
|
+
import { Events as XgEvents, I18N, IXGI18nText, Plugin } from 'xgplayer';
|
|
6
6
|
|
|
7
7
|
declare enum POSITIONS {
|
|
8
8
|
ROOT = "root",
|
|
@@ -1090,14 +1090,6 @@ export declare type IPlayerOptions = {
|
|
|
1090
1090
|
volumeColor?: string;
|
|
1091
1091
|
};
|
|
1092
1092
|
};
|
|
1093
|
-
declare enum PlatformEnum {
|
|
1094
|
-
VOLC_ENGINE = "volcengine",
|
|
1095
|
-
BYTE_PLUS = "byteplus"
|
|
1096
|
-
}
|
|
1097
|
-
export interface apiMapItem {
|
|
1098
|
-
playDomain: string;
|
|
1099
|
-
backupPlayDomain?: string;
|
|
1100
|
-
}
|
|
1101
1093
|
export interface IAutoplayPluginConfig {
|
|
1102
1094
|
position?: string;
|
|
1103
1095
|
enableDegradeMuteAutoplay?: boolean;
|
|
@@ -1105,14 +1097,43 @@ export interface IAutoplayPluginConfig {
|
|
|
1105
1097
|
userActionDom?: Node;
|
|
1106
1098
|
enableUserActionAutoplay?: boolean;
|
|
1107
1099
|
}
|
|
1100
|
+
export interface IPlayInfoList {
|
|
1101
|
+
BackupPlayUrl: string;
|
|
1102
|
+
BackupUrlExpire: string;
|
|
1103
|
+
BarrageMaskOffset: string;
|
|
1104
|
+
Bitrate: number;
|
|
1105
|
+
CheckInfo: string;
|
|
1106
|
+
Codec: string;
|
|
1107
|
+
Definition: string;
|
|
1108
|
+
Duration: number;
|
|
1109
|
+
FileId: string;
|
|
1110
|
+
FileType: string;
|
|
1111
|
+
Format: string;
|
|
1112
|
+
Height: number;
|
|
1113
|
+
IndexRange: string;
|
|
1114
|
+
InitRange: string;
|
|
1115
|
+
KeyFrameAlignment: string;
|
|
1116
|
+
LogoType: string;
|
|
1117
|
+
MainPlayUrl: string;
|
|
1118
|
+
MainUrlExpire: string;
|
|
1119
|
+
Md5: string;
|
|
1120
|
+
PlayAuth: string;
|
|
1121
|
+
PlayAuthId: string;
|
|
1122
|
+
Quality: string;
|
|
1123
|
+
Size: number;
|
|
1124
|
+
Volume?: number;
|
|
1125
|
+
Width: number;
|
|
1126
|
+
}
|
|
1108
1127
|
declare enum CodecType {
|
|
1109
1128
|
H265 = "h265",
|
|
1110
|
-
H264 = "h264"
|
|
1129
|
+
H264 = "h264",
|
|
1130
|
+
UNKNOWN = "unknown"
|
|
1111
1131
|
}
|
|
1112
1132
|
declare enum RTMCodec {
|
|
1113
1133
|
H264 = "h264"
|
|
1114
1134
|
}
|
|
1115
|
-
export declare type
|
|
1135
|
+
export declare type TRegionType = "cn" | "va" | "sg";
|
|
1136
|
+
export declare type PlayModeType = "order" | "sloop" | "loop" | "random";
|
|
1116
1137
|
export interface IMusicListItem {
|
|
1117
1138
|
/**
|
|
1118
1139
|
* 音乐地址
|
|
@@ -1196,7 +1217,7 @@ export interface IMusicConfig {
|
|
|
1196
1217
|
* @type {('order' | 'sloop' | 'loop' | 'random')}
|
|
1197
1218
|
* @memberof IMusicConfig
|
|
1198
1219
|
*/
|
|
1199
|
-
mode?:
|
|
1220
|
+
mode?: PlayModeType;
|
|
1200
1221
|
/**
|
|
1201
1222
|
* 播放列表
|
|
1202
1223
|
*
|
|
@@ -1213,7 +1234,7 @@ export interface IMusicConfig {
|
|
|
1213
1234
|
* @export
|
|
1214
1235
|
* @interface Stream
|
|
1215
1236
|
*/
|
|
1216
|
-
export interface Stream {
|
|
1237
|
+
export interface Stream extends IPlayInfoList {
|
|
1217
1238
|
/**
|
|
1218
1239
|
* url类型,可以选值为“rtm”/“flv”/“mp4”/“hls”
|
|
1219
1240
|
*
|
|
@@ -1342,12 +1363,14 @@ export interface IPlayerConfig extends IPlayerOptions {
|
|
|
1342
1363
|
*/
|
|
1343
1364
|
streamType?: "mp4" | "hls" | "dash" | "rtm" | "flv";
|
|
1344
1365
|
/**
|
|
1345
|
-
*
|
|
1346
|
-
*
|
|
1347
|
-
*
|
|
1348
|
-
*
|
|
1366
|
+
* 区域,影响服务接口和日志上报
|
|
1367
|
+
* @volcengine/veplayer默认区域为cn, @byteplus/veplayer默认区域为sg
|
|
1368
|
+
* 火山引擎海外区域播放时请填写'sg'
|
|
1369
|
+
*
|
|
1370
|
+
* @type {TRegionType}
|
|
1371
|
+
* @memberof IPlayerConfig
|
|
1349
1372
|
*/
|
|
1350
|
-
|
|
1373
|
+
region?: TRegionType;
|
|
1351
1374
|
/**
|
|
1352
1375
|
* 是否音乐播放器模式
|
|
1353
1376
|
*
|
|
@@ -1356,7 +1379,7 @@ export interface IPlayerConfig extends IPlayerOptions {
|
|
|
1356
1379
|
*/
|
|
1357
1380
|
isMusic?: boolean;
|
|
1358
1381
|
/**
|
|
1359
|
-
*
|
|
1382
|
+
* 是否开启播放器原生控件菜单(右键触发)
|
|
1360
1383
|
*
|
|
1361
1384
|
* @type {boolean}
|
|
1362
1385
|
* @memberof IPlayerConfig
|
|
@@ -1369,6 +1392,13 @@ export interface IPlayerConfig extends IPlayerOptions {
|
|
|
1369
1392
|
* @memberof IPlayerConfig
|
|
1370
1393
|
*/
|
|
1371
1394
|
closeVideoStopPropagation?: boolean;
|
|
1395
|
+
/**
|
|
1396
|
+
* 右键菜单是否可用,启用后enableContextmenu强制为false
|
|
1397
|
+
*
|
|
1398
|
+
* @type {boolean}
|
|
1399
|
+
* @memberof IPlayerConfig
|
|
1400
|
+
*/
|
|
1401
|
+
enableMenu?: boolean;
|
|
1372
1402
|
/**
|
|
1373
1403
|
* 是否开启hls的MSE模式,仅移动端生效,开启后采用MSE方式播放HLS,默认在移动端使用原生video播放hls
|
|
1374
1404
|
*
|
|
@@ -1925,6 +1955,10 @@ export interface IMemoryPlayConfig {
|
|
|
1925
1955
|
*/
|
|
1926
1956
|
getTime: (id: number | string) => number | Promise<number>;
|
|
1927
1957
|
}
|
|
1958
|
+
export interface ApiMapConfig {
|
|
1959
|
+
playDomain: string;
|
|
1960
|
+
backupPlayDomain?: string;
|
|
1961
|
+
}
|
|
1928
1962
|
declare class PlayerData {
|
|
1929
1963
|
id?: string;
|
|
1930
1964
|
root?: HTMLElement;
|
|
@@ -1949,13 +1983,14 @@ declare class PlayerData {
|
|
|
1949
1983
|
expireDetectType: Array<"xhrStatus" | "urlExpire" | "getUrlTime">;
|
|
1950
1984
|
onMediaExpired: () => Promise<IPlayerConfig>;
|
|
1951
1985
|
onTokenExpired: () => Promise<IPlayAuthTokenConfig>;
|
|
1952
|
-
platform: PlatformEnum;
|
|
1953
|
-
apiMap: apiMapItem;
|
|
1954
1986
|
unionId?: string;
|
|
1955
1987
|
unionInfo?: string;
|
|
1956
1988
|
isMusic?: boolean;
|
|
1957
1989
|
sdkPlugins: any[];
|
|
1958
1990
|
useHlsPluginForSafari: boolean;
|
|
1991
|
+
enableMenu: boolean;
|
|
1992
|
+
region: TRegionType;
|
|
1993
|
+
playDomainDegrade: boolean;
|
|
1959
1994
|
constructor(configs: IPlayerConfig);
|
|
1960
1995
|
initPlayData(configs: any): void;
|
|
1961
1996
|
initPlaylistAndGetCurrent(configs: IPlayerConfig): any;
|
|
@@ -2002,6 +2037,16 @@ declare class PlayerData {
|
|
|
2002
2037
|
* @param {boolean} isDown
|
|
2003
2038
|
*/
|
|
2004
2039
|
getNextDefinition(isDown: boolean, demotePriority: any): Stream[];
|
|
2040
|
+
/**
|
|
2041
|
+
* 获取api map
|
|
2042
|
+
* @return { ApiMapConfig }
|
|
2043
|
+
*/
|
|
2044
|
+
get apiMap(): ApiMapConfig;
|
|
2045
|
+
/**
|
|
2046
|
+
* 获取播放域名
|
|
2047
|
+
*/
|
|
2048
|
+
get playDomain(): string;
|
|
2049
|
+
setVodTeaId(): void;
|
|
2005
2050
|
}
|
|
2006
2051
|
declare function isMSESupport(mime?: string): boolean;
|
|
2007
2052
|
export interface IConfig {
|
|
@@ -2182,7 +2227,7 @@ declare class VePlayer {
|
|
|
2182
2227
|
initCheckExpire(): void;
|
|
2183
2228
|
/**
|
|
2184
2229
|
* @hidden
|
|
2185
|
-
* @description 更新
|
|
2230
|
+
* @description 更新umdLoader 的配置
|
|
2186
2231
|
* @memberof VePlayer
|
|
2187
2232
|
*/
|
|
2188
2233
|
private initUmdLoader;
|
|
@@ -2274,8 +2319,8 @@ declare class VePlayer {
|
|
|
2274
2319
|
/**
|
|
2275
2320
|
* @hidden
|
|
2276
2321
|
*
|
|
2277
|
-
* @param {
|
|
2278
|
-
* @return {
|
|
2322
|
+
* @param {IPlayerConfig} finalOptions
|
|
2323
|
+
* @return {void}
|
|
2279
2324
|
* @memberof VePlayer
|
|
2280
2325
|
*/
|
|
2281
2326
|
setPluginConfig(finalOptions: IPlayerConfig): void;
|
|
@@ -2520,17 +2565,17 @@ declare class VePlayer {
|
|
|
2520
2565
|
/**
|
|
2521
2566
|
* 获取音乐播放模式
|
|
2522
2567
|
* @notes 仅音乐播放模式有效
|
|
2523
|
-
* @return {
|
|
2568
|
+
* @return {PlayModeType}
|
|
2524
2569
|
* @memberof VePlayer
|
|
2525
2570
|
*/
|
|
2526
|
-
get musicMode():
|
|
2571
|
+
get musicMode(): PlayModeType;
|
|
2527
2572
|
/**
|
|
2528
2573
|
* 设置音乐播放模式
|
|
2529
2574
|
* @notes 仅音乐播放模式有效
|
|
2530
2575
|
* @memberof VePlayer
|
|
2531
|
-
* @param {
|
|
2576
|
+
* @param {PlayModeType} val 模式值
|
|
2532
2577
|
*/
|
|
2533
|
-
set musicMode(val:
|
|
2578
|
+
set musicMode(val: PlayModeType);
|
|
2534
2579
|
/**
|
|
2535
2580
|
* 获取音乐播放快进快退时间跨度
|
|
2536
2581
|
* @notes 仅音乐播放模式有效
|
|
@@ -2630,8 +2675,15 @@ declare class VePlayer {
|
|
|
2630
2675
|
/**
|
|
2631
2676
|
* 获取质量日志上报的用户id
|
|
2632
2677
|
* @return {string | undefined}
|
|
2678
|
+
* @memberof VePlayer
|
|
2633
2679
|
*/
|
|
2634
|
-
getLogUserId():
|
|
2680
|
+
getLogUserId(): string;
|
|
2681
|
+
/**
|
|
2682
|
+
* 获取当前配置的region
|
|
2683
|
+
* @return {TRegionType}
|
|
2684
|
+
* @memberof VePlayer
|
|
2685
|
+
*/
|
|
2686
|
+
get region(): TRegionType;
|
|
2635
2687
|
/**
|
|
2636
2688
|
* 销毁当前播放器SDK实例
|
|
2637
2689
|
*
|
|
@@ -2787,6 +2839,26 @@ export declare class LiveSubtitlesIconPlugin extends Plugin {
|
|
|
2787
2839
|
destroy(): void;
|
|
2788
2840
|
render(): string;
|
|
2789
2841
|
}
|
|
2842
|
+
declare class NativeSubTitle extends EventEmitter {
|
|
2843
|
+
_media: any;
|
|
2844
|
+
_list: any[];
|
|
2845
|
+
_languages: string;
|
|
2846
|
+
curIndex: number;
|
|
2847
|
+
constructor(media: any);
|
|
2848
|
+
_init(): void;
|
|
2849
|
+
_onChange: (e: any) => void;
|
|
2850
|
+
/**
|
|
2851
|
+
* @description 切换字幕
|
|
2852
|
+
* @param { null | {
|
|
2853
|
+
* id: any,
|
|
2854
|
+
* language: any
|
|
2855
|
+
* }} data
|
|
2856
|
+
* @return {Promise<{code: number}>}
|
|
2857
|
+
*/
|
|
2858
|
+
switch(data: any): Promise<unknown>;
|
|
2859
|
+
switchOff(): void;
|
|
2860
|
+
destroy(): void;
|
|
2861
|
+
}
|
|
2790
2862
|
export interface IPanelItem {
|
|
2791
2863
|
showText: string;
|
|
2792
2864
|
selected: boolean;
|
|
@@ -2826,6 +2898,9 @@ export declare class Subtitle extends Plugin {
|
|
|
2826
2898
|
subTitles: any;
|
|
2827
2899
|
curIndex: number;
|
|
2828
2900
|
curItem: ISubTitleItem;
|
|
2901
|
+
player: Player & {
|
|
2902
|
+
_subTitles?: NativeSubTitle;
|
|
2903
|
+
};
|
|
2829
2904
|
afterCreate(): void;
|
|
2830
2905
|
/**
|
|
2831
2906
|
* @description 初始化原生字幕
|
|
@@ -2900,7 +2975,10 @@ export declare class Subtitle extends Plugin {
|
|
|
2900
2975
|
* @param { boolean } needRemove 是否移除原来的字幕
|
|
2901
2976
|
*/
|
|
2902
2977
|
updateSubtitles(list?: any[], needRemove?: boolean): void;
|
|
2903
|
-
updateList(data?: {
|
|
2978
|
+
updateList(data?: {
|
|
2979
|
+
list?: any[];
|
|
2980
|
+
isOpen?: boolean;
|
|
2981
|
+
}): void;
|
|
2904
2982
|
changeTipText(): void;
|
|
2905
2983
|
showMobilePanel(): void;
|
|
2906
2984
|
updatePanel(): void;
|
|
@@ -3245,6 +3323,359 @@ export declare class SdkPlugin {
|
|
|
3245
3323
|
*/
|
|
3246
3324
|
__destroy(): void;
|
|
3247
3325
|
}
|
|
3326
|
+
export declare const Events: {
|
|
3327
|
+
/**
|
|
3328
|
+
* 弹幕配置发生变化
|
|
3329
|
+
*/
|
|
3330
|
+
DANMU_CHANGE: string;
|
|
3331
|
+
/**
|
|
3332
|
+
* @hidden
|
|
3333
|
+
*/
|
|
3334
|
+
TIME_SHIFT_CHANGE: string;
|
|
3335
|
+
/**
|
|
3336
|
+
* @hidden
|
|
3337
|
+
*/
|
|
3338
|
+
AI_SUBTITLE_LANG_CHANGE: string;
|
|
3339
|
+
/**
|
|
3340
|
+
* @hidden
|
|
3341
|
+
*/
|
|
3342
|
+
AI_SUBTITLE_MATCH: string;
|
|
3343
|
+
/**
|
|
3344
|
+
* 取消静音
|
|
3345
|
+
*/
|
|
3346
|
+
CANCEL_UNMUTE: string;
|
|
3347
|
+
/**
|
|
3348
|
+
* 处罚刷新
|
|
3349
|
+
*/
|
|
3350
|
+
REFRESH_CLICK: string;
|
|
3351
|
+
/**
|
|
3352
|
+
* 报错时触发降级
|
|
3353
|
+
*/
|
|
3354
|
+
PLAY_BACKUP_CHANGE: string;
|
|
3355
|
+
/**
|
|
3356
|
+
* 报错时触发所有降级结束
|
|
3357
|
+
*/
|
|
3358
|
+
PLAY_BACKUP_CHANGE_FINISH: string;
|
|
3359
|
+
/**
|
|
3360
|
+
* 报错时触发重试
|
|
3361
|
+
*/
|
|
3362
|
+
PLAY_ERROR_BUTTON_CLICK: string;
|
|
3363
|
+
/**
|
|
3364
|
+
* 播放url改变
|
|
3365
|
+
*/
|
|
3366
|
+
PlAY_URL_CHANGE: string;
|
|
3367
|
+
/**
|
|
3368
|
+
* 展示报错
|
|
3369
|
+
*/
|
|
3370
|
+
SHOW_PLAY_ERROR: string;
|
|
3371
|
+
/**
|
|
3372
|
+
* @hidden
|
|
3373
|
+
*/
|
|
3374
|
+
PLAYER_EXTEND_BUTTON: string;
|
|
3375
|
+
/**
|
|
3376
|
+
* 长时间waiting
|
|
3377
|
+
*/
|
|
3378
|
+
LONG_WAITING: string;
|
|
3379
|
+
/**
|
|
3380
|
+
* 频繁waiting
|
|
3381
|
+
*/
|
|
3382
|
+
OFTEN_WAITING: string;
|
|
3383
|
+
/**
|
|
3384
|
+
* 清晰度降级
|
|
3385
|
+
*/
|
|
3386
|
+
DEFINITION_DEMOTE: string;
|
|
3387
|
+
/**
|
|
3388
|
+
*@hidden
|
|
3389
|
+
*/
|
|
3390
|
+
LARKWINDOW_CHANGE: string;
|
|
3391
|
+
/**
|
|
3392
|
+
* @hidden
|
|
3393
|
+
*/
|
|
3394
|
+
PANEL_MODE_CHANGE: string;
|
|
3395
|
+
/**
|
|
3396
|
+
* 清晰度切换
|
|
3397
|
+
*/
|
|
3398
|
+
INNER_DEFINITION_CHANGE: string;
|
|
3399
|
+
/**
|
|
3400
|
+
* 线路切换
|
|
3401
|
+
*/
|
|
3402
|
+
LINE_CHANGE: string;
|
|
3403
|
+
/**
|
|
3404
|
+
* playAuthToken获取url失败
|
|
3405
|
+
*/
|
|
3406
|
+
GET_PLAY_URL_ERR: string;
|
|
3407
|
+
/**
|
|
3408
|
+
* 资源过期
|
|
3409
|
+
*/
|
|
3410
|
+
MEDIA_EXPIRED: string;
|
|
3411
|
+
/**
|
|
3412
|
+
* 开启镜像
|
|
3413
|
+
*/
|
|
3414
|
+
MIRROR_CHANGE: string;
|
|
3415
|
+
/**
|
|
3416
|
+
* 音乐播放器快进快退跨度
|
|
3417
|
+
*/
|
|
3418
|
+
TIME_SCALE_CHANGE: string;
|
|
3419
|
+
/**
|
|
3420
|
+
* 音乐播放器播放模式改变
|
|
3421
|
+
*/
|
|
3422
|
+
MUSIC_MODE_CHANGE: string;
|
|
3423
|
+
/**
|
|
3424
|
+
* 音乐播放器切换音乐
|
|
3425
|
+
*/
|
|
3426
|
+
MUSIC_CHANGE: string;
|
|
3427
|
+
/**
|
|
3428
|
+
* 音乐播放列表发生变化
|
|
3429
|
+
*/
|
|
3430
|
+
MUSIC_LIST_CHANGE: string;
|
|
3431
|
+
/**
|
|
3432
|
+
* 自动播放成功
|
|
3433
|
+
*/
|
|
3434
|
+
AUTOPLAY_SUCCESS: string;
|
|
3435
|
+
/**
|
|
3436
|
+
* 自动播放失败
|
|
3437
|
+
*/
|
|
3438
|
+
AUTOPLAY_FAILED: string;
|
|
3439
|
+
/**
|
|
3440
|
+
* 右键菜单事件,事件data中包含具体信息
|
|
3441
|
+
*/
|
|
3442
|
+
MENU_LOG: string;
|
|
3443
|
+
/**
|
|
3444
|
+
* 点击了右键菜单的反馈按钮
|
|
3445
|
+
*/
|
|
3446
|
+
MENU_REPORT: string;
|
|
3447
|
+
/**
|
|
3448
|
+
* 播放器完成创建
|
|
3449
|
+
*/
|
|
3450
|
+
PLAYER_CREATED_FINISH: string;
|
|
3451
|
+
/**
|
|
3452
|
+
* 播放器重建
|
|
3453
|
+
*/
|
|
3454
|
+
PLAYER_REBUILD: string;
|
|
3455
|
+
/**
|
|
3456
|
+
* 硬解不支持
|
|
3457
|
+
*/
|
|
3458
|
+
NOT_SUPPORT_HARDWARE_DECODER: string;
|
|
3459
|
+
/**
|
|
3460
|
+
* 软解不支持
|
|
3461
|
+
*/
|
|
3462
|
+
NOT_SUPPORT_SOFT_DECODER: string;
|
|
3463
|
+
/**
|
|
3464
|
+
* playAuthToken 过期
|
|
3465
|
+
*/
|
|
3466
|
+
TOKEN_EXPIRED: string;
|
|
3467
|
+
/**
|
|
3468
|
+
* umd 加载失败
|
|
3469
|
+
*/
|
|
3470
|
+
UMD_LOAD_FAIL: string;
|
|
3471
|
+
PLAY: "play";
|
|
3472
|
+
PLAYING: "playing";
|
|
3473
|
+
ENDED: "ended";
|
|
3474
|
+
PAUSE: "pause";
|
|
3475
|
+
ERROR: "error";
|
|
3476
|
+
SEEKING: "seeking";
|
|
3477
|
+
SEEKED: "seeked";
|
|
3478
|
+
TIME_UPDATE: "timeupdate";
|
|
3479
|
+
WAITING: "waiting";
|
|
3480
|
+
CANPLAY: "canplay";
|
|
3481
|
+
CANPLAY_THROUGH: "canplaythrough";
|
|
3482
|
+
DURATION_CHANGE: "durationchange";
|
|
3483
|
+
VOLUME_CHANGE: "volumechange";
|
|
3484
|
+
LOADED_DATA: "loadeddata";
|
|
3485
|
+
LOADED_METADATA: "loadedmetadata";
|
|
3486
|
+
RATE_CHANGE: "ratechange";
|
|
3487
|
+
PROGRESS: "progress";
|
|
3488
|
+
LOAD_START: "loadstart";
|
|
3489
|
+
EMPTIED: "emptied";
|
|
3490
|
+
STALLED: "stalled";
|
|
3491
|
+
SUSPEND: "suspend";
|
|
3492
|
+
ABORT: "abort";
|
|
3493
|
+
BUFFER_CHANGE: "bufferedChange";
|
|
3494
|
+
PLAYER_FOCUS: "focus";
|
|
3495
|
+
PLAYER_BLUR: "blur";
|
|
3496
|
+
READY: "ready";
|
|
3497
|
+
URL_NULL: "urlNull";
|
|
3498
|
+
AUTOPLAY_STARTED: "autoplay_started";
|
|
3499
|
+
AUTOPLAY_PREVENTED: "autoplay_was_prevented";
|
|
3500
|
+
COMPLETE: "complete";
|
|
3501
|
+
REPLAY: "replay";
|
|
3502
|
+
DESTROY: "destroy";
|
|
3503
|
+
URL_CHANGE: "urlchange";
|
|
3504
|
+
DOWNLOAD_SPEED_CHANGE: "download_speed_change";
|
|
3505
|
+
FULLSCREEN_CHANGE: "fullscreen_change";
|
|
3506
|
+
CSS_FULLSCREEN_CHANGE: "cssFullscreen_change";
|
|
3507
|
+
MINI_STATE_CHANGE: "mini_state_change";
|
|
3508
|
+
DEFINITION_CHANGE: "definition_change";
|
|
3509
|
+
BEFORE_DEFINITION_CHANGE: "before_definition_change";
|
|
3510
|
+
AFTER_DEFINITION_CHANGE: "after_definition_change";
|
|
3511
|
+
SEI_PARSED: "SEI_PARSED";
|
|
3512
|
+
RETRY: "retry";
|
|
3513
|
+
VIDEO_RESIZE: "video_resize";
|
|
3514
|
+
PIP_CHANGE: "pip_change";
|
|
3515
|
+
ROTATE: "rotate";
|
|
3516
|
+
SCREEN_SHOT: "screenShot";
|
|
3517
|
+
PLAYNEXT: "playnext";
|
|
3518
|
+
SHORTCUT: "shortcut";
|
|
3519
|
+
XGLOG: "xglog";
|
|
3520
|
+
USER_ACTION: "user_action";
|
|
3521
|
+
RESET: "reset";
|
|
3522
|
+
SOURCE_ERROR: "source_error";
|
|
3523
|
+
SOURCE_SUCCESS: "source_success";
|
|
3524
|
+
SWITCH_SUBTITLE: "switch_subtitle";
|
|
3525
|
+
VIDEO_EVENTS: string[];
|
|
3526
|
+
STATS_EVENTS: typeof XgEvents.STATS_EVENTS;
|
|
3527
|
+
FPS_STUCK: "fps_stuck";
|
|
3528
|
+
};
|
|
3529
|
+
export declare const Event: {
|
|
3530
|
+
SDKEvents: {
|
|
3531
|
+
/**
|
|
3532
|
+
* 播放器完成创建
|
|
3533
|
+
*/
|
|
3534
|
+
PLAYER_CREATED_FINISH: string;
|
|
3535
|
+
/**
|
|
3536
|
+
* 播放器重建
|
|
3537
|
+
*/
|
|
3538
|
+
PLAYER_REBUILD: string;
|
|
3539
|
+
/**
|
|
3540
|
+
* 硬解不支持
|
|
3541
|
+
*/
|
|
3542
|
+
NOT_SUPPORT_HARDWARE_DECODER: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* 软解不支持
|
|
3545
|
+
*/
|
|
3546
|
+
NOT_SUPPORT_SOFT_DECODER: string;
|
|
3547
|
+
/**
|
|
3548
|
+
* playAuthToken 过期
|
|
3549
|
+
*/
|
|
3550
|
+
TOKEN_EXPIRED: string;
|
|
3551
|
+
/**
|
|
3552
|
+
* umd 加载失败
|
|
3553
|
+
*/
|
|
3554
|
+
UMD_LOAD_FAIL: string;
|
|
3555
|
+
};
|
|
3556
|
+
PluginEvents: {
|
|
3557
|
+
/**
|
|
3558
|
+
* 弹幕配置发生变化
|
|
3559
|
+
*/
|
|
3560
|
+
DANMU_CHANGE: string;
|
|
3561
|
+
/**
|
|
3562
|
+
* @hidden
|
|
3563
|
+
*/
|
|
3564
|
+
TIME_SHIFT_CHANGE: string;
|
|
3565
|
+
/**
|
|
3566
|
+
* @hidden
|
|
3567
|
+
*/
|
|
3568
|
+
AI_SUBTITLE_LANG_CHANGE: string;
|
|
3569
|
+
/**
|
|
3570
|
+
* @hidden
|
|
3571
|
+
*/
|
|
3572
|
+
AI_SUBTITLE_MATCH: string;
|
|
3573
|
+
/**
|
|
3574
|
+
* 取消静音
|
|
3575
|
+
*/
|
|
3576
|
+
CANCEL_UNMUTE: string;
|
|
3577
|
+
/**
|
|
3578
|
+
* 处罚刷新
|
|
3579
|
+
*/
|
|
3580
|
+
REFRESH_CLICK: string;
|
|
3581
|
+
/**
|
|
3582
|
+
* 报错时触发降级
|
|
3583
|
+
*/
|
|
3584
|
+
PLAY_BACKUP_CHANGE: string;
|
|
3585
|
+
/**
|
|
3586
|
+
* 报错时触发所有降级结束
|
|
3587
|
+
*/
|
|
3588
|
+
PLAY_BACKUP_CHANGE_FINISH: string;
|
|
3589
|
+
/**
|
|
3590
|
+
* 报错时触发重试
|
|
3591
|
+
*/
|
|
3592
|
+
PLAY_ERROR_BUTTON_CLICK: string;
|
|
3593
|
+
/**
|
|
3594
|
+
* 播放url改变
|
|
3595
|
+
*/
|
|
3596
|
+
PlAY_URL_CHANGE: string;
|
|
3597
|
+
/**
|
|
3598
|
+
* 展示报错
|
|
3599
|
+
*/
|
|
3600
|
+
SHOW_PLAY_ERROR: string;
|
|
3601
|
+
/**
|
|
3602
|
+
* @hidden
|
|
3603
|
+
*/
|
|
3604
|
+
PLAYER_EXTEND_BUTTON: string;
|
|
3605
|
+
/**
|
|
3606
|
+
* 长时间waiting
|
|
3607
|
+
*/
|
|
3608
|
+
LONG_WAITING: string;
|
|
3609
|
+
/**
|
|
3610
|
+
* 频繁waiting
|
|
3611
|
+
*/
|
|
3612
|
+
OFTEN_WAITING: string;
|
|
3613
|
+
/**
|
|
3614
|
+
* 清晰度降级
|
|
3615
|
+
*/
|
|
3616
|
+
DEFINITION_DEMOTE: string;
|
|
3617
|
+
/**
|
|
3618
|
+
*@hidden
|
|
3619
|
+
*/
|
|
3620
|
+
LARKWINDOW_CHANGE: string;
|
|
3621
|
+
/**
|
|
3622
|
+
* @hidden
|
|
3623
|
+
*/
|
|
3624
|
+
PANEL_MODE_CHANGE: string;
|
|
3625
|
+
/**
|
|
3626
|
+
* 清晰度切换
|
|
3627
|
+
*/
|
|
3628
|
+
INNER_DEFINITION_CHANGE: string;
|
|
3629
|
+
/**
|
|
3630
|
+
* 线路切换
|
|
3631
|
+
*/
|
|
3632
|
+
LINE_CHANGE: string;
|
|
3633
|
+
/**
|
|
3634
|
+
* playAuthToken获取url失败
|
|
3635
|
+
*/
|
|
3636
|
+
GET_PLAY_URL_ERR: string;
|
|
3637
|
+
/**
|
|
3638
|
+
* 资源过期
|
|
3639
|
+
*/
|
|
3640
|
+
MEDIA_EXPIRED: string;
|
|
3641
|
+
/**
|
|
3642
|
+
* 开启镜像
|
|
3643
|
+
*/
|
|
3644
|
+
MIRROR_CHANGE: string;
|
|
3645
|
+
/**
|
|
3646
|
+
* 音乐播放器快进快退跨度
|
|
3647
|
+
*/
|
|
3648
|
+
TIME_SCALE_CHANGE: string;
|
|
3649
|
+
/**
|
|
3650
|
+
* 音乐播放器播放模式改变
|
|
3651
|
+
*/
|
|
3652
|
+
MUSIC_MODE_CHANGE: string;
|
|
3653
|
+
/**
|
|
3654
|
+
* 音乐播放器切换音乐
|
|
3655
|
+
*/
|
|
3656
|
+
MUSIC_CHANGE: string;
|
|
3657
|
+
/**
|
|
3658
|
+
* 音乐播放列表发生变化
|
|
3659
|
+
*/
|
|
3660
|
+
MUSIC_LIST_CHANGE: string;
|
|
3661
|
+
/**
|
|
3662
|
+
* 自动播放成功
|
|
3663
|
+
*/
|
|
3664
|
+
AUTOPLAY_SUCCESS: string;
|
|
3665
|
+
/**
|
|
3666
|
+
* 自动播放失败
|
|
3667
|
+
*/
|
|
3668
|
+
AUTOPLAY_FAILED: string;
|
|
3669
|
+
/**
|
|
3670
|
+
* 右键菜单事件,事件data中包含具体信息
|
|
3671
|
+
*/
|
|
3672
|
+
MENU_LOG: string;
|
|
3673
|
+
/**
|
|
3674
|
+
* 点击了右键菜单的反馈按钮
|
|
3675
|
+
*/
|
|
3676
|
+
MENU_REPORT: string;
|
|
3677
|
+
};
|
|
3678
|
+
};
|
|
3248
3679
|
export * from "xgplayer";
|
|
3249
3680
|
|
|
3250
3681
|
export {
|