@volcengine/veplayer 1.7.5-rc.5 → 1.7.5-rc.6

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.
Files changed (3) hide show
  1. package/index.d.ts +128 -122
  2. package/index.min.js +2 -2
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1097,6 +1097,128 @@ export interface IAutoplayPluginConfig {
1097
1097
  userActionDom?: Node;
1098
1098
  enableUserActionAutoplay?: boolean;
1099
1099
  }
1100
+ declare class PlayList {
1101
+ private config;
1102
+ private parent;
1103
+ private root;
1104
+ private modal;
1105
+ private _delegates;
1106
+ private attrKeys;
1107
+ constructor(args: any);
1108
+ renderItemList(dataList?: any[]): void;
1109
+ onItemClick(e: any): boolean;
1110
+ getAttrObj(dom: HTMLElement, keys: string[]): {
1111
+ index?: number;
1112
+ } & Record<string, any>;
1113
+ show(): void;
1114
+ hide(): void;
1115
+ modalClick(e: any): void;
1116
+ setStyle(style: any): void;
1117
+ destroy(): void;
1118
+ }
1119
+ export declare const enum TOGGLE_MODES {
1120
+ CLICK = "click",
1121
+ HOVER = "hover"
1122
+ }
1123
+ export interface IPlayListItem {
1124
+ url?: string;
1125
+ playAuthToken?: string;
1126
+ vid: string;
1127
+ poster?: string;
1128
+ title?: string;
1129
+ }
1130
+ declare enum EPlayMode {
1131
+ ORDER = "order",
1132
+ LOOP = "loop"
1133
+ }
1134
+ export interface IPlayListConfig {
1135
+ position?: string;
1136
+ index?: number;
1137
+ list: IPlayListItem[];
1138
+ mode?: EPlayMode;
1139
+ defaultIndex?: number;
1140
+ isItemClickHide?: boolean;
1141
+ toggleMode?: TOGGLE_MODES;
1142
+ isShowIcon?: boolean;
1143
+ }
1144
+ export declare class PlayListPlugin extends Plugin {
1145
+ isIcons: boolean;
1146
+ isActive: boolean;
1147
+ curInfo: any;
1148
+ private nextIndex;
1149
+ private prevIndex;
1150
+ curIndex: number;
1151
+ optionsList: OptionList;
1152
+ private activeEvent;
1153
+ private list;
1154
+ private _disable;
1155
+ private halfPass;
1156
+ private mode;
1157
+ private timer;
1158
+ static get pluginName(): string;
1159
+ static get defaultConfig(): IPlayListConfig;
1160
+ beforeCreate(args: any): void;
1161
+ afterCreate(): void;
1162
+ registerLanguageTexts(): {
1163
+ playNext: {
1164
+ jp: string;
1165
+ en: string;
1166
+ zh: string;
1167
+ "zh-hk": string;
1168
+ };
1169
+ playList: {
1170
+ jp: string;
1171
+ en: string;
1172
+ zh: string;
1173
+ "zh-hk": string;
1174
+ };
1175
+ };
1176
+ registerIcons(): {
1177
+ [x: string]: {
1178
+ icon: any;
1179
+ class: string;
1180
+ };
1181
+ };
1182
+ private initIcons;
1183
+ show(): void;
1184
+ hide(): void;
1185
+ private onEnter;
1186
+ private switchActiveState;
1187
+ /**
1188
+ * @brief 播放上一个
1189
+ */
1190
+ prev(): void;
1191
+ /**
1192
+ * @brief 播放下一个
1193
+ */
1194
+ next(): void;
1195
+ /**
1196
+ * @breief 更换播放列表
1197
+ * @param { IPlayListItem[] } list 添加的播放列表
1198
+ */
1199
+ changeList(list: IPlayListItem[]): void;
1200
+ /**
1201
+ * @brief 设置播放序号
1202
+ * @param { number } index 目标序号
1203
+ */
1204
+ setIndex(index: number): void;
1205
+ private change;
1206
+ _onTimeUpdate: () => void;
1207
+ private confirmOrder;
1208
+ private _nextCompute;
1209
+ private _prevCompute;
1210
+ private _onEnded;
1211
+ private _emitChange;
1212
+ private onLeave;
1213
+ toggle(isActive: boolean): void;
1214
+ private onItemClick;
1215
+ private renderItemList;
1216
+ private _resizeList;
1217
+ destroy(): void;
1218
+ set disable(val: boolean);
1219
+ get disable(): boolean;
1220
+ render(): string;
1221
+ }
1100
1222
  export interface IPlayInfoList {
1101
1223
  BackupPlayUrl: string;
1102
1224
  BackupUrlExpire: string;
@@ -1664,6 +1786,12 @@ export interface IPlayerConfig extends IPlayerOptions {
1664
1786
  * @memberof IPlayerConfig
1665
1787
  */
1666
1788
  AutoplayPlugin?: IAutoplayPluginConfig;
1789
+ /**
1790
+ * 播放列表配置
1791
+ * @type { IPlayListConfig }
1792
+ * @memberof IPlayerConfig
1793
+ */
1794
+ playListPlugin?: IPlayListConfig;
1667
1795
  }
1668
1796
  /**
1669
1797
  * 初始配置
@@ -2057,12 +2185,6 @@ declare class PlayerData {
2057
2185
  */
2058
2186
  get playDomain(): string;
2059
2187
  setVodTeaId(): void;
2060
- /**
2061
- * @hidden
2062
- * @brief 播放列表插件的配置
2063
- * @param configs
2064
- */
2065
- setVodPlayListConfig(configs: IPlayerConfig): void;
2066
2188
  }
2067
2189
  declare function isMSESupport(mime?: string): boolean;
2068
2190
  export interface IConfig {
@@ -3250,122 +3372,6 @@ export declare class MemoryPlay extends Plugin {
3250
3372
  saveTimeByStorage(memoryId: any, time: any): void;
3251
3373
  getTimeByStorage(memoryId: any): string;
3252
3374
  }
3253
- declare class PlayList {
3254
- private config;
3255
- private parent;
3256
- private root;
3257
- private modal;
3258
- private _delegates;
3259
- private attrKeys;
3260
- constructor(args: any);
3261
- renderItemList(dataList?: any[]): void;
3262
- onItemClick(e: any): boolean;
3263
- getAttrObj(dom: HTMLElement, keys: string[]): {
3264
- index?: number;
3265
- } & Record<string, any>;
3266
- show(): void;
3267
- hide(): void;
3268
- modalClick(e: any): void;
3269
- setStyle(style: any): void;
3270
- destroy(): void;
3271
- }
3272
- export declare const enum TOGGLE_MODES {
3273
- CLICK = "click",
3274
- HOVER = "hover"
3275
- }
3276
- export interface IPlayListItem {
3277
- url?: string;
3278
- playAuthToken?: string;
3279
- vid: string;
3280
- poster?: string;
3281
- title?: string;
3282
- }
3283
- declare enum EPlayMode {
3284
- ORDER = "order",
3285
- LOOP = "loop"
3286
- }
3287
- export interface IPlayListConfig {
3288
- position?: string;
3289
- index?: number;
3290
- list: IPlayListItem[];
3291
- mode?: EPlayMode;
3292
- defaultIndex?: number;
3293
- isItemClickHide?: boolean;
3294
- toggleMode?: TOGGLE_MODES;
3295
- isShowIcon?: boolean;
3296
- }
3297
- export declare class PlayListPlugin extends Plugin {
3298
- isIcons: boolean;
3299
- isActive: boolean;
3300
- curInfo: any;
3301
- private nextIndex;
3302
- private prevIndex;
3303
- curIndex: number;
3304
- optionsList: OptionList;
3305
- private activeEvent;
3306
- private list;
3307
- private _disable;
3308
- private halfPass;
3309
- private mode;
3310
- private timer;
3311
- static get pluginName(): string;
3312
- static get defaultConfig(): IPlayListConfig;
3313
- beforeCreate(args: any): void;
3314
- afterCreate(): void;
3315
- registerLanguageTexts(): {
3316
- playNext: {
3317
- jp: string;
3318
- en: string;
3319
- zh: string;
3320
- "zh-hk": string;
3321
- };
3322
- playList: {
3323
- jp: string;
3324
- en: string;
3325
- zh: string;
3326
- "zh-hk": string;
3327
- };
3328
- };
3329
- registerIcons(): {
3330
- [x: string]: {
3331
- icon: any;
3332
- class: string;
3333
- };
3334
- };
3335
- private initIcons;
3336
- show(): void;
3337
- hide(): void;
3338
- onEnter: (e: any) => void;
3339
- private switchActiveState;
3340
- prev(): void;
3341
- next: () => void;
3342
- /**
3343
- * @breief 更新播放列表
3344
- * @param { IPlayListItem[] } list 添加的播放列表
3345
- */
3346
- changeList(list: IPlayListItem[]): void;
3347
- /**
3348
- * @brief 设置播放序号
3349
- * @param { number } index 目标序号
3350
- */
3351
- setIndex(index: number): void;
3352
- change(): void;
3353
- _onTimeUpdate: () => void;
3354
- confirmOrder(): void;
3355
- _nextCompute(): void;
3356
- _prevCompute(): void;
3357
- _onEnded: () => void;
3358
- _emitChange(): void;
3359
- onLeave: (e: any) => void;
3360
- toggle(isActive: boolean): void;
3361
- onItemClick(e: any, data: any): void;
3362
- renderItemList(curIndex?: number): void;
3363
- _resizeList(): void;
3364
- destroy(): void;
3365
- set disable(val: boolean);
3366
- get disable(): boolean;
3367
- render(): string;
3368
- }
3369
3375
  export declare type InfoItem = {
3370
3376
  key: string;
3371
3377
  label: string;