@yimou6/common-ui 1.9.6 → 1.9.7

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.
@@ -1,3 +1,4 @@
1
+ import Player from 'xgplayer';
1
2
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
3
  url: {
3
4
  type: StringConstructor;
@@ -9,11 +10,2885 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
9
10
  };
10
11
  }>, {
11
12
  props: any;
12
- playerRef: import("vue").ShallowRef<any, any>;
13
- playerInstance: any;
13
+ playerRef: import("vue").ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
14
+ playerInstance: import("vue").Ref<{
15
+ config: {
16
+ [x: string]: any;
17
+ id?: string | undefined;
18
+ el?: HTMLElement | undefined;
19
+ mediaEl?: (HTMLMediaElement | ((mediaConfig: {
20
+ [propName: string]: any;
21
+ }) => HTMLMediaElement)) | undefined;
22
+ url?: string | {
23
+ readonly active: boolean;
24
+ readonly id: string;
25
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
26
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
27
+ addTrack: (track: MediaStreamTrack) => void;
28
+ clone: () => MediaStream;
29
+ getAudioTracks: () => MediaStreamTrack[];
30
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
31
+ getTracks: () => MediaStreamTrack[];
32
+ getVideoTracks: () => MediaStreamTrack[];
33
+ removeTrack: (track: MediaStreamTrack) => void;
34
+ addEventListener: {
35
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
36
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
37
+ };
38
+ removeEventListener: {
39
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
40
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
41
+ };
42
+ dispatchEvent: (event: Event) => boolean;
43
+ } | {
44
+ [x: string]: any;
45
+ src: string;
46
+ type?: string | undefined;
47
+ }[] | undefined;
48
+ domEventType?: ("default" | "touch" | "mouse") | undefined;
49
+ nullUrlStart?: boolean | undefined;
50
+ width?: (number | string) | undefined;
51
+ height?: (number | string) | undefined;
52
+ fluid?: boolean | undefined;
53
+ fitVideoSize?: ("fixWidth" | "fixHeight" | "fixed") | undefined;
54
+ videoFillMode?: ("auto" | "fillHeight" | "fillWidth" | "fill" | "cover" | "contain") | undefined;
55
+ volume?: (number | {
56
+ [propName: string]: any;
57
+ }) | undefined;
58
+ autoplay?: boolean | undefined;
59
+ autoplayMuted?: boolean | undefined;
60
+ loop?: boolean | undefined;
61
+ isLive?: boolean | undefined;
62
+ zoom?: number | undefined;
63
+ videoInit?: boolean | undefined;
64
+ poster?: (string | {
65
+ [propName: string]: any;
66
+ }) | undefined;
67
+ isMobileSimulateMode?: ("mobile" | "pc") | undefined;
68
+ defaultPlaybackRate?: number | undefined;
69
+ execBeforePluginsCall?: (() => any) | undefined;
70
+ allowSeekAfterEnded?: boolean | undefined;
71
+ enableContextmenu?: boolean | undefined;
72
+ closeVideoClick?: boolean | undefined;
73
+ closeVideoDblclick?: boolean | undefined;
74
+ closePlayerBlur?: boolean | undefined;
75
+ closeDelayBlur?: boolean | undefined;
76
+ leavePlayerTime?: number | undefined;
77
+ closePlayVideoFocus?: boolean | undefined;
78
+ closePauseVideoFocus?: boolean | undefined;
79
+ closeFocusVideoFocus?: boolean | undefined;
80
+ closeControlsBlur?: boolean | undefined;
81
+ topBarAutoHide?: boolean | undefined;
82
+ videoAttributes?: {
83
+ [propName: string]: any;
84
+ } | undefined;
85
+ startTime?: number | undefined;
86
+ seekedStatus?: ("play" | "pause" | "auto") | undefined;
87
+ miniprogress?: boolean | undefined;
88
+ disableSwipeHandler?: (() => any) | undefined;
89
+ enableSwipeHandler?: (() => any) | undefined;
90
+ preProcessUrl?: ((url: import("xgplayer/es/defaultConfig").IUrl, ext?: {
91
+ [propName: string]: any;
92
+ }) => {
93
+ [propName: string]: any;
94
+ url: import("xgplayer/es/defaultConfig").IUrl;
95
+ }) | undefined;
96
+ ignores?: Array<"cssfullscreen" | "screenshot" | "pip" | "miniscreen" | "keyboard" | "download" | "playbackrate" | "time" | "definition" | "error" | "fullscreen" | "loading" | "mobile" | "pc" | "play" | "poster" | "progress" | "replay" | "start" | "volume" | string> | undefined;
97
+ inactive?: number | undefined;
98
+ lang?: string | undefined;
99
+ controls?: (boolean | {
100
+ [propName: string]: any;
101
+ }) | undefined;
102
+ marginControls?: boolean | undefined;
103
+ fullscreenTarget?: HTMLElement | undefined;
104
+ screenShot?: (boolean | {
105
+ [propName: string]: any;
106
+ }) | undefined;
107
+ rotate?: (boolean | {
108
+ [propName: string]: any;
109
+ }) | undefined;
110
+ pip?: (boolean | {
111
+ [propName: string]: any;
112
+ }) | undefined;
113
+ download?: (boolean | {
114
+ [propName: string]: any;
115
+ }) | undefined;
116
+ mini?: (boolean | {
117
+ [propName: string]: any;
118
+ }) | undefined;
119
+ cssFullscreen?: (boolean | {
120
+ [propName: string]: any;
121
+ }) | undefined;
122
+ keyShortcut?: boolean | undefined;
123
+ presets?: any[] | undefined;
124
+ plugins?: any[] | undefined;
125
+ playbackRate?: (boolean | number[] | {
126
+ [propName: string]: any;
127
+ }) | undefined;
128
+ definition?: {
129
+ [x: string]: any;
130
+ list: {
131
+ [x: string]: any;
132
+ url: string | {
133
+ readonly active: boolean;
134
+ readonly id: string;
135
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
136
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
137
+ addTrack: (track: MediaStreamTrack) => void;
138
+ clone: () => MediaStream;
139
+ getAudioTracks: () => MediaStreamTrack[];
140
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
141
+ getTracks: () => MediaStreamTrack[];
142
+ getVideoTracks: () => MediaStreamTrack[];
143
+ removeTrack: (track: MediaStreamTrack) => void;
144
+ addEventListener: {
145
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
146
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
147
+ };
148
+ removeEventListener: {
149
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
150
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
151
+ };
152
+ dispatchEvent: (event: Event) => boolean;
153
+ } | {
154
+ [x: string]: any;
155
+ src: string;
156
+ type?: string | undefined;
157
+ }[];
158
+ definition: any;
159
+ bitrate?: number | undefined;
160
+ bandwidth?: number | undefined;
161
+ text?: (string | {
162
+ [propName: string]: any;
163
+ }) | undefined;
164
+ iconText?: (string | {
165
+ [propName: string]: any;
166
+ }) | undefined;
167
+ }[];
168
+ defaultDefinition?: import("xgplayer/es/defaultConfig").IDefinition["definition"];
169
+ } | undefined;
170
+ playsinline?: boolean | undefined;
171
+ customDuration?: number | undefined;
172
+ timeOffset?: number | undefined;
173
+ icons?: {
174
+ [propName: string]: string | HTMLElement | (() => HTMLElement | string);
175
+ } | undefined;
176
+ i18n?: Array<any> | undefined;
177
+ tabindex?: number | undefined;
178
+ thumbnail?: {
179
+ urls: Array<string>;
180
+ pic_num: number;
181
+ col: number;
182
+ row: number;
183
+ height?: number | undefined;
184
+ width?: number | undefined;
185
+ } | undefined;
186
+ videoConfig?: {
187
+ [propName: string]: any;
188
+ } | undefined;
189
+ isHideTips?: boolean | undefined;
190
+ minWaitDelay?: number | undefined;
191
+ commonStyle?: {
192
+ progressColor?: string | undefined;
193
+ playedColor?: string | undefined;
194
+ cachedColor?: string | undefined;
195
+ sliderBtnStyle?: {
196
+ [propName: string]: any;
197
+ } | undefined;
198
+ volumeColor?: string | undefined;
199
+ } | undefined;
200
+ remainMediaAfterDestroy?: boolean | undefined;
201
+ };
202
+ userTimer: any;
203
+ handleSource: boolean;
204
+ readonly isAd: boolean;
205
+ readonly isError: boolean;
206
+ readonly isSeeking: boolean;
207
+ readonly isCanplay: boolean;
208
+ rotateDeg: number;
209
+ readonly isActive: boolean;
210
+ readonly fullscreen: boolean;
211
+ readonly cssfullscreen: boolean;
212
+ readonly isRotateFullscreen: boolean;
213
+ readonly _fullscreenEl: HTMLElement | null;
214
+ timeSegments: any[];
215
+ readonly _cssfullscreenEl: HTMLElement | null;
216
+ curDefinition: {
217
+ [x: string]: any;
218
+ url: string | {
219
+ readonly active: boolean;
220
+ readonly id: string;
221
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
222
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
223
+ addTrack: (track: MediaStreamTrack) => void;
224
+ clone: () => MediaStream;
225
+ getAudioTracks: () => MediaStreamTrack[];
226
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
227
+ getTracks: () => MediaStreamTrack[];
228
+ getVideoTracks: () => MediaStreamTrack[];
229
+ removeTrack: (track: MediaStreamTrack) => void;
230
+ addEventListener: {
231
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
232
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
233
+ };
234
+ removeEventListener: {
235
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
236
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
237
+ };
238
+ dispatchEvent: (event: Event) => boolean;
239
+ } | {
240
+ [x: string]: any;
241
+ src: string;
242
+ type?: string | undefined;
243
+ }[];
244
+ definition: any;
245
+ bitrate?: number | undefined;
246
+ bandwidth?: number | undefined;
247
+ text?: (string | {
248
+ [propName: string]: any;
249
+ }) | undefined;
250
+ iconText?: (string | {
251
+ [propName: string]: any;
252
+ }) | undefined;
253
+ } | null;
254
+ readonly _fullScreenOffset: number;
255
+ videoPos: {
256
+ pi: number;
257
+ scale: number;
258
+ rotate: number;
259
+ x: number;
260
+ y: number;
261
+ h: number;
262
+ w: number;
263
+ vy: number;
264
+ vx: number;
265
+ };
266
+ sizeInfo: {
267
+ width: number;
268
+ height: number;
269
+ left: number;
270
+ top: number;
271
+ };
272
+ _offsetInfo: {
273
+ currentTime: number;
274
+ duration: number;
275
+ };
276
+ readonly innerContainer: null | HTMLElement;
277
+ readonly controls: {
278
+ beforeCreate: (args: any) => void;
279
+ readonly left: HTMLElement;
280
+ readonly center: HTMLElement;
281
+ readonly right: HTMLElement;
282
+ readonly innerRoot: HTMLElement;
283
+ onMouseEnter: (e: any) => void;
284
+ onMouseLeave: (e: any) => void;
285
+ focus: () => void;
286
+ focusAwhile: () => void;
287
+ blur: () => void;
288
+ recoverAutoHide: () => void;
289
+ pauseAutoHide: () => void;
290
+ show: (value?: string) => void;
291
+ readonly mode: string;
292
+ registerPlugin: (plugin: any, options: {
293
+ config?: {
294
+ [propName: string]: any;
295
+ };
296
+ position?: string;
297
+ root?: HTMLElement;
298
+ pluginName?: string;
299
+ }, name: string) => any;
300
+ render: () => string;
301
+ readonly icons: {};
302
+ readonly root: HTMLElement;
303
+ readonly parent: HTMLElement;
304
+ readonly langText: {};
305
+ updateLang: (lang: any) => void;
306
+ changeLangTextKey: (dom: any, key?: string) => void;
307
+ plugins: () => any[];
308
+ disable: () => void;
309
+ enable: () => void;
310
+ children: () => {};
311
+ registerIcons: () => {};
312
+ registerLanguageTexts: () => {};
313
+ find: (qs: string) => HTMLElement | null;
314
+ bind: (querySelector: string | Array<string>, eventType: string | Array<string> | Function, callback?: Function, ...args: any[]) => void;
315
+ unbind: (querySelector: string | Array<string>, eventType: string | Array<string> | Function, ...args: any[]) => void;
316
+ setStyle: (name: string | {
317
+ [propName: string]: any;
318
+ }, value: any) => any;
319
+ setAttr: (name: string | {
320
+ [propName: string]: any;
321
+ }, value: any) => void;
322
+ setHtml: (htmlStr: string, callback?: Function) => void;
323
+ bindEL: (event: string, eventHandle: Function, isBubble?: boolean) => void;
324
+ unbindEL: (event: string, eventHandle: Function, isBubble?: boolean) => void;
325
+ hide: () => void;
326
+ appendChild: (pdom: string | HTMLElement, child: HTMLElement, ...args: any[]) => HTMLElement | null;
327
+ __onceEvents: {};
328
+ config: {
329
+ [propName: string]: any;
330
+ };
331
+ readonly player: {
332
+ config: {
333
+ [x: string]: any;
334
+ id?: string | undefined;
335
+ el?: HTMLElement | undefined;
336
+ mediaEl?: (HTMLMediaElement | ((mediaConfig: {
337
+ [propName: string]: any;
338
+ }) => HTMLMediaElement)) | undefined;
339
+ url?: string | {
340
+ readonly active: boolean;
341
+ readonly id: string;
342
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
343
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
344
+ addTrack: (track: MediaStreamTrack) => void;
345
+ clone: () => MediaStream;
346
+ getAudioTracks: () => MediaStreamTrack[];
347
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
348
+ getTracks: () => MediaStreamTrack[];
349
+ getVideoTracks: () => MediaStreamTrack[];
350
+ removeTrack: (track: MediaStreamTrack) => void;
351
+ addEventListener: {
352
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
353
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
354
+ };
355
+ removeEventListener: {
356
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
357
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
358
+ };
359
+ dispatchEvent: (event: Event) => boolean;
360
+ } | {
361
+ [x: string]: any;
362
+ src: string;
363
+ type?: string | undefined;
364
+ }[] | undefined;
365
+ domEventType?: ("default" | "touch" | "mouse") | undefined;
366
+ nullUrlStart?: boolean | undefined;
367
+ width?: (number | string) | undefined;
368
+ height?: (number | string) | undefined;
369
+ fluid?: boolean | undefined;
370
+ fitVideoSize?: ("fixWidth" | "fixHeight" | "fixed") | undefined;
371
+ videoFillMode?: ("auto" | "fillHeight" | "fillWidth" | "fill" | "cover" | "contain") | undefined;
372
+ volume?: (number | {
373
+ [propName: string]: any;
374
+ }) | undefined;
375
+ autoplay?: boolean | undefined;
376
+ autoplayMuted?: boolean | undefined;
377
+ loop?: boolean | undefined;
378
+ isLive?: boolean | undefined;
379
+ zoom?: number | undefined;
380
+ videoInit?: boolean | undefined;
381
+ poster?: (string | {
382
+ [propName: string]: any;
383
+ }) | undefined;
384
+ isMobileSimulateMode?: ("mobile" | "pc") | undefined;
385
+ defaultPlaybackRate?: number | undefined;
386
+ execBeforePluginsCall?: (() => any) | undefined;
387
+ allowSeekAfterEnded?: boolean | undefined;
388
+ enableContextmenu?: boolean | undefined;
389
+ closeVideoClick?: boolean | undefined;
390
+ closeVideoDblclick?: boolean | undefined;
391
+ closePlayerBlur?: boolean | undefined;
392
+ closeDelayBlur?: boolean | undefined;
393
+ leavePlayerTime?: number | undefined;
394
+ closePlayVideoFocus?: boolean | undefined;
395
+ closePauseVideoFocus?: boolean | undefined;
396
+ closeFocusVideoFocus?: boolean | undefined;
397
+ closeControlsBlur?: boolean | undefined;
398
+ topBarAutoHide?: boolean | undefined;
399
+ videoAttributes?: {
400
+ [propName: string]: any;
401
+ } | undefined;
402
+ startTime?: number | undefined;
403
+ seekedStatus?: ("play" | "pause" | "auto") | undefined;
404
+ miniprogress?: boolean | undefined;
405
+ disableSwipeHandler?: (() => any) | undefined;
406
+ enableSwipeHandler?: (() => any) | undefined;
407
+ preProcessUrl?: ((url: import("xgplayer/es/defaultConfig").IUrl, ext?: {
408
+ [propName: string]: any;
409
+ }) => {
410
+ [propName: string]: any;
411
+ url: import("xgplayer/es/defaultConfig").IUrl;
412
+ }) | undefined;
413
+ ignores?: Array<"cssfullscreen" | "screenshot" | "pip" | "miniscreen" | "keyboard" | "download" | "playbackrate" | "time" | "definition" | "error" | "fullscreen" | "loading" | "mobile" | "pc" | "play" | "poster" | "progress" | "replay" | "start" | "volume" | string> | undefined;
414
+ inactive?: number | undefined;
415
+ lang?: string | undefined;
416
+ controls?: (boolean | {
417
+ [propName: string]: any;
418
+ }) | undefined;
419
+ marginControls?: boolean | undefined;
420
+ fullscreenTarget?: HTMLElement | undefined;
421
+ screenShot?: (boolean | {
422
+ [propName: string]: any;
423
+ }) | undefined;
424
+ rotate?: (boolean | {
425
+ [propName: string]: any;
426
+ }) | undefined;
427
+ pip?: (boolean | {
428
+ [propName: string]: any;
429
+ }) | undefined;
430
+ download?: (boolean | {
431
+ [propName: string]: any;
432
+ }) | undefined;
433
+ mini?: (boolean | {
434
+ [propName: string]: any;
435
+ }) | undefined;
436
+ cssFullscreen?: (boolean | {
437
+ [propName: string]: any;
438
+ }) | undefined;
439
+ keyShortcut?: boolean | undefined;
440
+ presets?: any[] | undefined;
441
+ plugins?: any[] | undefined;
442
+ playbackRate?: (boolean | number[] | {
443
+ [propName: string]: any;
444
+ }) | undefined;
445
+ definition?: {
446
+ [x: string]: any;
447
+ list: {
448
+ [x: string]: any;
449
+ url: string | {
450
+ readonly active: boolean;
451
+ readonly id: string;
452
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
453
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
454
+ addTrack: (track: MediaStreamTrack) => void;
455
+ clone: () => MediaStream;
456
+ getAudioTracks: () => MediaStreamTrack[];
457
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
458
+ getTracks: () => MediaStreamTrack[];
459
+ getVideoTracks: () => MediaStreamTrack[];
460
+ removeTrack: (track: MediaStreamTrack) => void;
461
+ addEventListener: {
462
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
463
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
464
+ };
465
+ removeEventListener: {
466
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
467
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
468
+ };
469
+ dispatchEvent: (event: Event) => boolean;
470
+ } | {
471
+ [x: string]: any;
472
+ src: string;
473
+ type?: string | undefined;
474
+ }[];
475
+ definition: any;
476
+ bitrate?: number | undefined;
477
+ bandwidth?: number | undefined;
478
+ text?: (string | {
479
+ [propName: string]: any;
480
+ }) | undefined;
481
+ iconText?: (string | {
482
+ [propName: string]: any;
483
+ }) | undefined;
484
+ }[];
485
+ defaultDefinition?: import("xgplayer/es/defaultConfig").IDefinition["definition"];
486
+ } | undefined;
487
+ playsinline?: boolean | undefined;
488
+ customDuration?: number | undefined;
489
+ timeOffset?: number | undefined;
490
+ icons?: {
491
+ [propName: string]: string | HTMLElement | (() => HTMLElement | string);
492
+ } | undefined;
493
+ i18n?: Array<any> | undefined;
494
+ tabindex?: number | undefined;
495
+ thumbnail?: {
496
+ urls: Array<string>;
497
+ pic_num: number;
498
+ col: number;
499
+ row: number;
500
+ height?: number | undefined;
501
+ width?: number | undefined;
502
+ } | undefined;
503
+ videoConfig?: {
504
+ [propName: string]: any;
505
+ } | undefined;
506
+ isHideTips?: boolean | undefined;
507
+ minWaitDelay?: number | undefined;
508
+ commonStyle?: {
509
+ progressColor?: string | undefined;
510
+ playedColor?: string | undefined;
511
+ cachedColor?: string | undefined;
512
+ sliderBtnStyle?: {
513
+ [propName: string]: any;
514
+ } | undefined;
515
+ volumeColor?: string | undefined;
516
+ } | undefined;
517
+ remainMediaAfterDestroy?: boolean | undefined;
518
+ };
519
+ userTimer: any;
520
+ handleSource: boolean;
521
+ readonly isAd: boolean;
522
+ readonly isError: boolean;
523
+ readonly isSeeking: boolean;
524
+ readonly isCanplay: boolean;
525
+ rotateDeg: number;
526
+ readonly isActive: boolean;
527
+ readonly fullscreen: boolean;
528
+ readonly cssfullscreen: boolean;
529
+ readonly isRotateFullscreen: boolean;
530
+ readonly _fullscreenEl: HTMLElement | null;
531
+ timeSegments: any[];
532
+ readonly _cssfullscreenEl: HTMLElement | null;
533
+ curDefinition: {
534
+ [x: string]: any;
535
+ url: string | {
536
+ readonly active: boolean;
537
+ readonly id: string;
538
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
539
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
540
+ addTrack: (track: MediaStreamTrack) => void;
541
+ clone: () => MediaStream;
542
+ getAudioTracks: () => MediaStreamTrack[];
543
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
544
+ getTracks: () => MediaStreamTrack[];
545
+ getVideoTracks: () => MediaStreamTrack[];
546
+ removeTrack: (track: MediaStreamTrack) => void;
547
+ addEventListener: {
548
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
549
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
550
+ };
551
+ removeEventListener: {
552
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
553
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
554
+ };
555
+ dispatchEvent: (event: Event) => boolean;
556
+ } | {
557
+ [x: string]: any;
558
+ src: string;
559
+ type?: string | undefined;
560
+ }[];
561
+ definition: any;
562
+ bitrate?: number | undefined;
563
+ bandwidth?: number | undefined;
564
+ text?: (string | {
565
+ [propName: string]: any;
566
+ }) | undefined;
567
+ iconText?: (string | {
568
+ [propName: string]: any;
569
+ }) | undefined;
570
+ } | null;
571
+ readonly _fullScreenOffset: number;
572
+ videoPos: {
573
+ pi: number;
574
+ scale: number;
575
+ rotate: number;
576
+ x: number;
577
+ y: number;
578
+ h: number;
579
+ w: number;
580
+ vy: number;
581
+ vx: number;
582
+ };
583
+ sizeInfo: {
584
+ width: number;
585
+ height: number;
586
+ left: number;
587
+ top: number;
588
+ };
589
+ _offsetInfo: {
590
+ currentTime: number;
591
+ duration: number;
592
+ };
593
+ readonly innerContainer: null | HTMLElement;
594
+ readonly controls: any | null;
595
+ readonly topBar: null | HTMLElement;
596
+ readonly root: null | HTMLElement;
597
+ __i18n: {
598
+ lang: {
599
+ [propName: string]: import("xgplayer/es/lang/i18n").IXGI18nText;
600
+ };
601
+ langKeys: Array<string>;
602
+ textKeys: {
603
+ [propName: string]: string;
604
+ };
605
+ };
606
+ readonly database: any;
607
+ readonly isUserActive: boolean;
608
+ readonly innerStates: {
609
+ isActiveLocked: boolean;
610
+ };
611
+ instManager: {
612
+ add: (player: any) => void;
613
+ remove: (player: any) => void;
614
+ forEach: (fn: import("xgplayer/es/instManager").IterateFunction) => void;
615
+ find: (fn: import("xgplayer/es/instManager").IterateFunction) => import("xgplayer/es/instManager").Player;
616
+ findAll: (fn: import("xgplayer/es/instManager").IterateFunction) => import("xgplayer/es/instManager").Player[];
617
+ setActive: (playerId: number | string, isActive?: boolean) => number | null;
618
+ getActiveId: () => number | null;
619
+ setNext: (playerId: number | string, isNext?: boolean) => number | null;
620
+ eventNames: () => (string | symbol)[];
621
+ listeners: <T extends string | symbol>(event: T) => ((...args: any[]) => void)[];
622
+ listenerCount: (event: string | symbol) => number;
623
+ emit: <T extends string | symbol>(event: T, ...args: any[]) => boolean;
624
+ on: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => import("xgplayer").InstManager;
625
+ addListener: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => import("xgplayer").InstManager;
626
+ once: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => import("xgplayer").InstManager;
627
+ removeListener: <T extends string | symbol>(event: T, fn?: ((...args: any[]) => void) | undefined, context?: any, once?: boolean) => import("xgplayer").InstManager;
628
+ off: <T extends string | symbol>(event: T, fn?: ((...args: any[]) => void) | undefined, context?: any, once?: boolean) => import("xgplayer").InstManager;
629
+ removeAllListeners: (event?: string | symbol | undefined) => import("xgplayer").InstManager;
630
+ };
631
+ readonly leftBar: HTMLElement | null;
632
+ readonly rightBar: HTMLElement | null;
633
+ playFunc: () => void;
634
+ _clearUserTimer: () => void;
635
+ _startInit: (url?: any) => void;
636
+ hasStart: boolean;
637
+ registerPlugin: (plugin: Function | {
638
+ plugin: Function;
639
+ options: object;
640
+ }, config?: {
641
+ [propName: string]: any;
642
+ }) => any;
643
+ deregister: (plugin: any) => void;
644
+ unRegisterPlugin: (plugin: any, removedFromConfig?: boolean) => void;
645
+ removePluginFromConfig: (plugin: any) => void;
646
+ readonly plugins: {
647
+ [propName: string]: any;
648
+ };
649
+ getPlugin: (pluginName: string) => null | any;
650
+ addClass: (className: string) => void;
651
+ removeClass: (className: string) => void;
652
+ hasClass: (className: string) => boolean;
653
+ setAttribute: (key: string, value: any) => void;
654
+ removeAttribute: (key: string, value: any) => void;
655
+ start: (url?: any) => Promise<void> | void;
656
+ switchURL: (url: string | object, options?: import("xgplayer/es/player").SwitchUrlOptions) => Promise<any> | null;
657
+ videoPlay: () => void;
658
+ mediaPlay: () => Promise<void>;
659
+ mediaPause: () => void;
660
+ videoPause: () => void;
661
+ play: () => any;
662
+ seek: (time: number, status?: "play" | "pause" | "auto") => void;
663
+ currentTime: any;
664
+ getInitDefinition: () => void;
665
+ changeDefinition: (to: import("xgplayer/es/defaultConfig").IDefinition, from?: import("xgplayer/es/defaultConfig").IDefinition) => void;
666
+ reload: () => void;
667
+ resetState: () => void;
668
+ reset: (unregisterPlugins?: Array<string>, isResetConfig?: boolean) => void;
669
+ replay: () => void;
670
+ retry: () => void;
671
+ changeFullStyle: (root: HTMLElement, el?: HTMLElement, rootClass?: string, pClassName?: string) => void;
672
+ recoverFullStyle: (root: HTMLElement, el?: HTMLElement, rootClass?: string, pClassName?: string) => void;
673
+ getFullscreen: (el?: HTMLElement) => Promise<void>;
674
+ exitFullscreen: (el?: HTMLElement) => Promise<void>;
675
+ getCssFullscreen: (el?: HTMLElement) => void;
676
+ exitCssFullscreen: () => void;
677
+ getRotateFullscreen: (el?: HTMLElement) => void;
678
+ _rootStyle: string | boolean;
679
+ exitRotateFullscreen: (el?: HTMLElement) => void;
680
+ setRotateDeg: (deg: any) => void;
681
+ focus: (data?: {
682
+ autoHide?: boolean;
683
+ delay?: number;
684
+ isLock?: boolean;
685
+ }) => void;
686
+ blur: (data?: {
687
+ ignorePaused?: boolean;
688
+ }) => void;
689
+ canPlayFunc: () => void;
690
+ onFullscreenChange: (event: any, isFullScreen: any) => void;
691
+ _onWebkitbeginfullscreen: (e: any) => void;
692
+ _onWebkitendfullscreen: (e: any) => void;
693
+ onEmptied: () => void;
694
+ onLoadeddata: () => void;
695
+ onLoadstart: () => void;
696
+ onVolumechange: () => void;
697
+ onRatechange: () => void;
698
+ emitUserAction: (event: Event, action: string, params: any) => void;
699
+ updateAcc: (endType: any) => void;
700
+ checkBuffer: (time: number, options?: {
701
+ startDiff: number;
702
+ endDiff: number;
703
+ }) => boolean;
704
+ resizePosition: () => void;
705
+ position: (pos?: {
706
+ h: number;
707
+ y?: number;
708
+ x?: number;
709
+ w?: number;
710
+ }) => void;
711
+ setConfig: (config: import("xgplayer/es/player").IPlayerOptions) => void;
712
+ playNext: (config: import("xgplayer/es/player").IPlayerOptions) => void;
713
+ resize: () => void;
714
+ updateObjectPosition: (left?: number, top?: number) => void;
715
+ preProcessUrl: (url: import("xgplayer/es/player").IUrl, ext?: {
716
+ [propName: string]: any;
717
+ }) => import("xgplayer/es/defaultConfig").IUrl;
718
+ _seekToStartTime: () => void;
719
+ readonly state: number;
720
+ readonly isFullscreen: boolean;
721
+ readonly isCssfullScreen: boolean;
722
+ isPlaying: boolean;
723
+ definitionList: {
724
+ [x: string]: any;
725
+ url: string | {
726
+ readonly active: boolean;
727
+ readonly id: string;
728
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
729
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
730
+ addTrack: (track: MediaStreamTrack) => void;
731
+ clone: () => MediaStream;
732
+ getAudioTracks: () => MediaStreamTrack[];
733
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
734
+ getTracks: () => MediaStreamTrack[];
735
+ getVideoTracks: () => MediaStreamTrack[];
736
+ removeTrack: (track: MediaStreamTrack) => void;
737
+ addEventListener: {
738
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
739
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
740
+ };
741
+ removeEventListener: {
742
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
743
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
744
+ };
745
+ dispatchEvent: (event: Event) => boolean;
746
+ } | {
747
+ [x: string]: any;
748
+ src: string;
749
+ type?: string | undefined;
750
+ }[];
751
+ definition: any;
752
+ bitrate?: number | undefined;
753
+ bandwidth?: number | undefined;
754
+ text?: (string | {
755
+ [propName: string]: any;
756
+ }) | undefined;
757
+ iconText?: (string | {
758
+ [propName: string]: any;
759
+ }) | undefined;
760
+ }[];
761
+ readonly videoFrameInfo: {
762
+ total: number;
763
+ dropped: number;
764
+ corrupted: number;
765
+ droppedRate: number;
766
+ droppedDuration: number;
767
+ };
768
+ lang: string;
769
+ readonly i18n: {
770
+ LANG: string;
771
+ TEXT: {
772
+ [propName: string]: any;
773
+ };
774
+ };
775
+ readonly i18nKeys: {
776
+ [propName: string]: string;
777
+ };
778
+ readonly version: string;
779
+ readonly playerId: string | number;
780
+ url: any;
781
+ poster: any;
782
+ readonly error: any;
783
+ readonly fullscreenChanging: boolean;
784
+ readonly cumulateTime: number;
785
+ zoom: number;
786
+ videoRotateDeg: number;
787
+ avgSpeed: number;
788
+ realTimeSpeed: number;
789
+ offsetCurrentTime: number;
790
+ offsetDuration: number;
791
+ hook: (hookName: string, handler: Function, preset?: {
792
+ pre: Function | null;
793
+ next: Function | null;
794
+ }, ...args: any[]) => any;
795
+ useHooks: (hookName: string, handler: (player: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
796
+ removeHooks: (hookName: string, handler: (player: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => any;
797
+ usePluginHooks: (pluginName: string, hookName: string, handler: (plugin: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
798
+ removePluginHooks: (pluginName: string, hookName: string, handler: (plugin: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
799
+ setUserActive: (isActive: boolean, isMuted?: boolean) => void;
800
+ vtype: string;
801
+ mediaConfig: {
802
+ [propName: string]: any;
803
+ };
804
+ media: HTMLElement | HTMLVideoElement | HTMLAudioElement | {
805
+ duration: number;
806
+ currentTime: number;
807
+ muted: boolean;
808
+ defaultMuted: boolean;
809
+ volume: number;
810
+ playbackRate: number;
811
+ defaultPlaybackRate: number;
812
+ autoplay: boolean;
813
+ readonly paused: boolean;
814
+ readonly ended: boolean;
815
+ readonly networkState: number;
816
+ readonly readyState: number;
817
+ readonly seeking: boolean;
818
+ src: any;
819
+ play: Function;
820
+ pause: Function;
821
+ } | null;
822
+ volume: number;
823
+ readonly mediaEventMiddleware: {};
824
+ setEventsMiddleware: (middlewares: {
825
+ [propName: string]: (e: {
826
+ player: any;
827
+ eventName: string;
828
+ }, callback: () => void) => any;
829
+ }) => void;
830
+ removeEventsMiddleware: (middlewares: {
831
+ [propName: string]: (e: {
832
+ player: any;
833
+ eventName: string;
834
+ }, callback: () => void) => any;
835
+ }) => void;
836
+ attachVideoEvents: (media?: any) => void;
837
+ detachVideoEvents: (media?: any) => void;
838
+ _videoSourceIndex: number;
839
+ _vLoadeddata: (e: any) => void;
840
+ _sourceError: (e: any) => void;
841
+ errorHandler: (name: any, error?: any) => void;
842
+ destroy: () => void;
843
+ video: HTMLElement | HTMLVideoElement | HTMLAudioElement | {
844
+ duration: number;
845
+ currentTime: number;
846
+ muted: boolean;
847
+ defaultMuted: boolean;
848
+ volume: number;
849
+ playbackRate: number;
850
+ defaultPlaybackRate: number;
851
+ autoplay: boolean;
852
+ readonly paused: boolean;
853
+ readonly ended: boolean;
854
+ readonly networkState: number;
855
+ readonly readyState: number;
856
+ readonly seeking: boolean;
857
+ src: any;
858
+ play: Function;
859
+ pause: Function;
860
+ };
861
+ pause: () => void;
862
+ load: () => void;
863
+ canPlayType: (type: string) => boolean;
864
+ getBufferedRange: (buffered?: any) => Array<number>;
865
+ autoplay: any;
866
+ readonly buffered: {
867
+ readonly length: number;
868
+ end: (index: number) => number;
869
+ start: (index: number) => number;
870
+ };
871
+ readonly buffered2: {
872
+ start: number;
873
+ end: number;
874
+ }[];
875
+ readonly bufferedPoint: {
876
+ start: number;
877
+ end: number;
878
+ };
879
+ crossOrigin: string;
880
+ currentSrc: string;
881
+ defaultMuted: boolean;
882
+ readonly duration: number;
883
+ readonly ended: boolean;
884
+ readonly errorNote: string;
885
+ loop: boolean;
886
+ muted: boolean;
887
+ readonly networkState: 0 | 1 | 2 | 3;
888
+ readonly paused: boolean;
889
+ playbackRate: number;
890
+ readonly played: {
891
+ readonly length: number;
892
+ end: (index: number) => number;
893
+ start: (index: number) => number;
894
+ };
895
+ preload: boolean;
896
+ readonly readyState: 0 | 1 | 2 | 3 | 4;
897
+ readonly seekable: boolean;
898
+ readonly seeking: boolean;
899
+ src: any;
900
+ readonly aspectRatio: number;
901
+ addInnerOP: (event: any) => void;
902
+ removeInnerOP: (event: any) => void;
903
+ emit: (event: string, data?: any, ...args: any[]) => void;
904
+ on: (event: string, callback: (...args: any[]) => any, ...args: any[]) => void;
905
+ once: (event: string, callback: (...args: any[]) => any, ...args: any[]) => void;
906
+ off: (event: string, callback: (...args: any[]) => any, ...args: any[]) => void;
907
+ offAll: () => void;
908
+ };
909
+ readonly playerConfig: {
910
+ [x: string]: any;
911
+ id?: string | undefined;
912
+ el?: HTMLElement | undefined;
913
+ mediaEl?: (HTMLMediaElement | ((mediaConfig: {
914
+ [propName: string]: any;
915
+ }) => HTMLMediaElement)) | undefined;
916
+ url?: string | {
917
+ readonly active: boolean;
918
+ readonly id: string;
919
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
920
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
921
+ addTrack: (track: MediaStreamTrack) => void;
922
+ clone: () => MediaStream;
923
+ getAudioTracks: () => MediaStreamTrack[];
924
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
925
+ getTracks: () => MediaStreamTrack[];
926
+ getVideoTracks: () => MediaStreamTrack[];
927
+ removeTrack: (track: MediaStreamTrack) => void;
928
+ addEventListener: {
929
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
930
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
931
+ };
932
+ removeEventListener: {
933
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
934
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
935
+ };
936
+ dispatchEvent: (event: Event) => boolean;
937
+ } | {
938
+ [x: string]: any;
939
+ src: string;
940
+ type?: string | undefined;
941
+ }[] | undefined;
942
+ domEventType?: ("default" | "touch" | "mouse") | undefined;
943
+ nullUrlStart?: boolean | undefined;
944
+ width?: (number | string) | undefined;
945
+ height?: (number | string) | undefined;
946
+ fluid?: boolean | undefined;
947
+ fitVideoSize?: ("fixWidth" | "fixHeight" | "fixed") | undefined;
948
+ videoFillMode?: ("auto" | "fillHeight" | "fillWidth" | "fill" | "cover" | "contain") | undefined;
949
+ volume?: (number | {
950
+ [propName: string]: any;
951
+ }) | undefined;
952
+ autoplay?: boolean | undefined;
953
+ autoplayMuted?: boolean | undefined;
954
+ loop?: boolean | undefined;
955
+ isLive?: boolean | undefined;
956
+ zoom?: number | undefined;
957
+ videoInit?: boolean | undefined;
958
+ poster?: (string | {
959
+ [propName: string]: any;
960
+ }) | undefined;
961
+ isMobileSimulateMode?: ("mobile" | "pc") | undefined;
962
+ defaultPlaybackRate?: number | undefined;
963
+ execBeforePluginsCall?: (() => any) | undefined;
964
+ allowSeekAfterEnded?: boolean | undefined;
965
+ enableContextmenu?: boolean | undefined;
966
+ closeVideoClick?: boolean | undefined;
967
+ closeVideoDblclick?: boolean | undefined;
968
+ closePlayerBlur?: boolean | undefined;
969
+ closeDelayBlur?: boolean | undefined;
970
+ leavePlayerTime?: number | undefined;
971
+ closePlayVideoFocus?: boolean | undefined;
972
+ closePauseVideoFocus?: boolean | undefined;
973
+ closeFocusVideoFocus?: boolean | undefined;
974
+ closeControlsBlur?: boolean | undefined;
975
+ topBarAutoHide?: boolean | undefined;
976
+ videoAttributes?: {
977
+ [propName: string]: any;
978
+ } | undefined;
979
+ startTime?: number | undefined;
980
+ seekedStatus?: ("play" | "pause" | "auto") | undefined;
981
+ miniprogress?: boolean | undefined;
982
+ disableSwipeHandler?: (() => any) | undefined;
983
+ enableSwipeHandler?: (() => any) | undefined;
984
+ preProcessUrl?: ((url: import("xgplayer/es/defaultConfig").IUrl, ext?: {
985
+ [propName: string]: any;
986
+ }) => {
987
+ [propName: string]: any;
988
+ url: import("xgplayer/es/defaultConfig").IUrl;
989
+ }) | undefined;
990
+ ignores?: Array<"cssfullscreen" | "screenshot" | "pip" | "miniscreen" | "keyboard" | "download" | "playbackrate" | "time" | "definition" | "error" | "fullscreen" | "loading" | "mobile" | "pc" | "play" | "poster" | "progress" | "replay" | "start" | "volume" | string> | undefined;
991
+ inactive?: number | undefined;
992
+ lang?: string | undefined;
993
+ controls?: (boolean | {
994
+ [propName: string]: any;
995
+ }) | undefined;
996
+ marginControls?: boolean | undefined;
997
+ fullscreenTarget?: HTMLElement | undefined;
998
+ screenShot?: (boolean | {
999
+ [propName: string]: any;
1000
+ }) | undefined;
1001
+ rotate?: (boolean | {
1002
+ [propName: string]: any;
1003
+ }) | undefined;
1004
+ pip?: (boolean | {
1005
+ [propName: string]: any;
1006
+ }) | undefined;
1007
+ download?: (boolean | {
1008
+ [propName: string]: any;
1009
+ }) | undefined;
1010
+ mini?: (boolean | {
1011
+ [propName: string]: any;
1012
+ }) | undefined;
1013
+ cssFullscreen?: (boolean | {
1014
+ [propName: string]: any;
1015
+ }) | undefined;
1016
+ keyShortcut?: boolean | undefined;
1017
+ presets?: any[] | undefined;
1018
+ plugins?: any[] | undefined;
1019
+ playbackRate?: (boolean | number[] | {
1020
+ [propName: string]: any;
1021
+ }) | undefined;
1022
+ definition?: {
1023
+ [x: string]: any;
1024
+ list: {
1025
+ [x: string]: any;
1026
+ url: string | {
1027
+ readonly active: boolean;
1028
+ readonly id: string;
1029
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1030
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1031
+ addTrack: (track: MediaStreamTrack) => void;
1032
+ clone: () => MediaStream;
1033
+ getAudioTracks: () => MediaStreamTrack[];
1034
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
1035
+ getTracks: () => MediaStreamTrack[];
1036
+ getVideoTracks: () => MediaStreamTrack[];
1037
+ removeTrack: (track: MediaStreamTrack) => void;
1038
+ addEventListener: {
1039
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1040
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1041
+ };
1042
+ removeEventListener: {
1043
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1044
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1045
+ };
1046
+ dispatchEvent: (event: Event) => boolean;
1047
+ } | {
1048
+ [x: string]: any;
1049
+ src: string;
1050
+ type?: string | undefined;
1051
+ }[];
1052
+ definition: any;
1053
+ bitrate?: number | undefined;
1054
+ bandwidth?: number | undefined;
1055
+ text?: (string | {
1056
+ [propName: string]: any;
1057
+ }) | undefined;
1058
+ iconText?: (string | {
1059
+ [propName: string]: any;
1060
+ }) | undefined;
1061
+ }[];
1062
+ defaultDefinition?: import("xgplayer/es/defaultConfig").IDefinition["definition"];
1063
+ } | undefined;
1064
+ playsinline?: boolean | undefined;
1065
+ customDuration?: number | undefined;
1066
+ timeOffset?: number | undefined;
1067
+ icons?: {
1068
+ [propName: string]: string | HTMLElement | (() => HTMLElement | string);
1069
+ } | undefined;
1070
+ i18n?: Array<any> | undefined;
1071
+ tabindex?: number | undefined;
1072
+ thumbnail?: {
1073
+ urls: Array<string>;
1074
+ pic_num: number;
1075
+ col: number;
1076
+ row: number;
1077
+ height?: number | undefined;
1078
+ width?: number | undefined;
1079
+ } | undefined;
1080
+ videoConfig?: {
1081
+ [propName: string]: any;
1082
+ } | undefined;
1083
+ isHideTips?: boolean | undefined;
1084
+ minWaitDelay?: number | undefined;
1085
+ commonStyle?: {
1086
+ progressColor?: string | undefined;
1087
+ playedColor?: string | undefined;
1088
+ cachedColor?: string | undefined;
1089
+ sliderBtnStyle?: {
1090
+ [propName: string]: any;
1091
+ } | undefined;
1092
+ volumeColor?: string | undefined;
1093
+ } | undefined;
1094
+ remainMediaAfterDestroy?: boolean | undefined;
1095
+ };
1096
+ readonly pluginName: string;
1097
+ afterCreate: () => void;
1098
+ beforePlayerInit: () => void;
1099
+ onPluginsReady: () => void;
1100
+ afterPlayerInit: () => void;
1101
+ destroy: () => void;
1102
+ logger: any;
1103
+ readonly lang: string;
1104
+ readonly i18n: {
1105
+ LANG: string;
1106
+ TEXT: {
1107
+ [propName: string]: any;
1108
+ };
1109
+ };
1110
+ readonly i18nKeys: {
1111
+ [propName: string]: string;
1112
+ };
1113
+ readonly domEventType: "touch" | "mouse";
1114
+ on: (event: string | Array<string>, callback: Function) => void;
1115
+ once: (event: string, callback: Function) => void;
1116
+ off: (event: string, callback: Function) => void;
1117
+ offAll: () => void;
1118
+ emit: (event: string, ...res: any[]) => void;
1119
+ emitUserAction: (event: any, action: any, params?: {}) => void;
1120
+ hook: (hookName: string, handler: Function, preset?: {
1121
+ pre: Function | null;
1122
+ next: Function | null;
1123
+ }, ...args: any[]) => any;
1124
+ useHooks: (hookName: string, handler: (plugin: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
1125
+ removeHooks: (hookName: string, handler: (plugin: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
1126
+ getPlugin: (name: string) => any | null;
1127
+ __destroy: () => void;
1128
+ } | null;
1129
+ readonly topBar: null | HTMLElement;
1130
+ readonly root: null | HTMLElement;
1131
+ __i18n: {
1132
+ lang: {
1133
+ [propName: string]: import("xgplayer/es/lang/i18n").IXGI18nText;
1134
+ };
1135
+ langKeys: Array<string>;
1136
+ textKeys: {
1137
+ [propName: string]: string;
1138
+ };
1139
+ };
1140
+ readonly database: any;
1141
+ readonly isUserActive: boolean;
1142
+ readonly innerStates: {
1143
+ isActiveLocked: boolean;
1144
+ };
1145
+ instManager: {
1146
+ add: (player: any) => void;
1147
+ remove: (player: any) => void;
1148
+ forEach: (fn: import("xgplayer/es/instManager").IterateFunction) => void;
1149
+ find: (fn: import("xgplayer/es/instManager").IterateFunction) => import("xgplayer/es/instManager").Player;
1150
+ findAll: (fn: import("xgplayer/es/instManager").IterateFunction) => import("xgplayer/es/instManager").Player[];
1151
+ setActive: (playerId: number | string, isActive?: boolean) => number | null;
1152
+ getActiveId: () => number | null;
1153
+ setNext: (playerId: number | string, isNext?: boolean) => number | null;
1154
+ eventNames: () => (string | symbol)[];
1155
+ listeners: <T extends string | symbol>(event: T) => ((...args: any[]) => void)[];
1156
+ listenerCount: (event: string | symbol) => number;
1157
+ emit: <T extends string | symbol>(event: T, ...args: any[]) => boolean;
1158
+ on: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => import("xgplayer").InstManager;
1159
+ addListener: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => import("xgplayer").InstManager;
1160
+ once: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => import("xgplayer").InstManager;
1161
+ removeListener: <T extends string | symbol>(event: T, fn?: ((...args: any[]) => void) | undefined, context?: any, once?: boolean) => import("xgplayer").InstManager;
1162
+ off: <T extends string | symbol>(event: T, fn?: ((...args: any[]) => void) | undefined, context?: any, once?: boolean) => import("xgplayer").InstManager;
1163
+ removeAllListeners: (event?: string | symbol | undefined) => import("xgplayer").InstManager;
1164
+ };
1165
+ readonly leftBar: HTMLElement | null;
1166
+ readonly rightBar: HTMLElement | null;
1167
+ playFunc: () => void;
1168
+ _clearUserTimer: () => void;
1169
+ _startInit: (url?: any) => void;
1170
+ hasStart: boolean;
1171
+ registerPlugin: (plugin: Function | {
1172
+ plugin: Function;
1173
+ options: object;
1174
+ }, config?: {
1175
+ [propName: string]: any;
1176
+ }) => any;
1177
+ deregister: (plugin: any) => void;
1178
+ unRegisterPlugin: (plugin: any, removedFromConfig?: boolean) => void;
1179
+ removePluginFromConfig: (plugin: any) => void;
1180
+ readonly plugins: {
1181
+ [propName: string]: any;
1182
+ };
1183
+ getPlugin: (pluginName: string) => null | any;
1184
+ addClass: (className: string) => void;
1185
+ removeClass: (className: string) => void;
1186
+ hasClass: (className: string) => boolean;
1187
+ setAttribute: (key: string, value: any) => void;
1188
+ removeAttribute: (key: string, value: any) => void;
1189
+ start: (url?: any) => Promise<void> | void;
1190
+ switchURL: (url: string | object, options?: import("xgplayer/es/player").SwitchUrlOptions) => Promise<any> | null;
1191
+ videoPlay: () => void;
1192
+ mediaPlay: () => Promise<void>;
1193
+ mediaPause: () => void;
1194
+ videoPause: () => void;
1195
+ play: () => any;
1196
+ seek: (time: number, status?: "play" | "pause" | "auto") => void;
1197
+ currentTime: any;
1198
+ getInitDefinition: () => void;
1199
+ changeDefinition: (to: import("xgplayer/es/defaultConfig").IDefinition, from?: import("xgplayer/es/defaultConfig").IDefinition) => void;
1200
+ reload: () => void;
1201
+ resetState: () => void;
1202
+ reset: (unregisterPlugins?: Array<string>, isResetConfig?: boolean) => void;
1203
+ replay: () => void;
1204
+ retry: () => void;
1205
+ changeFullStyle: (root: HTMLElement, el?: HTMLElement, rootClass?: string, pClassName?: string) => void;
1206
+ recoverFullStyle: (root: HTMLElement, el?: HTMLElement, rootClass?: string, pClassName?: string) => void;
1207
+ getFullscreen: (el?: HTMLElement) => Promise<void>;
1208
+ exitFullscreen: (el?: HTMLElement) => Promise<void>;
1209
+ getCssFullscreen: (el?: HTMLElement) => void;
1210
+ exitCssFullscreen: () => void;
1211
+ getRotateFullscreen: (el?: HTMLElement) => void;
1212
+ _rootStyle: string | boolean;
1213
+ exitRotateFullscreen: (el?: HTMLElement) => void;
1214
+ setRotateDeg: (deg: any) => void;
1215
+ focus: (data?: {
1216
+ autoHide?: boolean;
1217
+ delay?: number;
1218
+ isLock?: boolean;
1219
+ }) => void;
1220
+ blur: (data?: {
1221
+ ignorePaused?: boolean;
1222
+ }) => void;
1223
+ canPlayFunc: () => void;
1224
+ onFullscreenChange: (event: any, isFullScreen: any) => void;
1225
+ _onWebkitbeginfullscreen: (e: any) => void;
1226
+ _onWebkitendfullscreen: (e: any) => void;
1227
+ onEmptied: () => void;
1228
+ onLoadeddata: () => void;
1229
+ onLoadstart: () => void;
1230
+ onVolumechange: () => void;
1231
+ onRatechange: () => void;
1232
+ emitUserAction: (event: Event, action: string, params: any) => void;
1233
+ updateAcc: (endType: any) => void;
1234
+ checkBuffer: (time: number, options?: {
1235
+ startDiff: number;
1236
+ endDiff: number;
1237
+ }) => boolean;
1238
+ resizePosition: () => void;
1239
+ position: (pos?: {
1240
+ h: number;
1241
+ y?: number;
1242
+ x?: number;
1243
+ w?: number;
1244
+ }) => void;
1245
+ setConfig: (config: import("xgplayer/es/player").IPlayerOptions) => void;
1246
+ playNext: (config: import("xgplayer/es/player").IPlayerOptions) => void;
1247
+ resize: () => void;
1248
+ updateObjectPosition: (left?: number, top?: number) => void;
1249
+ preProcessUrl: (url: import("xgplayer/es/player").IUrl, ext?: {
1250
+ [propName: string]: any;
1251
+ }) => import("xgplayer/es/defaultConfig").IUrl;
1252
+ _seekToStartTime: () => void;
1253
+ readonly state: number;
1254
+ readonly isFullscreen: boolean;
1255
+ readonly isCssfullScreen: boolean;
1256
+ isPlaying: boolean;
1257
+ definitionList: {
1258
+ [x: string]: any;
1259
+ url: string | {
1260
+ readonly active: boolean;
1261
+ readonly id: string;
1262
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1263
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1264
+ addTrack: (track: MediaStreamTrack) => void;
1265
+ clone: () => MediaStream;
1266
+ getAudioTracks: () => MediaStreamTrack[];
1267
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
1268
+ getTracks: () => MediaStreamTrack[];
1269
+ getVideoTracks: () => MediaStreamTrack[];
1270
+ removeTrack: (track: MediaStreamTrack) => void;
1271
+ addEventListener: {
1272
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1273
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1274
+ };
1275
+ removeEventListener: {
1276
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1277
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1278
+ };
1279
+ dispatchEvent: (event: Event) => boolean;
1280
+ } | {
1281
+ [x: string]: any;
1282
+ src: string;
1283
+ type?: string | undefined;
1284
+ }[];
1285
+ definition: any;
1286
+ bitrate?: number | undefined;
1287
+ bandwidth?: number | undefined;
1288
+ text?: (string | {
1289
+ [propName: string]: any;
1290
+ }) | undefined;
1291
+ iconText?: (string | {
1292
+ [propName: string]: any;
1293
+ }) | undefined;
1294
+ }[];
1295
+ readonly videoFrameInfo: {
1296
+ total: number;
1297
+ dropped: number;
1298
+ corrupted: number;
1299
+ droppedRate: number;
1300
+ droppedDuration: number;
1301
+ };
1302
+ lang: string;
1303
+ readonly i18n: {
1304
+ LANG: string;
1305
+ TEXT: {
1306
+ [propName: string]: any;
1307
+ };
1308
+ };
1309
+ readonly i18nKeys: {
1310
+ [propName: string]: string;
1311
+ };
1312
+ readonly version: string;
1313
+ readonly playerId: string | number;
1314
+ url: any;
1315
+ poster: any;
1316
+ readonly error: any;
1317
+ readonly fullscreenChanging: boolean;
1318
+ readonly cumulateTime: number;
1319
+ zoom: number;
1320
+ videoRotateDeg: number;
1321
+ avgSpeed: number;
1322
+ realTimeSpeed: number;
1323
+ offsetCurrentTime: number;
1324
+ offsetDuration: number;
1325
+ hook: (hookName: string, handler: Function, preset?: {
1326
+ pre: Function | null;
1327
+ next: Function | null;
1328
+ }, ...args: any[]) => any;
1329
+ useHooks: (hookName: string, handler: (player: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
1330
+ removeHooks: (hookName: string, handler: (player: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => any;
1331
+ usePluginHooks: (pluginName: string, hookName: string, handler: (plugin: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
1332
+ removePluginHooks: (pluginName: string, hookName: string, handler: (plugin: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
1333
+ setUserActive: (isActive: boolean, isMuted?: boolean) => void;
1334
+ vtype: string;
1335
+ mediaConfig: {
1336
+ [propName: string]: any;
1337
+ };
1338
+ media: HTMLElement | HTMLVideoElement | HTMLAudioElement | {
1339
+ duration: number;
1340
+ currentTime: number;
1341
+ muted: boolean;
1342
+ defaultMuted: boolean;
1343
+ volume: number;
1344
+ playbackRate: number;
1345
+ defaultPlaybackRate: number;
1346
+ autoplay: boolean;
1347
+ readonly paused: boolean;
1348
+ readonly ended: boolean;
1349
+ readonly networkState: number;
1350
+ readonly readyState: number;
1351
+ readonly seeking: boolean;
1352
+ src: any;
1353
+ play: Function;
1354
+ pause: Function;
1355
+ } | null;
1356
+ volume: number;
1357
+ readonly mediaEventMiddleware: {};
1358
+ setEventsMiddleware: (middlewares: {
1359
+ [propName: string]: (e: {
1360
+ player: any;
1361
+ eventName: string;
1362
+ }, callback: () => void) => any;
1363
+ }) => void;
1364
+ removeEventsMiddleware: (middlewares: {
1365
+ [propName: string]: (e: {
1366
+ player: any;
1367
+ eventName: string;
1368
+ }, callback: () => void) => any;
1369
+ }) => void;
1370
+ attachVideoEvents: (media?: any) => void;
1371
+ detachVideoEvents: (media?: any) => void;
1372
+ _videoSourceIndex: number;
1373
+ _vLoadeddata: (e: any) => void;
1374
+ _sourceError: (e: any) => void;
1375
+ errorHandler: (name: any, error?: any) => void;
1376
+ destroy: () => void;
1377
+ video: HTMLElement | HTMLVideoElement | HTMLAudioElement | {
1378
+ duration: number;
1379
+ currentTime: number;
1380
+ muted: boolean;
1381
+ defaultMuted: boolean;
1382
+ volume: number;
1383
+ playbackRate: number;
1384
+ defaultPlaybackRate: number;
1385
+ autoplay: boolean;
1386
+ readonly paused: boolean;
1387
+ readonly ended: boolean;
1388
+ readonly networkState: number;
1389
+ readonly readyState: number;
1390
+ readonly seeking: boolean;
1391
+ src: any;
1392
+ play: Function;
1393
+ pause: Function;
1394
+ };
1395
+ pause: () => void;
1396
+ load: () => void;
1397
+ canPlayType: (type: string) => boolean;
1398
+ getBufferedRange: (buffered?: any) => Array<number>;
1399
+ autoplay: any;
1400
+ readonly buffered: {
1401
+ readonly length: number;
1402
+ end: (index: number) => number;
1403
+ start: (index: number) => number;
1404
+ };
1405
+ readonly buffered2: {
1406
+ start: number;
1407
+ end: number;
1408
+ }[];
1409
+ readonly bufferedPoint: {
1410
+ start: number;
1411
+ end: number;
1412
+ };
1413
+ crossOrigin: string;
1414
+ currentSrc: string;
1415
+ defaultMuted: boolean;
1416
+ readonly duration: number;
1417
+ readonly ended: boolean;
1418
+ readonly errorNote: string;
1419
+ loop: boolean;
1420
+ muted: boolean;
1421
+ readonly networkState: 0 | 1 | 2 | 3;
1422
+ readonly paused: boolean;
1423
+ playbackRate: number;
1424
+ readonly played: {
1425
+ readonly length: number;
1426
+ end: (index: number) => number;
1427
+ start: (index: number) => number;
1428
+ };
1429
+ preload: boolean;
1430
+ readonly readyState: 0 | 1 | 2 | 3 | 4;
1431
+ readonly seekable: boolean;
1432
+ readonly seeking: boolean;
1433
+ src: any;
1434
+ readonly aspectRatio: number;
1435
+ addInnerOP: (event: any) => void;
1436
+ removeInnerOP: (event: any) => void;
1437
+ emit: (event: string, data?: any, ...args: any[]) => void;
1438
+ on: (event: string, callback: (...args: any[]) => any, ...args: any[]) => void;
1439
+ once: (event: string, callback: (...args: any[]) => any, ...args: any[]) => void;
1440
+ off: (event: string, callback: (...args: any[]) => any, ...args: any[]) => void;
1441
+ offAll: () => void;
1442
+ } | null, Player | {
1443
+ config: {
1444
+ [x: string]: any;
1445
+ id?: string | undefined;
1446
+ el?: HTMLElement | undefined;
1447
+ mediaEl?: (HTMLMediaElement | ((mediaConfig: {
1448
+ [propName: string]: any;
1449
+ }) => HTMLMediaElement)) | undefined;
1450
+ url?: string | {
1451
+ readonly active: boolean;
1452
+ readonly id: string;
1453
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1454
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1455
+ addTrack: (track: MediaStreamTrack) => void;
1456
+ clone: () => MediaStream;
1457
+ getAudioTracks: () => MediaStreamTrack[];
1458
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
1459
+ getTracks: () => MediaStreamTrack[];
1460
+ getVideoTracks: () => MediaStreamTrack[];
1461
+ removeTrack: (track: MediaStreamTrack) => void;
1462
+ addEventListener: {
1463
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1464
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1465
+ };
1466
+ removeEventListener: {
1467
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1468
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1469
+ };
1470
+ dispatchEvent: (event: Event) => boolean;
1471
+ } | {
1472
+ [x: string]: any;
1473
+ src: string;
1474
+ type?: string | undefined;
1475
+ }[] | undefined;
1476
+ domEventType?: ("default" | "touch" | "mouse") | undefined;
1477
+ nullUrlStart?: boolean | undefined;
1478
+ width?: (number | string) | undefined;
1479
+ height?: (number | string) | undefined;
1480
+ fluid?: boolean | undefined;
1481
+ fitVideoSize?: ("fixWidth" | "fixHeight" | "fixed") | undefined;
1482
+ videoFillMode?: ("auto" | "fillHeight" | "fillWidth" | "fill" | "cover" | "contain") | undefined;
1483
+ volume?: (number | {
1484
+ [propName: string]: any;
1485
+ }) | undefined;
1486
+ autoplay?: boolean | undefined;
1487
+ autoplayMuted?: boolean | undefined;
1488
+ loop?: boolean | undefined;
1489
+ isLive?: boolean | undefined;
1490
+ zoom?: number | undefined;
1491
+ videoInit?: boolean | undefined;
1492
+ poster?: (string | {
1493
+ [propName: string]: any;
1494
+ }) | undefined;
1495
+ isMobileSimulateMode?: ("mobile" | "pc") | undefined;
1496
+ defaultPlaybackRate?: number | undefined;
1497
+ execBeforePluginsCall?: (() => any) | undefined;
1498
+ allowSeekAfterEnded?: boolean | undefined;
1499
+ enableContextmenu?: boolean | undefined;
1500
+ closeVideoClick?: boolean | undefined;
1501
+ closeVideoDblclick?: boolean | undefined;
1502
+ closePlayerBlur?: boolean | undefined;
1503
+ closeDelayBlur?: boolean | undefined;
1504
+ leavePlayerTime?: number | undefined;
1505
+ closePlayVideoFocus?: boolean | undefined;
1506
+ closePauseVideoFocus?: boolean | undefined;
1507
+ closeFocusVideoFocus?: boolean | undefined;
1508
+ closeControlsBlur?: boolean | undefined;
1509
+ topBarAutoHide?: boolean | undefined;
1510
+ videoAttributes?: {
1511
+ [propName: string]: any;
1512
+ } | undefined;
1513
+ startTime?: number | undefined;
1514
+ seekedStatus?: ("play" | "pause" | "auto") | undefined;
1515
+ miniprogress?: boolean | undefined;
1516
+ disableSwipeHandler?: (() => any) | undefined;
1517
+ enableSwipeHandler?: (() => any) | undefined;
1518
+ preProcessUrl?: ((url: import("xgplayer/es/defaultConfig").IUrl, ext?: {
1519
+ [propName: string]: any;
1520
+ }) => {
1521
+ [propName: string]: any;
1522
+ url: import("xgplayer/es/defaultConfig").IUrl;
1523
+ }) | undefined;
1524
+ ignores?: Array<"cssfullscreen" | "screenshot" | "pip" | "miniscreen" | "keyboard" | "download" | "playbackrate" | "time" | "definition" | "error" | "fullscreen" | "loading" | "mobile" | "pc" | "play" | "poster" | "progress" | "replay" | "start" | "volume" | string> | undefined;
1525
+ inactive?: number | undefined;
1526
+ lang?: string | undefined;
1527
+ controls?: (boolean | {
1528
+ [propName: string]: any;
1529
+ }) | undefined;
1530
+ marginControls?: boolean | undefined;
1531
+ fullscreenTarget?: HTMLElement | undefined;
1532
+ screenShot?: (boolean | {
1533
+ [propName: string]: any;
1534
+ }) | undefined;
1535
+ rotate?: (boolean | {
1536
+ [propName: string]: any;
1537
+ }) | undefined;
1538
+ pip?: (boolean | {
1539
+ [propName: string]: any;
1540
+ }) | undefined;
1541
+ download?: (boolean | {
1542
+ [propName: string]: any;
1543
+ }) | undefined;
1544
+ mini?: (boolean | {
1545
+ [propName: string]: any;
1546
+ }) | undefined;
1547
+ cssFullscreen?: (boolean | {
1548
+ [propName: string]: any;
1549
+ }) | undefined;
1550
+ keyShortcut?: boolean | undefined;
1551
+ presets?: any[] | undefined;
1552
+ plugins?: any[] | undefined;
1553
+ playbackRate?: (boolean | number[] | {
1554
+ [propName: string]: any;
1555
+ }) | undefined;
1556
+ definition?: {
1557
+ [x: string]: any;
1558
+ list: {
1559
+ [x: string]: any;
1560
+ url: string | {
1561
+ readonly active: boolean;
1562
+ readonly id: string;
1563
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1564
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1565
+ addTrack: (track: MediaStreamTrack) => void;
1566
+ clone: () => MediaStream;
1567
+ getAudioTracks: () => MediaStreamTrack[];
1568
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
1569
+ getTracks: () => MediaStreamTrack[];
1570
+ getVideoTracks: () => MediaStreamTrack[];
1571
+ removeTrack: (track: MediaStreamTrack) => void;
1572
+ addEventListener: {
1573
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1574
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1575
+ };
1576
+ removeEventListener: {
1577
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1578
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1579
+ };
1580
+ dispatchEvent: (event: Event) => boolean;
1581
+ } | {
1582
+ [x: string]: any;
1583
+ src: string;
1584
+ type?: string | undefined;
1585
+ }[];
1586
+ definition: any;
1587
+ bitrate?: number | undefined;
1588
+ bandwidth?: number | undefined;
1589
+ text?: (string | {
1590
+ [propName: string]: any;
1591
+ }) | undefined;
1592
+ iconText?: (string | {
1593
+ [propName: string]: any;
1594
+ }) | undefined;
1595
+ }[];
1596
+ defaultDefinition?: import("xgplayer/es/defaultConfig").IDefinition["definition"];
1597
+ } | undefined;
1598
+ playsinline?: boolean | undefined;
1599
+ customDuration?: number | undefined;
1600
+ timeOffset?: number | undefined;
1601
+ icons?: {
1602
+ [propName: string]: string | HTMLElement | (() => HTMLElement | string);
1603
+ } | undefined;
1604
+ i18n?: Array<any> | undefined;
1605
+ tabindex?: number | undefined;
1606
+ thumbnail?: {
1607
+ urls: Array<string>;
1608
+ pic_num: number;
1609
+ col: number;
1610
+ row: number;
1611
+ height?: number | undefined;
1612
+ width?: number | undefined;
1613
+ } | undefined;
1614
+ videoConfig?: {
1615
+ [propName: string]: any;
1616
+ } | undefined;
1617
+ isHideTips?: boolean | undefined;
1618
+ minWaitDelay?: number | undefined;
1619
+ commonStyle?: {
1620
+ progressColor?: string | undefined;
1621
+ playedColor?: string | undefined;
1622
+ cachedColor?: string | undefined;
1623
+ sliderBtnStyle?: {
1624
+ [propName: string]: any;
1625
+ } | undefined;
1626
+ volumeColor?: string | undefined;
1627
+ } | undefined;
1628
+ remainMediaAfterDestroy?: boolean | undefined;
1629
+ };
1630
+ userTimer: any;
1631
+ handleSource: boolean;
1632
+ readonly isAd: boolean;
1633
+ readonly isError: boolean;
1634
+ readonly isSeeking: boolean;
1635
+ readonly isCanplay: boolean;
1636
+ rotateDeg: number;
1637
+ readonly isActive: boolean;
1638
+ readonly fullscreen: boolean;
1639
+ readonly cssfullscreen: boolean;
1640
+ readonly isRotateFullscreen: boolean;
1641
+ readonly _fullscreenEl: HTMLElement | null;
1642
+ timeSegments: any[];
1643
+ readonly _cssfullscreenEl: HTMLElement | null;
1644
+ curDefinition: {
1645
+ [x: string]: any;
1646
+ url: string | {
1647
+ readonly active: boolean;
1648
+ readonly id: string;
1649
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1650
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1651
+ addTrack: (track: MediaStreamTrack) => void;
1652
+ clone: () => MediaStream;
1653
+ getAudioTracks: () => MediaStreamTrack[];
1654
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
1655
+ getTracks: () => MediaStreamTrack[];
1656
+ getVideoTracks: () => MediaStreamTrack[];
1657
+ removeTrack: (track: MediaStreamTrack) => void;
1658
+ addEventListener: {
1659
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1660
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1661
+ };
1662
+ removeEventListener: {
1663
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1664
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1665
+ };
1666
+ dispatchEvent: (event: Event) => boolean;
1667
+ } | {
1668
+ [x: string]: any;
1669
+ src: string;
1670
+ type?: string | undefined;
1671
+ }[];
1672
+ definition: any;
1673
+ bitrate?: number | undefined;
1674
+ bandwidth?: number | undefined;
1675
+ text?: (string | {
1676
+ [propName: string]: any;
1677
+ }) | undefined;
1678
+ iconText?: (string | {
1679
+ [propName: string]: any;
1680
+ }) | undefined;
1681
+ } | null;
1682
+ readonly _fullScreenOffset: number;
1683
+ videoPos: {
1684
+ pi: number;
1685
+ scale: number;
1686
+ rotate: number;
1687
+ x: number;
1688
+ y: number;
1689
+ h: number;
1690
+ w: number;
1691
+ vy: number;
1692
+ vx: number;
1693
+ };
1694
+ sizeInfo: {
1695
+ width: number;
1696
+ height: number;
1697
+ left: number;
1698
+ top: number;
1699
+ };
1700
+ _offsetInfo: {
1701
+ currentTime: number;
1702
+ duration: number;
1703
+ };
1704
+ readonly innerContainer: null | HTMLElement;
1705
+ readonly controls: {
1706
+ beforeCreate: (args: any) => void;
1707
+ readonly left: HTMLElement;
1708
+ readonly center: HTMLElement;
1709
+ readonly right: HTMLElement;
1710
+ readonly innerRoot: HTMLElement;
1711
+ onMouseEnter: (e: any) => void;
1712
+ onMouseLeave: (e: any) => void;
1713
+ focus: () => void;
1714
+ focusAwhile: () => void;
1715
+ blur: () => void;
1716
+ recoverAutoHide: () => void;
1717
+ pauseAutoHide: () => void;
1718
+ show: (value?: string) => void;
1719
+ readonly mode: string;
1720
+ registerPlugin: (plugin: any, options: {
1721
+ config?: {
1722
+ [propName: string]: any;
1723
+ };
1724
+ position?: string;
1725
+ root?: HTMLElement;
1726
+ pluginName?: string;
1727
+ }, name: string) => any;
1728
+ render: () => string;
1729
+ readonly icons: {};
1730
+ readonly root: HTMLElement;
1731
+ readonly parent: HTMLElement;
1732
+ readonly langText: {};
1733
+ updateLang: (lang: any) => void;
1734
+ changeLangTextKey: (dom: any, key?: string) => void;
1735
+ plugins: () => any[];
1736
+ disable: () => void;
1737
+ enable: () => void;
1738
+ children: () => {};
1739
+ registerIcons: () => {};
1740
+ registerLanguageTexts: () => {};
1741
+ find: (qs: string) => HTMLElement | null;
1742
+ bind: (querySelector: string | Array<string>, eventType: string | Array<string> | Function, callback?: Function, ...args: any[]) => void;
1743
+ unbind: (querySelector: string | Array<string>, eventType: string | Array<string> | Function, ...args: any[]) => void;
1744
+ setStyle: (name: string | {
1745
+ [propName: string]: any;
1746
+ }, value: any) => any;
1747
+ setAttr: (name: string | {
1748
+ [propName: string]: any;
1749
+ }, value: any) => void;
1750
+ setHtml: (htmlStr: string, callback?: Function) => void;
1751
+ bindEL: (event: string, eventHandle: Function, isBubble?: boolean) => void;
1752
+ unbindEL: (event: string, eventHandle: Function, isBubble?: boolean) => void;
1753
+ hide: () => void;
1754
+ appendChild: (pdom: string | HTMLElement, child: HTMLElement, ...args: any[]) => HTMLElement | null;
1755
+ __onceEvents: {};
1756
+ config: {
1757
+ [propName: string]: any;
1758
+ };
1759
+ readonly player: {
1760
+ config: {
1761
+ [x: string]: any;
1762
+ id?: string | undefined;
1763
+ el?: HTMLElement | undefined;
1764
+ mediaEl?: (HTMLMediaElement | ((mediaConfig: {
1765
+ [propName: string]: any;
1766
+ }) => HTMLMediaElement)) | undefined;
1767
+ url?: string | {
1768
+ readonly active: boolean;
1769
+ readonly id: string;
1770
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1771
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1772
+ addTrack: (track: MediaStreamTrack) => void;
1773
+ clone: () => MediaStream;
1774
+ getAudioTracks: () => MediaStreamTrack[];
1775
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
1776
+ getTracks: () => MediaStreamTrack[];
1777
+ getVideoTracks: () => MediaStreamTrack[];
1778
+ removeTrack: (track: MediaStreamTrack) => void;
1779
+ addEventListener: {
1780
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1781
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1782
+ };
1783
+ removeEventListener: {
1784
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1785
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1786
+ };
1787
+ dispatchEvent: (event: Event) => boolean;
1788
+ } | {
1789
+ [x: string]: any;
1790
+ src: string;
1791
+ type?: string | undefined;
1792
+ }[] | undefined;
1793
+ domEventType?: ("default" | "touch" | "mouse") | undefined;
1794
+ nullUrlStart?: boolean | undefined;
1795
+ width?: (number | string) | undefined;
1796
+ height?: (number | string) | undefined;
1797
+ fluid?: boolean | undefined;
1798
+ fitVideoSize?: ("fixWidth" | "fixHeight" | "fixed") | undefined;
1799
+ videoFillMode?: ("auto" | "fillHeight" | "fillWidth" | "fill" | "cover" | "contain") | undefined;
1800
+ volume?: (number | {
1801
+ [propName: string]: any;
1802
+ }) | undefined;
1803
+ autoplay?: boolean | undefined;
1804
+ autoplayMuted?: boolean | undefined;
1805
+ loop?: boolean | undefined;
1806
+ isLive?: boolean | undefined;
1807
+ zoom?: number | undefined;
1808
+ videoInit?: boolean | undefined;
1809
+ poster?: (string | {
1810
+ [propName: string]: any;
1811
+ }) | undefined;
1812
+ isMobileSimulateMode?: ("mobile" | "pc") | undefined;
1813
+ defaultPlaybackRate?: number | undefined;
1814
+ execBeforePluginsCall?: (() => any) | undefined;
1815
+ allowSeekAfterEnded?: boolean | undefined;
1816
+ enableContextmenu?: boolean | undefined;
1817
+ closeVideoClick?: boolean | undefined;
1818
+ closeVideoDblclick?: boolean | undefined;
1819
+ closePlayerBlur?: boolean | undefined;
1820
+ closeDelayBlur?: boolean | undefined;
1821
+ leavePlayerTime?: number | undefined;
1822
+ closePlayVideoFocus?: boolean | undefined;
1823
+ closePauseVideoFocus?: boolean | undefined;
1824
+ closeFocusVideoFocus?: boolean | undefined;
1825
+ closeControlsBlur?: boolean | undefined;
1826
+ topBarAutoHide?: boolean | undefined;
1827
+ videoAttributes?: {
1828
+ [propName: string]: any;
1829
+ } | undefined;
1830
+ startTime?: number | undefined;
1831
+ seekedStatus?: ("play" | "pause" | "auto") | undefined;
1832
+ miniprogress?: boolean | undefined;
1833
+ disableSwipeHandler?: (() => any) | undefined;
1834
+ enableSwipeHandler?: (() => any) | undefined;
1835
+ preProcessUrl?: ((url: import("xgplayer/es/defaultConfig").IUrl, ext?: {
1836
+ [propName: string]: any;
1837
+ }) => {
1838
+ [propName: string]: any;
1839
+ url: import("xgplayer/es/defaultConfig").IUrl;
1840
+ }) | undefined;
1841
+ ignores?: Array<"cssfullscreen" | "screenshot" | "pip" | "miniscreen" | "keyboard" | "download" | "playbackrate" | "time" | "definition" | "error" | "fullscreen" | "loading" | "mobile" | "pc" | "play" | "poster" | "progress" | "replay" | "start" | "volume" | string> | undefined;
1842
+ inactive?: number | undefined;
1843
+ lang?: string | undefined;
1844
+ controls?: (boolean | {
1845
+ [propName: string]: any;
1846
+ }) | undefined;
1847
+ marginControls?: boolean | undefined;
1848
+ fullscreenTarget?: HTMLElement | undefined;
1849
+ screenShot?: (boolean | {
1850
+ [propName: string]: any;
1851
+ }) | undefined;
1852
+ rotate?: (boolean | {
1853
+ [propName: string]: any;
1854
+ }) | undefined;
1855
+ pip?: (boolean | {
1856
+ [propName: string]: any;
1857
+ }) | undefined;
1858
+ download?: (boolean | {
1859
+ [propName: string]: any;
1860
+ }) | undefined;
1861
+ mini?: (boolean | {
1862
+ [propName: string]: any;
1863
+ }) | undefined;
1864
+ cssFullscreen?: (boolean | {
1865
+ [propName: string]: any;
1866
+ }) | undefined;
1867
+ keyShortcut?: boolean | undefined;
1868
+ presets?: any[] | undefined;
1869
+ plugins?: any[] | undefined;
1870
+ playbackRate?: (boolean | number[] | {
1871
+ [propName: string]: any;
1872
+ }) | undefined;
1873
+ definition?: {
1874
+ [x: string]: any;
1875
+ list: {
1876
+ [x: string]: any;
1877
+ url: string | {
1878
+ readonly active: boolean;
1879
+ readonly id: string;
1880
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1881
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1882
+ addTrack: (track: MediaStreamTrack) => void;
1883
+ clone: () => MediaStream;
1884
+ getAudioTracks: () => MediaStreamTrack[];
1885
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
1886
+ getTracks: () => MediaStreamTrack[];
1887
+ getVideoTracks: () => MediaStreamTrack[];
1888
+ removeTrack: (track: MediaStreamTrack) => void;
1889
+ addEventListener: {
1890
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1891
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1892
+ };
1893
+ removeEventListener: {
1894
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1895
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1896
+ };
1897
+ dispatchEvent: (event: Event) => boolean;
1898
+ } | {
1899
+ [x: string]: any;
1900
+ src: string;
1901
+ type?: string | undefined;
1902
+ }[];
1903
+ definition: any;
1904
+ bitrate?: number | undefined;
1905
+ bandwidth?: number | undefined;
1906
+ text?: (string | {
1907
+ [propName: string]: any;
1908
+ }) | undefined;
1909
+ iconText?: (string | {
1910
+ [propName: string]: any;
1911
+ }) | undefined;
1912
+ }[];
1913
+ defaultDefinition?: import("xgplayer/es/defaultConfig").IDefinition["definition"];
1914
+ } | undefined;
1915
+ playsinline?: boolean | undefined;
1916
+ customDuration?: number | undefined;
1917
+ timeOffset?: number | undefined;
1918
+ icons?: {
1919
+ [propName: string]: string | HTMLElement | (() => HTMLElement | string);
1920
+ } | undefined;
1921
+ i18n?: Array<any> | undefined;
1922
+ tabindex?: number | undefined;
1923
+ thumbnail?: {
1924
+ urls: Array<string>;
1925
+ pic_num: number;
1926
+ col: number;
1927
+ row: number;
1928
+ height?: number | undefined;
1929
+ width?: number | undefined;
1930
+ } | undefined;
1931
+ videoConfig?: {
1932
+ [propName: string]: any;
1933
+ } | undefined;
1934
+ isHideTips?: boolean | undefined;
1935
+ minWaitDelay?: number | undefined;
1936
+ commonStyle?: {
1937
+ progressColor?: string | undefined;
1938
+ playedColor?: string | undefined;
1939
+ cachedColor?: string | undefined;
1940
+ sliderBtnStyle?: {
1941
+ [propName: string]: any;
1942
+ } | undefined;
1943
+ volumeColor?: string | undefined;
1944
+ } | undefined;
1945
+ remainMediaAfterDestroy?: boolean | undefined;
1946
+ };
1947
+ userTimer: any;
1948
+ handleSource: boolean;
1949
+ readonly isAd: boolean;
1950
+ readonly isError: boolean;
1951
+ readonly isSeeking: boolean;
1952
+ readonly isCanplay: boolean;
1953
+ rotateDeg: number;
1954
+ readonly isActive: boolean;
1955
+ readonly fullscreen: boolean;
1956
+ readonly cssfullscreen: boolean;
1957
+ readonly isRotateFullscreen: boolean;
1958
+ readonly _fullscreenEl: HTMLElement | null;
1959
+ timeSegments: any[];
1960
+ readonly _cssfullscreenEl: HTMLElement | null;
1961
+ curDefinition: {
1962
+ [x: string]: any;
1963
+ url: string | {
1964
+ readonly active: boolean;
1965
+ readonly id: string;
1966
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1967
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
1968
+ addTrack: (track: MediaStreamTrack) => void;
1969
+ clone: () => MediaStream;
1970
+ getAudioTracks: () => MediaStreamTrack[];
1971
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
1972
+ getTracks: () => MediaStreamTrack[];
1973
+ getVideoTracks: () => MediaStreamTrack[];
1974
+ removeTrack: (track: MediaStreamTrack) => void;
1975
+ addEventListener: {
1976
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1977
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1978
+ };
1979
+ removeEventListener: {
1980
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1981
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1982
+ };
1983
+ dispatchEvent: (event: Event) => boolean;
1984
+ } | {
1985
+ [x: string]: any;
1986
+ src: string;
1987
+ type?: string | undefined;
1988
+ }[];
1989
+ definition: any;
1990
+ bitrate?: number | undefined;
1991
+ bandwidth?: number | undefined;
1992
+ text?: (string | {
1993
+ [propName: string]: any;
1994
+ }) | undefined;
1995
+ iconText?: (string | {
1996
+ [propName: string]: any;
1997
+ }) | undefined;
1998
+ } | null;
1999
+ readonly _fullScreenOffset: number;
2000
+ videoPos: {
2001
+ pi: number;
2002
+ scale: number;
2003
+ rotate: number;
2004
+ x: number;
2005
+ y: number;
2006
+ h: number;
2007
+ w: number;
2008
+ vy: number;
2009
+ vx: number;
2010
+ };
2011
+ sizeInfo: {
2012
+ width: number;
2013
+ height: number;
2014
+ left: number;
2015
+ top: number;
2016
+ };
2017
+ _offsetInfo: {
2018
+ currentTime: number;
2019
+ duration: number;
2020
+ };
2021
+ readonly innerContainer: null | HTMLElement;
2022
+ readonly controls: any | null;
2023
+ readonly topBar: null | HTMLElement;
2024
+ readonly root: null | HTMLElement;
2025
+ __i18n: {
2026
+ lang: {
2027
+ [propName: string]: import("xgplayer/es/lang/i18n").IXGI18nText;
2028
+ };
2029
+ langKeys: Array<string>;
2030
+ textKeys: {
2031
+ [propName: string]: string;
2032
+ };
2033
+ };
2034
+ readonly database: any;
2035
+ readonly isUserActive: boolean;
2036
+ readonly innerStates: {
2037
+ isActiveLocked: boolean;
2038
+ };
2039
+ instManager: {
2040
+ add: (player: any) => void;
2041
+ remove: (player: any) => void;
2042
+ forEach: (fn: import("xgplayer/es/instManager").IterateFunction) => void;
2043
+ find: (fn: import("xgplayer/es/instManager").IterateFunction) => import("xgplayer/es/instManager").Player;
2044
+ findAll: (fn: import("xgplayer/es/instManager").IterateFunction) => import("xgplayer/es/instManager").Player[];
2045
+ setActive: (playerId: number | string, isActive?: boolean) => number | null;
2046
+ getActiveId: () => number | null;
2047
+ setNext: (playerId: number | string, isNext?: boolean) => number | null;
2048
+ eventNames: () => (string | symbol)[];
2049
+ listeners: <T extends string | symbol>(event: T) => ((...args: any[]) => void)[];
2050
+ listenerCount: (event: string | symbol) => number;
2051
+ emit: <T extends string | symbol>(event: T, ...args: any[]) => boolean;
2052
+ on: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => import("xgplayer").InstManager;
2053
+ addListener: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => import("xgplayer").InstManager;
2054
+ once: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => import("xgplayer").InstManager;
2055
+ removeListener: <T extends string | symbol>(event: T, fn?: ((...args: any[]) => void) | undefined, context?: any, once?: boolean) => import("xgplayer").InstManager;
2056
+ off: <T extends string | symbol>(event: T, fn?: ((...args: any[]) => void) | undefined, context?: any, once?: boolean) => import("xgplayer").InstManager;
2057
+ removeAllListeners: (event?: string | symbol | undefined) => import("xgplayer").InstManager;
2058
+ };
2059
+ readonly leftBar: HTMLElement | null;
2060
+ readonly rightBar: HTMLElement | null;
2061
+ playFunc: () => void;
2062
+ _clearUserTimer: () => void;
2063
+ _startInit: (url?: any) => void;
2064
+ hasStart: boolean;
2065
+ registerPlugin: (plugin: Function | {
2066
+ plugin: Function;
2067
+ options: object;
2068
+ }, config?: {
2069
+ [propName: string]: any;
2070
+ }) => any;
2071
+ deregister: (plugin: any) => void;
2072
+ unRegisterPlugin: (plugin: any, removedFromConfig?: boolean) => void;
2073
+ removePluginFromConfig: (plugin: any) => void;
2074
+ readonly plugins: {
2075
+ [propName: string]: any;
2076
+ };
2077
+ getPlugin: (pluginName: string) => null | any;
2078
+ addClass: (className: string) => void;
2079
+ removeClass: (className: string) => void;
2080
+ hasClass: (className: string) => boolean;
2081
+ setAttribute: (key: string, value: any) => void;
2082
+ removeAttribute: (key: string, value: any) => void;
2083
+ start: (url?: any) => Promise<void> | void;
2084
+ switchURL: (url: string | object, options?: import("xgplayer/es/player").SwitchUrlOptions) => Promise<any> | null;
2085
+ videoPlay: () => void;
2086
+ mediaPlay: () => Promise<void>;
2087
+ mediaPause: () => void;
2088
+ videoPause: () => void;
2089
+ play: () => any;
2090
+ seek: (time: number, status?: "play" | "pause" | "auto") => void;
2091
+ currentTime: any;
2092
+ getInitDefinition: () => void;
2093
+ changeDefinition: (to: import("xgplayer/es/defaultConfig").IDefinition, from?: import("xgplayer/es/defaultConfig").IDefinition) => void;
2094
+ reload: () => void;
2095
+ resetState: () => void;
2096
+ reset: (unregisterPlugins?: Array<string>, isResetConfig?: boolean) => void;
2097
+ replay: () => void;
2098
+ retry: () => void;
2099
+ changeFullStyle: (root: HTMLElement, el?: HTMLElement, rootClass?: string, pClassName?: string) => void;
2100
+ recoverFullStyle: (root: HTMLElement, el?: HTMLElement, rootClass?: string, pClassName?: string) => void;
2101
+ getFullscreen: (el?: HTMLElement) => Promise<void>;
2102
+ exitFullscreen: (el?: HTMLElement) => Promise<void>;
2103
+ getCssFullscreen: (el?: HTMLElement) => void;
2104
+ exitCssFullscreen: () => void;
2105
+ getRotateFullscreen: (el?: HTMLElement) => void;
2106
+ _rootStyle: string | boolean;
2107
+ exitRotateFullscreen: (el?: HTMLElement) => void;
2108
+ setRotateDeg: (deg: any) => void;
2109
+ focus: (data?: {
2110
+ autoHide?: boolean;
2111
+ delay?: number;
2112
+ isLock?: boolean;
2113
+ }) => void;
2114
+ blur: (data?: {
2115
+ ignorePaused?: boolean;
2116
+ }) => void;
2117
+ canPlayFunc: () => void;
2118
+ onFullscreenChange: (event: any, isFullScreen: any) => void;
2119
+ _onWebkitbeginfullscreen: (e: any) => void;
2120
+ _onWebkitendfullscreen: (e: any) => void;
2121
+ onEmptied: () => void;
2122
+ onLoadeddata: () => void;
2123
+ onLoadstart: () => void;
2124
+ onVolumechange: () => void;
2125
+ onRatechange: () => void;
2126
+ emitUserAction: (event: Event, action: string, params: any) => void;
2127
+ updateAcc: (endType: any) => void;
2128
+ checkBuffer: (time: number, options?: {
2129
+ startDiff: number;
2130
+ endDiff: number;
2131
+ }) => boolean;
2132
+ resizePosition: () => void;
2133
+ position: (pos?: {
2134
+ h: number;
2135
+ y?: number;
2136
+ x?: number;
2137
+ w?: number;
2138
+ }) => void;
2139
+ setConfig: (config: import("xgplayer/es/player").IPlayerOptions) => void;
2140
+ playNext: (config: import("xgplayer/es/player").IPlayerOptions) => void;
2141
+ resize: () => void;
2142
+ updateObjectPosition: (left?: number, top?: number) => void;
2143
+ preProcessUrl: (url: import("xgplayer/es/player").IUrl, ext?: {
2144
+ [propName: string]: any;
2145
+ }) => import("xgplayer/es/defaultConfig").IUrl;
2146
+ _seekToStartTime: () => void;
2147
+ readonly state: number;
2148
+ readonly isFullscreen: boolean;
2149
+ readonly isCssfullScreen: boolean;
2150
+ isPlaying: boolean;
2151
+ definitionList: {
2152
+ [x: string]: any;
2153
+ url: string | {
2154
+ readonly active: boolean;
2155
+ readonly id: string;
2156
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
2157
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
2158
+ addTrack: (track: MediaStreamTrack) => void;
2159
+ clone: () => MediaStream;
2160
+ getAudioTracks: () => MediaStreamTrack[];
2161
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
2162
+ getTracks: () => MediaStreamTrack[];
2163
+ getVideoTracks: () => MediaStreamTrack[];
2164
+ removeTrack: (track: MediaStreamTrack) => void;
2165
+ addEventListener: {
2166
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2167
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
2168
+ };
2169
+ removeEventListener: {
2170
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2171
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
2172
+ };
2173
+ dispatchEvent: (event: Event) => boolean;
2174
+ } | {
2175
+ [x: string]: any;
2176
+ src: string;
2177
+ type?: string | undefined;
2178
+ }[];
2179
+ definition: any;
2180
+ bitrate?: number | undefined;
2181
+ bandwidth?: number | undefined;
2182
+ text?: (string | {
2183
+ [propName: string]: any;
2184
+ }) | undefined;
2185
+ iconText?: (string | {
2186
+ [propName: string]: any;
2187
+ }) | undefined;
2188
+ }[];
2189
+ readonly videoFrameInfo: {
2190
+ total: number;
2191
+ dropped: number;
2192
+ corrupted: number;
2193
+ droppedRate: number;
2194
+ droppedDuration: number;
2195
+ };
2196
+ lang: string;
2197
+ readonly i18n: {
2198
+ LANG: string;
2199
+ TEXT: {
2200
+ [propName: string]: any;
2201
+ };
2202
+ };
2203
+ readonly i18nKeys: {
2204
+ [propName: string]: string;
2205
+ };
2206
+ readonly version: string;
2207
+ readonly playerId: string | number;
2208
+ url: any;
2209
+ poster: any;
2210
+ readonly error: any;
2211
+ readonly fullscreenChanging: boolean;
2212
+ readonly cumulateTime: number;
2213
+ zoom: number;
2214
+ videoRotateDeg: number;
2215
+ avgSpeed: number;
2216
+ realTimeSpeed: number;
2217
+ offsetCurrentTime: number;
2218
+ offsetDuration: number;
2219
+ hook: (hookName: string, handler: Function, preset?: {
2220
+ pre: Function | null;
2221
+ next: Function | null;
2222
+ }, ...args: any[]) => any;
2223
+ useHooks: (hookName: string, handler: (player: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
2224
+ removeHooks: (hookName: string, handler: (player: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => any;
2225
+ usePluginHooks: (pluginName: string, hookName: string, handler: (plugin: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
2226
+ removePluginHooks: (pluginName: string, hookName: string, handler: (plugin: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
2227
+ setUserActive: (isActive: boolean, isMuted?: boolean) => void;
2228
+ vtype: string;
2229
+ mediaConfig: {
2230
+ [propName: string]: any;
2231
+ };
2232
+ media: HTMLElement | HTMLVideoElement | HTMLAudioElement | {
2233
+ duration: number;
2234
+ currentTime: number;
2235
+ muted: boolean;
2236
+ defaultMuted: boolean;
2237
+ volume: number;
2238
+ playbackRate: number;
2239
+ defaultPlaybackRate: number;
2240
+ autoplay: boolean;
2241
+ readonly paused: boolean;
2242
+ readonly ended: boolean;
2243
+ readonly networkState: number;
2244
+ readonly readyState: number;
2245
+ readonly seeking: boolean;
2246
+ src: any;
2247
+ play: Function;
2248
+ pause: Function;
2249
+ } | null;
2250
+ volume: number;
2251
+ readonly mediaEventMiddleware: {};
2252
+ setEventsMiddleware: (middlewares: {
2253
+ [propName: string]: (e: {
2254
+ player: any;
2255
+ eventName: string;
2256
+ }, callback: () => void) => any;
2257
+ }) => void;
2258
+ removeEventsMiddleware: (middlewares: {
2259
+ [propName: string]: (e: {
2260
+ player: any;
2261
+ eventName: string;
2262
+ }, callback: () => void) => any;
2263
+ }) => void;
2264
+ attachVideoEvents: (media?: any) => void;
2265
+ detachVideoEvents: (media?: any) => void;
2266
+ _videoSourceIndex: number;
2267
+ _vLoadeddata: (e: any) => void;
2268
+ _sourceError: (e: any) => void;
2269
+ errorHandler: (name: any, error?: any) => void;
2270
+ destroy: () => void;
2271
+ video: HTMLElement | HTMLVideoElement | HTMLAudioElement | {
2272
+ duration: number;
2273
+ currentTime: number;
2274
+ muted: boolean;
2275
+ defaultMuted: boolean;
2276
+ volume: number;
2277
+ playbackRate: number;
2278
+ defaultPlaybackRate: number;
2279
+ autoplay: boolean;
2280
+ readonly paused: boolean;
2281
+ readonly ended: boolean;
2282
+ readonly networkState: number;
2283
+ readonly readyState: number;
2284
+ readonly seeking: boolean;
2285
+ src: any;
2286
+ play: Function;
2287
+ pause: Function;
2288
+ };
2289
+ pause: () => void;
2290
+ load: () => void;
2291
+ canPlayType: (type: string) => boolean;
2292
+ getBufferedRange: (buffered?: any) => Array<number>;
2293
+ autoplay: any;
2294
+ readonly buffered: {
2295
+ readonly length: number;
2296
+ end: (index: number) => number;
2297
+ start: (index: number) => number;
2298
+ };
2299
+ readonly buffered2: {
2300
+ start: number;
2301
+ end: number;
2302
+ }[];
2303
+ readonly bufferedPoint: {
2304
+ start: number;
2305
+ end: number;
2306
+ };
2307
+ crossOrigin: string;
2308
+ currentSrc: string;
2309
+ defaultMuted: boolean;
2310
+ readonly duration: number;
2311
+ readonly ended: boolean;
2312
+ readonly errorNote: string;
2313
+ loop: boolean;
2314
+ muted: boolean;
2315
+ readonly networkState: 0 | 1 | 2 | 3;
2316
+ readonly paused: boolean;
2317
+ playbackRate: number;
2318
+ readonly played: {
2319
+ readonly length: number;
2320
+ end: (index: number) => number;
2321
+ start: (index: number) => number;
2322
+ };
2323
+ preload: boolean;
2324
+ readonly readyState: 0 | 1 | 2 | 3 | 4;
2325
+ readonly seekable: boolean;
2326
+ readonly seeking: boolean;
2327
+ src: any;
2328
+ readonly aspectRatio: number;
2329
+ addInnerOP: (event: any) => void;
2330
+ removeInnerOP: (event: any) => void;
2331
+ emit: (event: string, data?: any, ...args: any[]) => void;
2332
+ on: (event: string, callback: (...args: any[]) => any, ...args: any[]) => void;
2333
+ once: (event: string, callback: (...args: any[]) => any, ...args: any[]) => void;
2334
+ off: (event: string, callback: (...args: any[]) => any, ...args: any[]) => void;
2335
+ offAll: () => void;
2336
+ };
2337
+ readonly playerConfig: {
2338
+ [x: string]: any;
2339
+ id?: string | undefined;
2340
+ el?: HTMLElement | undefined;
2341
+ mediaEl?: (HTMLMediaElement | ((mediaConfig: {
2342
+ [propName: string]: any;
2343
+ }) => HTMLMediaElement)) | undefined;
2344
+ url?: string | {
2345
+ readonly active: boolean;
2346
+ readonly id: string;
2347
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
2348
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
2349
+ addTrack: (track: MediaStreamTrack) => void;
2350
+ clone: () => MediaStream;
2351
+ getAudioTracks: () => MediaStreamTrack[];
2352
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
2353
+ getTracks: () => MediaStreamTrack[];
2354
+ getVideoTracks: () => MediaStreamTrack[];
2355
+ removeTrack: (track: MediaStreamTrack) => void;
2356
+ addEventListener: {
2357
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2358
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
2359
+ };
2360
+ removeEventListener: {
2361
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2362
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
2363
+ };
2364
+ dispatchEvent: (event: Event) => boolean;
2365
+ } | {
2366
+ [x: string]: any;
2367
+ src: string;
2368
+ type?: string | undefined;
2369
+ }[] | undefined;
2370
+ domEventType?: ("default" | "touch" | "mouse") | undefined;
2371
+ nullUrlStart?: boolean | undefined;
2372
+ width?: (number | string) | undefined;
2373
+ height?: (number | string) | undefined;
2374
+ fluid?: boolean | undefined;
2375
+ fitVideoSize?: ("fixWidth" | "fixHeight" | "fixed") | undefined;
2376
+ videoFillMode?: ("auto" | "fillHeight" | "fillWidth" | "fill" | "cover" | "contain") | undefined;
2377
+ volume?: (number | {
2378
+ [propName: string]: any;
2379
+ }) | undefined;
2380
+ autoplay?: boolean | undefined;
2381
+ autoplayMuted?: boolean | undefined;
2382
+ loop?: boolean | undefined;
2383
+ isLive?: boolean | undefined;
2384
+ zoom?: number | undefined;
2385
+ videoInit?: boolean | undefined;
2386
+ poster?: (string | {
2387
+ [propName: string]: any;
2388
+ }) | undefined;
2389
+ isMobileSimulateMode?: ("mobile" | "pc") | undefined;
2390
+ defaultPlaybackRate?: number | undefined;
2391
+ execBeforePluginsCall?: (() => any) | undefined;
2392
+ allowSeekAfterEnded?: boolean | undefined;
2393
+ enableContextmenu?: boolean | undefined;
2394
+ closeVideoClick?: boolean | undefined;
2395
+ closeVideoDblclick?: boolean | undefined;
2396
+ closePlayerBlur?: boolean | undefined;
2397
+ closeDelayBlur?: boolean | undefined;
2398
+ leavePlayerTime?: number | undefined;
2399
+ closePlayVideoFocus?: boolean | undefined;
2400
+ closePauseVideoFocus?: boolean | undefined;
2401
+ closeFocusVideoFocus?: boolean | undefined;
2402
+ closeControlsBlur?: boolean | undefined;
2403
+ topBarAutoHide?: boolean | undefined;
2404
+ videoAttributes?: {
2405
+ [propName: string]: any;
2406
+ } | undefined;
2407
+ startTime?: number | undefined;
2408
+ seekedStatus?: ("play" | "pause" | "auto") | undefined;
2409
+ miniprogress?: boolean | undefined;
2410
+ disableSwipeHandler?: (() => any) | undefined;
2411
+ enableSwipeHandler?: (() => any) | undefined;
2412
+ preProcessUrl?: ((url: import("xgplayer/es/defaultConfig").IUrl, ext?: {
2413
+ [propName: string]: any;
2414
+ }) => {
2415
+ [propName: string]: any;
2416
+ url: import("xgplayer/es/defaultConfig").IUrl;
2417
+ }) | undefined;
2418
+ ignores?: Array<"cssfullscreen" | "screenshot" | "pip" | "miniscreen" | "keyboard" | "download" | "playbackrate" | "time" | "definition" | "error" | "fullscreen" | "loading" | "mobile" | "pc" | "play" | "poster" | "progress" | "replay" | "start" | "volume" | string> | undefined;
2419
+ inactive?: number | undefined;
2420
+ lang?: string | undefined;
2421
+ controls?: (boolean | {
2422
+ [propName: string]: any;
2423
+ }) | undefined;
2424
+ marginControls?: boolean | undefined;
2425
+ fullscreenTarget?: HTMLElement | undefined;
2426
+ screenShot?: (boolean | {
2427
+ [propName: string]: any;
2428
+ }) | undefined;
2429
+ rotate?: (boolean | {
2430
+ [propName: string]: any;
2431
+ }) | undefined;
2432
+ pip?: (boolean | {
2433
+ [propName: string]: any;
2434
+ }) | undefined;
2435
+ download?: (boolean | {
2436
+ [propName: string]: any;
2437
+ }) | undefined;
2438
+ mini?: (boolean | {
2439
+ [propName: string]: any;
2440
+ }) | undefined;
2441
+ cssFullscreen?: (boolean | {
2442
+ [propName: string]: any;
2443
+ }) | undefined;
2444
+ keyShortcut?: boolean | undefined;
2445
+ presets?: any[] | undefined;
2446
+ plugins?: any[] | undefined;
2447
+ playbackRate?: (boolean | number[] | {
2448
+ [propName: string]: any;
2449
+ }) | undefined;
2450
+ definition?: {
2451
+ [x: string]: any;
2452
+ list: {
2453
+ [x: string]: any;
2454
+ url: string | {
2455
+ readonly active: boolean;
2456
+ readonly id: string;
2457
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
2458
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
2459
+ addTrack: (track: MediaStreamTrack) => void;
2460
+ clone: () => MediaStream;
2461
+ getAudioTracks: () => MediaStreamTrack[];
2462
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
2463
+ getTracks: () => MediaStreamTrack[];
2464
+ getVideoTracks: () => MediaStreamTrack[];
2465
+ removeTrack: (track: MediaStreamTrack) => void;
2466
+ addEventListener: {
2467
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2468
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
2469
+ };
2470
+ removeEventListener: {
2471
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2472
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
2473
+ };
2474
+ dispatchEvent: (event: Event) => boolean;
2475
+ } | {
2476
+ [x: string]: any;
2477
+ src: string;
2478
+ type?: string | undefined;
2479
+ }[];
2480
+ definition: any;
2481
+ bitrate?: number | undefined;
2482
+ bandwidth?: number | undefined;
2483
+ text?: (string | {
2484
+ [propName: string]: any;
2485
+ }) | undefined;
2486
+ iconText?: (string | {
2487
+ [propName: string]: any;
2488
+ }) | undefined;
2489
+ }[];
2490
+ defaultDefinition?: import("xgplayer/es/defaultConfig").IDefinition["definition"];
2491
+ } | undefined;
2492
+ playsinline?: boolean | undefined;
2493
+ customDuration?: number | undefined;
2494
+ timeOffset?: number | undefined;
2495
+ icons?: {
2496
+ [propName: string]: string | HTMLElement | (() => HTMLElement | string);
2497
+ } | undefined;
2498
+ i18n?: Array<any> | undefined;
2499
+ tabindex?: number | undefined;
2500
+ thumbnail?: {
2501
+ urls: Array<string>;
2502
+ pic_num: number;
2503
+ col: number;
2504
+ row: number;
2505
+ height?: number | undefined;
2506
+ width?: number | undefined;
2507
+ } | undefined;
2508
+ videoConfig?: {
2509
+ [propName: string]: any;
2510
+ } | undefined;
2511
+ isHideTips?: boolean | undefined;
2512
+ minWaitDelay?: number | undefined;
2513
+ commonStyle?: {
2514
+ progressColor?: string | undefined;
2515
+ playedColor?: string | undefined;
2516
+ cachedColor?: string | undefined;
2517
+ sliderBtnStyle?: {
2518
+ [propName: string]: any;
2519
+ } | undefined;
2520
+ volumeColor?: string | undefined;
2521
+ } | undefined;
2522
+ remainMediaAfterDestroy?: boolean | undefined;
2523
+ };
2524
+ readonly pluginName: string;
2525
+ afterCreate: () => void;
2526
+ beforePlayerInit: () => void;
2527
+ onPluginsReady: () => void;
2528
+ afterPlayerInit: () => void;
2529
+ destroy: () => void;
2530
+ logger: any;
2531
+ readonly lang: string;
2532
+ readonly i18n: {
2533
+ LANG: string;
2534
+ TEXT: {
2535
+ [propName: string]: any;
2536
+ };
2537
+ };
2538
+ readonly i18nKeys: {
2539
+ [propName: string]: string;
2540
+ };
2541
+ readonly domEventType: "touch" | "mouse";
2542
+ on: (event: string | Array<string>, callback: Function) => void;
2543
+ once: (event: string, callback: Function) => void;
2544
+ off: (event: string, callback: Function) => void;
2545
+ offAll: () => void;
2546
+ emit: (event: string, ...res: any[]) => void;
2547
+ emitUserAction: (event: any, action: any, params?: {}) => void;
2548
+ hook: (hookName: string, handler: Function, preset?: {
2549
+ pre: Function | null;
2550
+ next: Function | null;
2551
+ }, ...args: any[]) => any;
2552
+ useHooks: (hookName: string, handler: (plugin: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
2553
+ removeHooks: (hookName: string, handler: (plugin: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
2554
+ getPlugin: (name: string) => any | null;
2555
+ __destroy: () => void;
2556
+ } | null;
2557
+ readonly topBar: null | HTMLElement;
2558
+ readonly root: null | HTMLElement;
2559
+ __i18n: {
2560
+ lang: {
2561
+ [propName: string]: import("xgplayer/es/lang/i18n").IXGI18nText;
2562
+ };
2563
+ langKeys: Array<string>;
2564
+ textKeys: {
2565
+ [propName: string]: string;
2566
+ };
2567
+ };
2568
+ readonly database: any;
2569
+ readonly isUserActive: boolean;
2570
+ readonly innerStates: {
2571
+ isActiveLocked: boolean;
2572
+ };
2573
+ instManager: {
2574
+ add: (player: any) => void;
2575
+ remove: (player: any) => void;
2576
+ forEach: (fn: import("xgplayer/es/instManager").IterateFunction) => void;
2577
+ find: (fn: import("xgplayer/es/instManager").IterateFunction) => import("xgplayer/es/instManager").Player;
2578
+ findAll: (fn: import("xgplayer/es/instManager").IterateFunction) => import("xgplayer/es/instManager").Player[];
2579
+ setActive: (playerId: number | string, isActive?: boolean) => number | null;
2580
+ getActiveId: () => number | null;
2581
+ setNext: (playerId: number | string, isNext?: boolean) => number | null;
2582
+ eventNames: () => (string | symbol)[];
2583
+ listeners: <T extends string | symbol>(event: T) => ((...args: any[]) => void)[];
2584
+ listenerCount: (event: string | symbol) => number;
2585
+ emit: <T extends string | symbol>(event: T, ...args: any[]) => boolean;
2586
+ on: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => import("xgplayer").InstManager;
2587
+ addListener: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => import("xgplayer").InstManager;
2588
+ once: <T extends string | symbol>(event: T, fn: (...args: any[]) => void, context?: any) => import("xgplayer").InstManager;
2589
+ removeListener: <T extends string | symbol>(event: T, fn?: ((...args: any[]) => void) | undefined, context?: any, once?: boolean) => import("xgplayer").InstManager;
2590
+ off: <T extends string | symbol>(event: T, fn?: ((...args: any[]) => void) | undefined, context?: any, once?: boolean) => import("xgplayer").InstManager;
2591
+ removeAllListeners: (event?: string | symbol | undefined) => import("xgplayer").InstManager;
2592
+ };
2593
+ readonly leftBar: HTMLElement | null;
2594
+ readonly rightBar: HTMLElement | null;
2595
+ playFunc: () => void;
2596
+ _clearUserTimer: () => void;
2597
+ _startInit: (url?: any) => void;
2598
+ hasStart: boolean;
2599
+ registerPlugin: (plugin: Function | {
2600
+ plugin: Function;
2601
+ options: object;
2602
+ }, config?: {
2603
+ [propName: string]: any;
2604
+ }) => any;
2605
+ deregister: (plugin: any) => void;
2606
+ unRegisterPlugin: (plugin: any, removedFromConfig?: boolean) => void;
2607
+ removePluginFromConfig: (plugin: any) => void;
2608
+ readonly plugins: {
2609
+ [propName: string]: any;
2610
+ };
2611
+ getPlugin: (pluginName: string) => null | any;
2612
+ addClass: (className: string) => void;
2613
+ removeClass: (className: string) => void;
2614
+ hasClass: (className: string) => boolean;
2615
+ setAttribute: (key: string, value: any) => void;
2616
+ removeAttribute: (key: string, value: any) => void;
2617
+ start: (url?: any) => Promise<void> | void;
2618
+ switchURL: (url: string | object, options?: import("xgplayer/es/player").SwitchUrlOptions) => Promise<any> | null;
2619
+ videoPlay: () => void;
2620
+ mediaPlay: () => Promise<void>;
2621
+ mediaPause: () => void;
2622
+ videoPause: () => void;
2623
+ play: () => any;
2624
+ seek: (time: number, status?: "play" | "pause" | "auto") => void;
2625
+ currentTime: any;
2626
+ getInitDefinition: () => void;
2627
+ changeDefinition: (to: import("xgplayer/es/defaultConfig").IDefinition, from?: import("xgplayer/es/defaultConfig").IDefinition) => void;
2628
+ reload: () => void;
2629
+ resetState: () => void;
2630
+ reset: (unregisterPlugins?: Array<string>, isResetConfig?: boolean) => void;
2631
+ replay: () => void;
2632
+ retry: () => void;
2633
+ changeFullStyle: (root: HTMLElement, el?: HTMLElement, rootClass?: string, pClassName?: string) => void;
2634
+ recoverFullStyle: (root: HTMLElement, el?: HTMLElement, rootClass?: string, pClassName?: string) => void;
2635
+ getFullscreen: (el?: HTMLElement) => Promise<void>;
2636
+ exitFullscreen: (el?: HTMLElement) => Promise<void>;
2637
+ getCssFullscreen: (el?: HTMLElement) => void;
2638
+ exitCssFullscreen: () => void;
2639
+ getRotateFullscreen: (el?: HTMLElement) => void;
2640
+ _rootStyle: string | boolean;
2641
+ exitRotateFullscreen: (el?: HTMLElement) => void;
2642
+ setRotateDeg: (deg: any) => void;
2643
+ focus: (data?: {
2644
+ autoHide?: boolean;
2645
+ delay?: number;
2646
+ isLock?: boolean;
2647
+ }) => void;
2648
+ blur: (data?: {
2649
+ ignorePaused?: boolean;
2650
+ }) => void;
2651
+ canPlayFunc: () => void;
2652
+ onFullscreenChange: (event: any, isFullScreen: any) => void;
2653
+ _onWebkitbeginfullscreen: (e: any) => void;
2654
+ _onWebkitendfullscreen: (e: any) => void;
2655
+ onEmptied: () => void;
2656
+ onLoadeddata: () => void;
2657
+ onLoadstart: () => void;
2658
+ onVolumechange: () => void;
2659
+ onRatechange: () => void;
2660
+ emitUserAction: (event: Event, action: string, params: any) => void;
2661
+ updateAcc: (endType: any) => void;
2662
+ checkBuffer: (time: number, options?: {
2663
+ startDiff: number;
2664
+ endDiff: number;
2665
+ }) => boolean;
2666
+ resizePosition: () => void;
2667
+ position: (pos?: {
2668
+ h: number;
2669
+ y?: number;
2670
+ x?: number;
2671
+ w?: number;
2672
+ }) => void;
2673
+ setConfig: (config: import("xgplayer/es/player").IPlayerOptions) => void;
2674
+ playNext: (config: import("xgplayer/es/player").IPlayerOptions) => void;
2675
+ resize: () => void;
2676
+ updateObjectPosition: (left?: number, top?: number) => void;
2677
+ preProcessUrl: (url: import("xgplayer/es/player").IUrl, ext?: {
2678
+ [propName: string]: any;
2679
+ }) => import("xgplayer/es/defaultConfig").IUrl;
2680
+ _seekToStartTime: () => void;
2681
+ readonly state: number;
2682
+ readonly isFullscreen: boolean;
2683
+ readonly isCssfullScreen: boolean;
2684
+ isPlaying: boolean;
2685
+ definitionList: {
2686
+ [x: string]: any;
2687
+ url: string | {
2688
+ readonly active: boolean;
2689
+ readonly id: string;
2690
+ onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
2691
+ onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
2692
+ addTrack: (track: MediaStreamTrack) => void;
2693
+ clone: () => MediaStream;
2694
+ getAudioTracks: () => MediaStreamTrack[];
2695
+ getTrackById: (trackId: string) => MediaStreamTrack | null;
2696
+ getTracks: () => MediaStreamTrack[];
2697
+ getVideoTracks: () => MediaStreamTrack[];
2698
+ removeTrack: (track: MediaStreamTrack) => void;
2699
+ addEventListener: {
2700
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2701
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
2702
+ };
2703
+ removeEventListener: {
2704
+ <K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2705
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
2706
+ };
2707
+ dispatchEvent: (event: Event) => boolean;
2708
+ } | {
2709
+ [x: string]: any;
2710
+ src: string;
2711
+ type?: string | undefined;
2712
+ }[];
2713
+ definition: any;
2714
+ bitrate?: number | undefined;
2715
+ bandwidth?: number | undefined;
2716
+ text?: (string | {
2717
+ [propName: string]: any;
2718
+ }) | undefined;
2719
+ iconText?: (string | {
2720
+ [propName: string]: any;
2721
+ }) | undefined;
2722
+ }[];
2723
+ readonly videoFrameInfo: {
2724
+ total: number;
2725
+ dropped: number;
2726
+ corrupted: number;
2727
+ droppedRate: number;
2728
+ droppedDuration: number;
2729
+ };
2730
+ lang: string;
2731
+ readonly i18n: {
2732
+ LANG: string;
2733
+ TEXT: {
2734
+ [propName: string]: any;
2735
+ };
2736
+ };
2737
+ readonly i18nKeys: {
2738
+ [propName: string]: string;
2739
+ };
2740
+ readonly version: string;
2741
+ readonly playerId: string | number;
2742
+ url: any;
2743
+ poster: any;
2744
+ readonly error: any;
2745
+ readonly fullscreenChanging: boolean;
2746
+ readonly cumulateTime: number;
2747
+ zoom: number;
2748
+ videoRotateDeg: number;
2749
+ avgSpeed: number;
2750
+ realTimeSpeed: number;
2751
+ offsetCurrentTime: number;
2752
+ offsetDuration: number;
2753
+ hook: (hookName: string, handler: Function, preset?: {
2754
+ pre: Function | null;
2755
+ next: Function | null;
2756
+ }, ...args: any[]) => any;
2757
+ useHooks: (hookName: string, handler: (player: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
2758
+ removeHooks: (hookName: string, handler: (player: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => any;
2759
+ usePluginHooks: (pluginName: string, hookName: string, handler: (plugin: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
2760
+ removePluginHooks: (pluginName: string, hookName: string, handler: (plugin: any, ...args: any[]) => boolean | Promise<any>, ...args: any[]) => boolean;
2761
+ setUserActive: (isActive: boolean, isMuted?: boolean) => void;
2762
+ vtype: string;
2763
+ mediaConfig: {
2764
+ [propName: string]: any;
2765
+ };
2766
+ media: HTMLElement | HTMLVideoElement | HTMLAudioElement | {
2767
+ duration: number;
2768
+ currentTime: number;
2769
+ muted: boolean;
2770
+ defaultMuted: boolean;
2771
+ volume: number;
2772
+ playbackRate: number;
2773
+ defaultPlaybackRate: number;
2774
+ autoplay: boolean;
2775
+ readonly paused: boolean;
2776
+ readonly ended: boolean;
2777
+ readonly networkState: number;
2778
+ readonly readyState: number;
2779
+ readonly seeking: boolean;
2780
+ src: any;
2781
+ play: Function;
2782
+ pause: Function;
2783
+ } | null;
2784
+ volume: number;
2785
+ readonly mediaEventMiddleware: {};
2786
+ setEventsMiddleware: (middlewares: {
2787
+ [propName: string]: (e: {
2788
+ player: any;
2789
+ eventName: string;
2790
+ }, callback: () => void) => any;
2791
+ }) => void;
2792
+ removeEventsMiddleware: (middlewares: {
2793
+ [propName: string]: (e: {
2794
+ player: any;
2795
+ eventName: string;
2796
+ }, callback: () => void) => any;
2797
+ }) => void;
2798
+ attachVideoEvents: (media?: any) => void;
2799
+ detachVideoEvents: (media?: any) => void;
2800
+ _videoSourceIndex: number;
2801
+ _vLoadeddata: (e: any) => void;
2802
+ _sourceError: (e: any) => void;
2803
+ errorHandler: (name: any, error?: any) => void;
2804
+ destroy: () => void;
2805
+ video: HTMLElement | HTMLVideoElement | HTMLAudioElement | {
2806
+ duration: number;
2807
+ currentTime: number;
2808
+ muted: boolean;
2809
+ defaultMuted: boolean;
2810
+ volume: number;
2811
+ playbackRate: number;
2812
+ defaultPlaybackRate: number;
2813
+ autoplay: boolean;
2814
+ readonly paused: boolean;
2815
+ readonly ended: boolean;
2816
+ readonly networkState: number;
2817
+ readonly readyState: number;
2818
+ readonly seeking: boolean;
2819
+ src: any;
2820
+ play: Function;
2821
+ pause: Function;
2822
+ };
2823
+ pause: () => void;
2824
+ load: () => void;
2825
+ canPlayType: (type: string) => boolean;
2826
+ getBufferedRange: (buffered?: any) => Array<number>;
2827
+ autoplay: any;
2828
+ readonly buffered: {
2829
+ readonly length: number;
2830
+ end: (index: number) => number;
2831
+ start: (index: number) => number;
2832
+ };
2833
+ readonly buffered2: {
2834
+ start: number;
2835
+ end: number;
2836
+ }[];
2837
+ readonly bufferedPoint: {
2838
+ start: number;
2839
+ end: number;
2840
+ };
2841
+ crossOrigin: string;
2842
+ currentSrc: string;
2843
+ defaultMuted: boolean;
2844
+ readonly duration: number;
2845
+ readonly ended: boolean;
2846
+ readonly errorNote: string;
2847
+ loop: boolean;
2848
+ muted: boolean;
2849
+ readonly networkState: 0 | 1 | 2 | 3;
2850
+ readonly paused: boolean;
2851
+ playbackRate: number;
2852
+ readonly played: {
2853
+ readonly length: number;
2854
+ end: (index: number) => number;
2855
+ start: (index: number) => number;
2856
+ };
2857
+ preload: boolean;
2858
+ readonly readyState: 0 | 1 | 2 | 3 | 4;
2859
+ readonly seekable: boolean;
2860
+ readonly seeking: boolean;
2861
+ src: any;
2862
+ readonly aspectRatio: number;
2863
+ addInnerOP: (event: any) => void;
2864
+ removeInnerOP: (event: any) => void;
2865
+ emit: (event: string, data?: any, ...args: any[]) => void;
2866
+ on: (event: string, callback: (...args: any[]) => any, ...args: any[]) => void;
2867
+ once: (event: string, callback: (...args: any[]) => any, ...args: any[]) => void;
2868
+ off: (event: string, callback: (...args: any[]) => any, ...args: any[]) => void;
2869
+ offAll: () => void;
2870
+ } | null>;
14
2871
  videoUrl: import("vue").ComputedRef<any>;
15
2872
  play: () => void;
16
2873
  destroy: () => void;
2874
+ checkPluginSupport: () => any[];
2875
+ createPlayerConfig: (plugins: any[]) => {
2876
+ el: HTMLElement;
2877
+ url: any;
2878
+ height: string;
2879
+ width: string;
2880
+ autoplay: boolean;
2881
+ autoplayMuted: boolean;
2882
+ videoInit: boolean;
2883
+ plugins: any[];
2884
+ ignores: string[];
2885
+ marginControls: boolean;
2886
+ screenShot: any;
2887
+ lang: string;
2888
+ videoAttributes: {
2889
+ crossOrigin: string;
2890
+ };
2891
+ };
17
2892
  createXgPlayer: () => void;
18
2893
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
2894
  url: {