@flowplayer/player 3.14.1 → 3.15.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/events.d.ts +575 -68
- package/core/events.js +286 -34
- package/core.js +1 -1
- package/default.js +1 -1
- package/embed.js +2 -2
- package/flowplayer.css +1 -1
- package/index.d.ts +1480 -91
- package/package.json +1 -1
- package/plugins/ads.d.ts +3744 -112
- package/plugins/ads.js +1 -1
- package/plugins/airplay.d.ts +1440 -116
- package/plugins/airplay.js +1 -1
- package/plugins/analytics.d.ts +1409 -82
- package/plugins/analytics.js +1 -1
- package/plugins/asel.d.ts +1409 -82
- package/plugins/asel.js +1 -1
- package/plugins/audio.d.ts +1409 -82
- package/plugins/audio.js +1 -1
- package/plugins/chapters.d.ts +1409 -82
- package/plugins/chapters.js +1 -1
- package/plugins/chromecast.d.ts +1464 -80
- package/plugins/chromecast.js +1 -1
- package/plugins/comscore.d.ts +1409 -82
- package/plugins/consent.d.ts +1409 -82
- package/plugins/consent.js +1 -1
- package/plugins/context-menu.d.ts +1443 -116
- package/plugins/cuepoints.d.ts +1443 -116
- package/plugins/cuepoints.js +1 -1
- package/plugins/dash.d.ts +1445 -115
- package/plugins/dash.js +1 -1
- package/plugins/drm.d.ts +1409 -82
- package/plugins/drm.js +1 -1
- package/plugins/endscreen.d.ts +1442 -115
- package/plugins/endscreen.js +1 -1
- package/plugins/fas.d.ts +1409 -82
- package/plugins/float-on-scroll.d.ts +1443 -116
- package/plugins/float-on-scroll.js +1 -1
- package/plugins/ga4.d.ts +1409 -82
- package/plugins/gemius.d.ts +1439 -112
- package/plugins/google-analytics.d.ts +1409 -82
- package/plugins/health.d.ts +1435 -107
- package/plugins/health.js +1 -1
- package/plugins/hls.d.ts +1431 -104
- package/plugins/hls.js +1 -1
- package/plugins/id3.d.ts +1409 -82
- package/plugins/id3.js +1 -1
- package/plugins/iframe.d.ts +1440 -116
- package/plugins/iframe.js +1 -1
- package/plugins/keyboard.d.ts +1409 -82
- package/plugins/media-session.d.ts +1409 -82
- package/plugins/message.d.ts +1409 -82
- package/plugins/message.js +1 -1
- package/plugins/ovp.d.ts +1435 -110
- package/plugins/ovp.js +1 -1
- package/plugins/playlist.d.ts +1409 -82
- package/plugins/playlist.js +1 -1
- package/plugins/preview.d.ts +1409 -82
- package/plugins/preview.js +1 -1
- package/plugins/qsel.d.ts +1409 -82
- package/plugins/qsel.js +1 -1
- package/plugins/qul.d.ts +1441 -114
- package/plugins/qul.js +1 -1
- package/plugins/rts.d.ts +1409 -82
- package/plugins/rts.js +1 -1
- package/plugins/share.d.ts +1409 -82
- package/plugins/share.js +1 -1
- package/plugins/speed.d.ts +1434 -107
- package/plugins/speed.js +1 -1
- package/plugins/ssai.d.ts +1412 -82
- package/plugins/ssai.js +1 -1
- package/plugins/subtitles.d.ts +1426 -102
- package/plugins/thumbnails.d.ts +1434 -107
- package/plugins/thumbnails.js +1 -1
- package/plugins/tizen.d.ts +1409 -82
- package/plugins/tizen.js +1 -1
- package/plugins/vtsel.d.ts +1409 -82
- package/plugins/vtsel.js +1 -1
- package/plugins/webos.d.ts +1409 -82
- package/plugins/webos.js +1 -1
- package/util/loader.d.ts +1436 -101
- package/util/loader.js +13 -2
package/plugins/thumbnails.d.ts
CHANGED
|
@@ -1,10 +1,31 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
import type { BitrateInfo } from 'dashjs';
|
|
1
4
|
import type { MediaKeyFunc } from 'hls.js';
|
|
2
5
|
|
|
6
|
+
/* Excluded from this release type: AnyLoader */
|
|
7
|
+
|
|
3
8
|
declare type ArrayToIntersection<T extends Array<unknown>> = T extends [
|
|
4
9
|
infer Current,
|
|
5
10
|
...infer Remaining
|
|
6
11
|
] ? Current & ArrayToIntersection<Remaining> : unknown;
|
|
7
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Each loader must
|
|
15
|
+
*/
|
|
16
|
+
declare type _AttachedEventCheck = {
|
|
17
|
+
on(event: `${string}:attached`, handler: (e: FPEvent<unknown>) => void): Player;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/* Excluded from this release type: AUDIO_ONLY_SOURCE */
|
|
21
|
+
|
|
22
|
+
/* Excluded from this release type: AudioOnlySourceEventDetail */
|
|
23
|
+
|
|
24
|
+
declare const AUTOPLAY = "is-autoplay";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
8
29
|
declare type Autoplay = BitOpts | boolean;
|
|
9
30
|
|
|
10
31
|
declare enum AutoplayOpts {
|
|
@@ -13,19 +34,60 @@ declare enum AutoplayOpts {
|
|
|
13
34
|
AUDIO_REQUIRED = 2
|
|
14
35
|
}
|
|
15
36
|
|
|
16
|
-
|
|
37
|
+
/* Excluded from this release type: BEFORE_PAUSE */
|
|
17
38
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
39
|
+
/* Excluded from this release type: BEFORE_PLAY */
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
declare type BeforePauseEventDetail = {
|
|
45
|
+
forced: boolean;
|
|
21
46
|
};
|
|
22
47
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
48
|
+
/**
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
declare type BeforePlayEventDetail = {
|
|
52
|
+
forced: boolean;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
declare type BitOpts = number;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
declare const /**
|
|
64
|
+
@public
|
|
65
|
+
* when a new player is inserted into the HTML
|
|
66
|
+
*/ /**
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
CAN_PLAY = "canplay";
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
declare const /**
|
|
75
|
+
@public
|
|
76
|
+
* when a new player is inserted into the HTML
|
|
77
|
+
*/ /**
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
CLICK = "click";
|
|
81
|
+
|
|
82
|
+
/* Excluded from this release type: Component */
|
|
28
83
|
|
|
84
|
+
/* Excluded from this release type: Components */
|
|
85
|
+
|
|
86
|
+
/* Excluded from this release type: CONFIG */
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
29
91
|
declare interface Config {
|
|
30
92
|
src?: UnsafeSource;
|
|
31
93
|
preload?: "none" | "metadata" | "auto";
|
|
@@ -35,7 +97,7 @@ declare interface Config {
|
|
|
35
97
|
autopause?: boolean;
|
|
36
98
|
rewind?: boolean;
|
|
37
99
|
loop?: boolean;
|
|
38
|
-
seamless
|
|
100
|
+
/* Excluded from this release type: seamless */
|
|
39
101
|
retry?: boolean;
|
|
40
102
|
autoplay?: Autoplay;
|
|
41
103
|
start_quality?: BitOpts;
|
|
@@ -43,10 +105,7 @@ declare interface Config {
|
|
|
43
105
|
poster?: string;
|
|
44
106
|
disabled?: boolean;
|
|
45
107
|
muted?: boolean;
|
|
46
|
-
|
|
47
|
-
* is src handled by one of plugins loaders
|
|
48
|
-
*/
|
|
49
|
-
is_native?: boolean;
|
|
108
|
+
/* Excluded from this release type: is_native */
|
|
50
109
|
/**
|
|
51
110
|
* bitflags for UI options
|
|
52
111
|
*/
|
|
@@ -55,10 +114,7 @@ declare interface Config {
|
|
|
55
114
|
* your user access token
|
|
56
115
|
*/
|
|
57
116
|
token?: string;
|
|
58
|
-
|
|
59
|
-
* manually configured duration for pre-rendering usually
|
|
60
|
-
*/
|
|
61
|
-
duration?: number;
|
|
117
|
+
/* Excluded from this release type: duration */
|
|
62
118
|
/**
|
|
63
119
|
* can the content be seeked to any position
|
|
64
120
|
*/
|
|
@@ -76,15 +132,120 @@ declare interface Config {
|
|
|
76
132
|
seconds_to_dvr?: number;
|
|
77
133
|
}
|
|
78
134
|
|
|
135
|
+
/* Excluded from this release type: ConfigEventDetail */
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
79
140
|
declare type ConfigWith<T> = Config & T;
|
|
80
141
|
|
|
81
|
-
|
|
82
|
-
|
|
142
|
+
/* Excluded from this release type: CONTENT_REAL_LOAD_START */
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @public
|
|
146
|
+
*/
|
|
147
|
+
declare const /**
|
|
148
|
+
@public
|
|
149
|
+
* when a new player is inserted into the HTML
|
|
150
|
+
*/ /**
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
CONTEXT_MENU = "contextmenu";
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @public
|
|
157
|
+
*/
|
|
158
|
+
declare type ContextMenuEventDetail = null;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* @public
|
|
162
|
+
* when a cuepoint becomes inactive
|
|
163
|
+
*/
|
|
164
|
+
declare const /**
|
|
165
|
+
@public
|
|
166
|
+
* when a new player is inserted into the HTML
|
|
167
|
+
*/ /**
|
|
168
|
+
* @public
|
|
169
|
+
* when a cuepoint becomes inactive
|
|
170
|
+
*/
|
|
171
|
+
CUEPOINT_END = "cuepointend";
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @public
|
|
175
|
+
* when a cuepoint is active
|
|
176
|
+
*/
|
|
177
|
+
declare const /**
|
|
178
|
+
@public
|
|
179
|
+
* when a new player is inserted into the HTML
|
|
180
|
+
*/ /**
|
|
181
|
+
* @public
|
|
182
|
+
* when a cuepoint is active
|
|
183
|
+
*/
|
|
184
|
+
CUEPOINT_START = "cuepointstart";
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
declare type CuePointEndEventDetail = null;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* @public
|
|
193
|
+
* cuepoints parsing is asynchronous
|
|
194
|
+
* you cannot rely on them existing until
|
|
195
|
+
* this event is emitted
|
|
196
|
+
*/
|
|
197
|
+
declare const /**
|
|
198
|
+
@public
|
|
199
|
+
* when a new player is inserted into the HTML
|
|
200
|
+
*/ /**
|
|
201
|
+
* @public
|
|
202
|
+
* cuepoints parsing is asynchronous
|
|
203
|
+
* you cannot rely on them existing until
|
|
204
|
+
* this event is emitted
|
|
205
|
+
*/
|
|
206
|
+
CUEPOINTS = "cuepoints";
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @public
|
|
210
|
+
*/
|
|
211
|
+
declare type CuePointStartEventDetail = null;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @public
|
|
215
|
+
*/
|
|
216
|
+
declare const /**
|
|
217
|
+
@public
|
|
218
|
+
* when a new player is inserted into the HTML
|
|
219
|
+
*/ /**
|
|
220
|
+
* @public
|
|
221
|
+
*/
|
|
222
|
+
DATA = "loadeddata";
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @public
|
|
226
|
+
*/
|
|
227
|
+
declare const /**
|
|
228
|
+
@public
|
|
229
|
+
* when a new player is inserted into the HTML
|
|
230
|
+
*/ /**
|
|
231
|
+
* @public
|
|
232
|
+
*/
|
|
233
|
+
DBL_CLICK = "dblclick";
|
|
234
|
+
|
|
235
|
+
declare const DESTROYED = "is-destroyed";
|
|
83
236
|
|
|
84
|
-
|
|
237
|
+
/* Excluded from this release type: DeviceId */
|
|
85
238
|
|
|
239
|
+
declare const DISABLED = "is-disabled";
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @public
|
|
243
|
+
*/
|
|
86
244
|
declare type DRM_KEYSYSTEM = "com.widevine.alpha" | "com.microsoft.playready" | "org.w3.clearkey" | "com.apple.fps.1_0";
|
|
87
245
|
|
|
246
|
+
/**
|
|
247
|
+
* @public
|
|
248
|
+
*/
|
|
88
249
|
declare type DRMConfiguration = {
|
|
89
250
|
license_server: string;
|
|
90
251
|
http_headers?: Record<string, string>;
|
|
@@ -94,10 +255,16 @@ declare type DRMConfiguration = {
|
|
|
94
255
|
query_params?: Record<string, string>;
|
|
95
256
|
};
|
|
96
257
|
|
|
258
|
+
/**
|
|
259
|
+
* @public
|
|
260
|
+
*/
|
|
97
261
|
declare type DRMSourceConfiguration = {
|
|
98
262
|
[keysystem in DRM_KEYSYSTEM]?: DRMConfiguration;
|
|
99
263
|
};
|
|
100
264
|
|
|
265
|
+
/**
|
|
266
|
+
* @public
|
|
267
|
+
*/
|
|
101
268
|
declare type DRMVendorImplementation = {
|
|
102
269
|
fairplay_fetch_certificate: (url: string, cb: (certificate_data: Uint8Array) => void) => void;
|
|
103
270
|
fairplay_request_license: (url: string, params: {
|
|
@@ -106,41 +273,229 @@ declare type DRMVendorImplementation = {
|
|
|
106
273
|
}, cb: (license_data: Uint8Array) => void) => void;
|
|
107
274
|
};
|
|
108
275
|
|
|
276
|
+
/**
|
|
277
|
+
* @public
|
|
278
|
+
*/
|
|
279
|
+
declare const /**
|
|
280
|
+
@public
|
|
281
|
+
* when a new player is inserted into the HTML
|
|
282
|
+
*/ /**
|
|
283
|
+
* @public
|
|
284
|
+
*/
|
|
285
|
+
DURATION_CHANGE = "durationchange";
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* @public
|
|
289
|
+
* when the player has started playing dvr content
|
|
290
|
+
*/
|
|
291
|
+
declare const /**
|
|
292
|
+
@public
|
|
293
|
+
* when a new player is inserted into the HTML
|
|
294
|
+
*/ /**
|
|
295
|
+
* @public
|
|
296
|
+
* when the player has started playing dvr content
|
|
297
|
+
*/
|
|
298
|
+
DVR = "dvr";
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* @public
|
|
302
|
+
*/
|
|
303
|
+
declare type DvrEventDetail = number;
|
|
304
|
+
|
|
305
|
+
declare const ENDED = "is-ended";
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* @public
|
|
309
|
+
*/
|
|
310
|
+
declare const /**
|
|
311
|
+
@public
|
|
312
|
+
* when a new player is inserted into the HTML
|
|
313
|
+
*/ /**
|
|
314
|
+
* @public
|
|
315
|
+
*/
|
|
316
|
+
ENDED_2 = "ended";
|
|
317
|
+
|
|
318
|
+
declare type EnsureOnAttached<P extends Function, T extends Player> = ExtractPureAPI<T> extends _AttachedEventCheck ? P : "Loaders must implement on('<pluginname>:attached') event";
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* @public
|
|
322
|
+
*/
|
|
323
|
+
declare const /**
|
|
324
|
+
@public
|
|
325
|
+
* when a new player is inserted into the HTML
|
|
326
|
+
*/ /**
|
|
327
|
+
* @public
|
|
328
|
+
*/
|
|
329
|
+
ERROR = "error";
|
|
330
|
+
|
|
331
|
+
declare const ERRORED = "is-error";
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* @public
|
|
335
|
+
*/
|
|
336
|
+
declare type ErrorEventDetail = {
|
|
337
|
+
src?: string;
|
|
338
|
+
type?: string;
|
|
339
|
+
code?: number | string;
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
/* Excluded from this release type: _ErrorEventDetail */
|
|
343
|
+
|
|
344
|
+
declare namespace events {
|
|
345
|
+
export {
|
|
346
|
+
MOUNT,
|
|
347
|
+
ERROR,
|
|
348
|
+
CONTEXT_MENU,
|
|
349
|
+
CLICK,
|
|
350
|
+
DBL_CLICK,
|
|
351
|
+
KEYUP,
|
|
352
|
+
KEYDOWN,
|
|
353
|
+
LOAD,
|
|
354
|
+
MOUSE_ENTER,
|
|
355
|
+
MOUSE_LEAVE,
|
|
356
|
+
MOUSE_UP,
|
|
357
|
+
MOUSE_DOWN,
|
|
358
|
+
MOUSE_MOVE,
|
|
359
|
+
TOUCH_START,
|
|
360
|
+
TOUCH_MOVE,
|
|
361
|
+
TOUCH_END,
|
|
362
|
+
TOUCH_CANCEL,
|
|
363
|
+
RESIZE,
|
|
364
|
+
SCROLL,
|
|
365
|
+
FULLSCREEN_ENTER,
|
|
366
|
+
FULLSCREEN_EXIT,
|
|
367
|
+
FULLSCREEN_CHANGE,
|
|
368
|
+
METADATA,
|
|
369
|
+
DATA,
|
|
370
|
+
PROGRESS,
|
|
371
|
+
TIME_UPDATE,
|
|
372
|
+
LOAD_START,
|
|
373
|
+
VOLUME_CHANGE,
|
|
374
|
+
PAUSE,
|
|
375
|
+
PLAYING_2 as PLAYING,
|
|
376
|
+
PLAY,
|
|
377
|
+
WAITING_2 as WAITING,
|
|
378
|
+
CAN_PLAY,
|
|
379
|
+
ENDED_2 as ENDED,
|
|
380
|
+
SEEKED,
|
|
381
|
+
SEEKING_2 as SEEKING,
|
|
382
|
+
DURATION_CHANGE,
|
|
383
|
+
CUEPOINTS,
|
|
384
|
+
CUEPOINT_START,
|
|
385
|
+
CUEPOINT_END,
|
|
386
|
+
VIEW_ENTER,
|
|
387
|
+
VIEW_LEAVE,
|
|
388
|
+
SOURCE,
|
|
389
|
+
REAP,
|
|
390
|
+
QUALITIES,
|
|
391
|
+
VIDEO_TRACKS,
|
|
392
|
+
SET_QUALITY,
|
|
393
|
+
VIDEO_TRACK_SELECT,
|
|
394
|
+
RECOMMENDATIONS_READY,
|
|
395
|
+
LANDSCAPE,
|
|
396
|
+
PORTRAIT,
|
|
397
|
+
DVR,
|
|
398
|
+
LIVE_2 as LIVE
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
declare type ExtractPureAPI<T> = T extends PlayerWith<infer PureAPI> ? PureAPI : never;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* @public
|
|
406
|
+
*/
|
|
109
407
|
declare type FlowplayerCustomElementRegistry = Map<string, string>;
|
|
110
408
|
|
|
409
|
+
/**
|
|
410
|
+
* @public
|
|
411
|
+
*/
|
|
412
|
+
declare type FlowplayerStates = typeof states;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* @public
|
|
416
|
+
*/
|
|
111
417
|
declare interface FlowplayerUMD extends FlowplayerUMDBase {
|
|
418
|
+
/**
|
|
419
|
+
* Configure flowplayer and display it in the UI
|
|
420
|
+
* @param selector - query selector of the HTML element where player will render
|
|
421
|
+
* @param config - configuration of flowplayer
|
|
422
|
+
*/
|
|
112
423
|
(selector: string, config?: Config): Player;
|
|
424
|
+
/**
|
|
425
|
+
* Configure flowplayer and display it in the UI
|
|
426
|
+
* @param element - HTML element where player will render
|
|
427
|
+
* @param config - configuration of flowplayer
|
|
428
|
+
*/
|
|
113
429
|
(element: HTMLElement, config?: Config): Player;
|
|
430
|
+
/**
|
|
431
|
+
* Configure flowplayer and display it in the UI
|
|
432
|
+
* @param selector - query selector of the HTML element where player will render
|
|
433
|
+
* @param config - configuration of flowplayer
|
|
434
|
+
*/
|
|
114
435
|
<T>(selector: string, config?: ConfigWith<T>): Player;
|
|
436
|
+
/**
|
|
437
|
+
* Configure flowplayer and display it in the UI
|
|
438
|
+
* @param element - HTML element where player will render
|
|
439
|
+
* @param config - configuration of flowplayer
|
|
440
|
+
*/
|
|
115
441
|
<T>(element: HTMLElement, config?: ConfigWith<T>): Player;
|
|
442
|
+
/**
|
|
443
|
+
* Register plugins in flowplayer
|
|
444
|
+
* @returns flowplayer instance with registered plugins
|
|
445
|
+
*/
|
|
116
446
|
<PluginCtors extends PluginCtor[]>(...plugins: PluginCtors): FlowplayerUMDWithPlugins<ConfigWith<MergeConfigs<PluginCtors>>, PlayerWith<MergePlayerAPIExtensions<PluginCtors>>>;
|
|
117
447
|
}
|
|
118
448
|
|
|
119
449
|
declare interface FlowplayerUMDBase {
|
|
450
|
+
/**
|
|
451
|
+
* All player instances on the page
|
|
452
|
+
*/
|
|
120
453
|
instances: Player[];
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
454
|
+
/**
|
|
455
|
+
* Flowplayer core events
|
|
456
|
+
*/
|
|
457
|
+
events: typeof events;
|
|
458
|
+
/**
|
|
459
|
+
* Flowplayer ui states map
|
|
460
|
+
*/
|
|
461
|
+
states: FlowplayerStates;
|
|
127
462
|
quality: typeof QualityOpts;
|
|
463
|
+
autoplay: typeof AutoplayOpts;
|
|
128
464
|
commit: string;
|
|
129
465
|
version: string;
|
|
466
|
+
/**
|
|
467
|
+
* Flowplayer's custom element registry
|
|
468
|
+
*/
|
|
130
469
|
customElements: FlowplayerCustomElementRegistry;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
470
|
+
/* Excluded from this release type: extensions */
|
|
471
|
+
/* Excluded from this release type: defaultElements */
|
|
472
|
+
/* Excluded from this release type: components */
|
|
473
|
+
/* Excluded from this release type: support */
|
|
474
|
+
/* Excluded from this release type: jwt */
|
|
475
|
+
/* Excluded from this release type: loaders */
|
|
137
476
|
}
|
|
138
477
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
478
|
+
/**
|
|
479
|
+
* @public
|
|
480
|
+
*/
|
|
481
|
+
declare interface FlowplayerUMDWithPlugins<ConfigWithPlugins extends Config = Config, PluginPlayer extends Player = Player> extends FlowplayerUMDBase {
|
|
482
|
+
/**
|
|
483
|
+
* Configure flowplayer, it's attached plugins and display flowplayer it in the UI
|
|
484
|
+
* @param selector - query selector of the HTML element where player will render
|
|
485
|
+
* @param config - Configuration of the flowplayer and the attached plugins
|
|
486
|
+
*/
|
|
487
|
+
(selector: string, config?: ConfigWithPlugins): PluginPlayer;
|
|
488
|
+
/**
|
|
489
|
+
* Configure flowplayer, it's attached plugins and display flowplayer it in the UI
|
|
490
|
+
* @param element - HTML element where player will render
|
|
491
|
+
* @param config - Configuration of the flowplayer and the attached plugins
|
|
492
|
+
*/
|
|
493
|
+
(element: HTMLElement, config?: ConfigWithPlugins): PluginPlayer;
|
|
142
494
|
}
|
|
143
495
|
|
|
496
|
+
/**
|
|
497
|
+
* @public
|
|
498
|
+
*/
|
|
144
499
|
declare interface FPEvent<T> extends CustomEvent<T> {
|
|
145
500
|
/**
|
|
146
501
|
* @deprecated
|
|
@@ -150,111 +505,918 @@ declare interface FPEvent<T> extends CustomEvent<T> {
|
|
|
150
505
|
data?: T;
|
|
151
506
|
}
|
|
152
507
|
|
|
508
|
+
declare const FULLSCREEN = "is-fullscreen";
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* @public
|
|
512
|
+
*/
|
|
513
|
+
declare const /**
|
|
514
|
+
@public
|
|
515
|
+
* when a new player is inserted into the HTML
|
|
516
|
+
*/ /**
|
|
517
|
+
* @public
|
|
518
|
+
*/
|
|
519
|
+
FULLSCREEN_CHANGE = "fullscreenchange";
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* @public
|
|
523
|
+
*/
|
|
524
|
+
declare const /**
|
|
525
|
+
@public
|
|
526
|
+
* when a new player is inserted into the HTML
|
|
527
|
+
*/ /**
|
|
528
|
+
* @public
|
|
529
|
+
*/
|
|
530
|
+
FULLSCREEN_ENTER = "fullscreenenter";
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* @public
|
|
534
|
+
*/
|
|
535
|
+
declare const /**
|
|
536
|
+
@public
|
|
537
|
+
* when a new player is inserted into the HTML
|
|
538
|
+
*/ /**
|
|
539
|
+
* @public
|
|
540
|
+
*/
|
|
541
|
+
FULLSCREEN_EXIT = "fullscreenexit";
|
|
542
|
+
|
|
543
|
+
declare const GRABBING = "is-grabbing";
|
|
544
|
+
|
|
545
|
+
declare const HAS_POSTER = "has-poster";
|
|
546
|
+
|
|
547
|
+
declare const HOVERED = "is-hovered";
|
|
548
|
+
|
|
549
|
+
declare const IN_VIEWPORT = "is-in-viewport";
|
|
550
|
+
|
|
551
|
+
/* Excluded from this release type: INTERSECTIONCHANGE */
|
|
552
|
+
|
|
553
|
+
/* Excluded from this release type: IntersectionChangeEventDetail */
|
|
554
|
+
|
|
555
|
+
declare const IS_SOURCE_PROCESSING = "is-source-processing";
|
|
556
|
+
|
|
153
557
|
declare type JSONPlayer = any;
|
|
154
558
|
|
|
559
|
+
/**
|
|
560
|
+
* @public
|
|
561
|
+
*/
|
|
562
|
+
declare const /**
|
|
563
|
+
@public
|
|
564
|
+
* when a new player is inserted into the HTML
|
|
565
|
+
*/ /**
|
|
566
|
+
* @public
|
|
567
|
+
*/
|
|
568
|
+
KEYDOWN = "keydown";
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* @public
|
|
572
|
+
*/
|
|
573
|
+
declare const /**
|
|
574
|
+
@public
|
|
575
|
+
* when a new player is inserted into the HTML
|
|
576
|
+
*/ /**
|
|
577
|
+
* @public
|
|
578
|
+
*/
|
|
579
|
+
KEYUP = "keyup";
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* @public
|
|
583
|
+
*/
|
|
155
584
|
declare type KeyValue = Record<string, any>;
|
|
156
585
|
|
|
157
|
-
|
|
158
|
-
|
|
586
|
+
/**
|
|
587
|
+
* @public
|
|
588
|
+
*/
|
|
589
|
+
declare const /**
|
|
590
|
+
@public
|
|
591
|
+
* when a new player is inserted into the HTML
|
|
592
|
+
*/ /**
|
|
593
|
+
* @public
|
|
594
|
+
*/
|
|
595
|
+
LANDSCAPE = "landscape";
|
|
596
|
+
|
|
597
|
+
declare const LIVE = "is-live";
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* @public
|
|
601
|
+
* when src is a livestream
|
|
602
|
+
*/
|
|
603
|
+
declare const /**
|
|
604
|
+
@public
|
|
605
|
+
* when a new player is inserted into the HTML
|
|
606
|
+
*/ /**
|
|
607
|
+
* @public
|
|
608
|
+
* when src is a livestream
|
|
609
|
+
*/
|
|
610
|
+
LIVE_2 = "live";
|
|
611
|
+
|
|
612
|
+
declare const LIVE_SEEKED = "is-live-seeked";
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* @public
|
|
616
|
+
*/
|
|
617
|
+
declare type LiveEventDetail = null;
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* @public
|
|
621
|
+
*/
|
|
622
|
+
declare const /**
|
|
623
|
+
@public
|
|
624
|
+
* when a new player is inserted into the HTML
|
|
625
|
+
*/ /**
|
|
626
|
+
* @public
|
|
627
|
+
*/
|
|
628
|
+
LOAD = "load";
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* @public
|
|
632
|
+
*/
|
|
633
|
+
declare const /**
|
|
634
|
+
@public
|
|
635
|
+
* when a new player is inserted into the HTML
|
|
636
|
+
*/ /**
|
|
637
|
+
* @public
|
|
638
|
+
*/
|
|
639
|
+
LOAD_START = "loadstart";
|
|
640
|
+
|
|
641
|
+
declare const LOADED = "is-loaded";
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* @public A plugin that supports loading new media formats. Use 'class MyPlugin implements Loader\<...\>' when writing your custom Loader
|
|
645
|
+
* @typeParam PluginPlayer- Player API that will be implemented by the loader. Loader at least must implement on(\<loader-name\>:attached, ...) event handler
|
|
646
|
+
*/
|
|
647
|
+
declare interface Loader<PluginOwnConfig extends KeyValue, // FIXME extends Config
|
|
648
|
+
PluginPlayer extends PlayerWith<_AttachedEventCheck>> extends Plugin_2<PluginOwnConfig, PluginPlayer> {
|
|
649
|
+
onload: EnsureOnAttached<(config: ConfigWith<PluginOwnConfig>, root: PlayerRoot, video: PlayerWith<PluginPlayer>, src: SourceObj) => void, PluginPlayer>;
|
|
159
650
|
wants<S = SourceObj>(srcString: SourceStr, srcObj: S, config: ConfigWith<PluginOwnConfig>): boolean;
|
|
160
651
|
wants<S = KeyValue>(srcString: SourceStr, srcObj: SourceWith<S>, config: ConfigWith<PluginOwnConfig>): boolean;
|
|
161
652
|
}
|
|
162
653
|
|
|
654
|
+
declare const LOADING = "is-loading";
|
|
655
|
+
|
|
163
656
|
declare type MapToConfigs<Arr extends PluginCtor[]> = {
|
|
164
|
-
[PluginType in keyof Arr]: Arr[PluginType] extends PluginCtor<infer ConfigType
|
|
657
|
+
[PluginType in keyof Arr]: Arr[PluginType] extends PluginCtor<ConfigWith<infer ConfigType>> ? ConfigType : never;
|
|
165
658
|
};
|
|
166
659
|
|
|
167
660
|
declare type MapToPlayerApiExtensions<Arr extends PluginCtor[]> = {
|
|
168
|
-
[PluginType in keyof Arr]: Arr[PluginType] extends PluginCtor<infer _uConfigType, infer PlayerAPIExtension
|
|
661
|
+
[PluginType in keyof Arr]: Arr[PluginType] extends PluginCtor<infer _uConfigType, PlayerWith<infer PlayerAPIExtension>> ? PlayerAPIExtension : never;
|
|
169
662
|
};
|
|
170
663
|
|
|
664
|
+
declare const MENU_OPENED = "has-menu-opened";
|
|
665
|
+
|
|
171
666
|
declare type MergeConfigs<Arr extends PluginCtor[]> = ArrayToIntersection<MapToConfigs<Arr>>;
|
|
172
667
|
|
|
173
668
|
declare type MergePlayerAPIExtensions<Arr extends PluginCtor[]> = ArrayToIntersection<MapToPlayerApiExtensions<Arr>>;
|
|
174
669
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
render(component: string, args: any[]): void;
|
|
190
|
-
createComponents(...args: string[]): HTMLElement[];
|
|
191
|
-
setOpts(config: Config): void;
|
|
192
|
-
setSrc(sources: UnsafeSource): Player;
|
|
193
|
-
on<T>(event: string | string[], handler: (e: FPEvent<T>) => void): Player;
|
|
194
|
-
once<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
195
|
-
off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
196
|
-
poll<T>(event: string, data?: T): FPEvent<T>;
|
|
197
|
-
emit<T>(event: string, data?: T): Player;
|
|
198
|
-
setAttrs(attrs: Config): Player;
|
|
199
|
-
opt<T>(key: string, fallback?: T): T;
|
|
200
|
-
enqueueSeek(offset: number): any;
|
|
201
|
-
setState(state: string, flag: boolean): Player;
|
|
202
|
-
toJSON(): JSONPlayer;
|
|
203
|
-
i18n(k: string, fallback?: string): string;
|
|
204
|
-
deviceId(): DeviceId;
|
|
205
|
-
live_state: {
|
|
206
|
-
dvr?: boolean;
|
|
207
|
-
dvr_window?: number;
|
|
208
|
-
};
|
|
209
|
-
opts: Config;
|
|
210
|
-
plugins: Array<Plugin_2 | Loader>;
|
|
211
|
-
dvr_offset?: number;
|
|
212
|
-
message?: {
|
|
213
|
-
events: Record<string, string>;
|
|
214
|
-
};
|
|
215
|
-
disabled: boolean;
|
|
216
|
-
started?: boolean;
|
|
217
|
-
token: string;
|
|
218
|
-
tracks?: VideoTrack[];
|
|
219
|
-
_customElements: FlowplayerCustomElementRegistry;
|
|
220
|
-
_storage: Storage;
|
|
221
|
-
}
|
|
670
|
+
/**
|
|
671
|
+
* @public
|
|
672
|
+
* general video events flowplayer uses internally
|
|
673
|
+
* https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events
|
|
674
|
+
*/
|
|
675
|
+
declare const /**
|
|
676
|
+
@public
|
|
677
|
+
* when a new player is inserted into the HTML
|
|
678
|
+
*/ /**
|
|
679
|
+
* @public
|
|
680
|
+
* general video events flowplayer uses internally
|
|
681
|
+
* https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events
|
|
682
|
+
*/
|
|
683
|
+
METADATA = "loadedmetadata";
|
|
222
684
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
685
|
+
/**
|
|
686
|
+
@public
|
|
687
|
+
* when a new player is inserted into the HTML
|
|
688
|
+
*/
|
|
689
|
+
declare const /**
|
|
690
|
+
@public
|
|
691
|
+
* when a new player is inserted into the HTML
|
|
692
|
+
*/ /**
|
|
693
|
+
@public
|
|
694
|
+
* when a new player is inserted into the HTML
|
|
695
|
+
*/ MOUNT = "mount";
|
|
226
696
|
|
|
227
|
-
|
|
697
|
+
/**
|
|
698
|
+
* @public
|
|
699
|
+
*/
|
|
700
|
+
declare type MountEventDetail = null;
|
|
228
701
|
|
|
229
|
-
|
|
702
|
+
/**
|
|
703
|
+
* @public
|
|
704
|
+
*/
|
|
705
|
+
declare const /**
|
|
706
|
+
@public
|
|
707
|
+
* when a new player is inserted into the HTML
|
|
708
|
+
*/ /**
|
|
709
|
+
* @public
|
|
710
|
+
*/
|
|
711
|
+
MOUSE_DOWN = "mousedown";
|
|
230
712
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
713
|
+
/**
|
|
714
|
+
* @public
|
|
715
|
+
*/
|
|
716
|
+
declare const /**
|
|
717
|
+
@public
|
|
718
|
+
* when a new player is inserted into the HTML
|
|
719
|
+
*/ /**
|
|
720
|
+
* @public
|
|
721
|
+
*/
|
|
722
|
+
MOUSE_ENTER = "mouseenter";
|
|
237
723
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
724
|
+
/**
|
|
725
|
+
* @public
|
|
726
|
+
*/
|
|
727
|
+
declare const /**
|
|
728
|
+
@public
|
|
729
|
+
* when a new player is inserted into the HTML
|
|
730
|
+
*/ /**
|
|
731
|
+
* @public
|
|
732
|
+
*/
|
|
733
|
+
MOUSE_LEAVE = "mouseleave";
|
|
241
734
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
735
|
+
/**
|
|
736
|
+
* @public
|
|
737
|
+
*/
|
|
738
|
+
declare const /**
|
|
739
|
+
@public
|
|
740
|
+
* when a new player is inserted into the HTML
|
|
741
|
+
*/ /**
|
|
742
|
+
* @public
|
|
743
|
+
*/
|
|
744
|
+
MOUSE_MOVE = "mousemove";
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* @public
|
|
748
|
+
*/
|
|
749
|
+
declare const /**
|
|
750
|
+
@public
|
|
751
|
+
* when a new player is inserted into the HTML
|
|
752
|
+
*/ /**
|
|
753
|
+
* @public
|
|
754
|
+
*/
|
|
755
|
+
MOUSE_UP = "mouseup";
|
|
756
|
+
|
|
757
|
+
declare const MUTED = "is-muted";
|
|
758
|
+
|
|
759
|
+
declare const NO_CONTROLS = "no-controls";
|
|
760
|
+
|
|
761
|
+
declare const NO_DVR = "no-timeline";
|
|
762
|
+
|
|
763
|
+
/* Excluded from this release type: NON_RECOVERABLE_ERROR */
|
|
764
|
+
|
|
765
|
+
/* Excluded from this release type: NonRecoverableErrorEventDetail */
|
|
766
|
+
|
|
767
|
+
/* Excluded from this release type: NQState */
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* @public
|
|
771
|
+
*/
|
|
772
|
+
declare type OVPMetadata = {
|
|
773
|
+
player_id?: string;
|
|
774
|
+
media_id?: string;
|
|
775
|
+
ad_keywords?: string;
|
|
776
|
+
title?: string;
|
|
777
|
+
description?: string;
|
|
778
|
+
category_name?: string;
|
|
779
|
+
duration?: number;
|
|
780
|
+
tags?: string;
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* @public
|
|
785
|
+
*/
|
|
786
|
+
declare const /**
|
|
787
|
+
@public
|
|
788
|
+
* when a new player is inserted into the HTML
|
|
789
|
+
*/ /**
|
|
790
|
+
* @public
|
|
791
|
+
*/
|
|
792
|
+
PAUSE = "pause";
|
|
793
|
+
|
|
794
|
+
declare const PAUSED = "is-paused";
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* @public
|
|
798
|
+
*/
|
|
799
|
+
declare const /**
|
|
800
|
+
@public
|
|
801
|
+
* when a new player is inserted into the HTML
|
|
802
|
+
*/ /**
|
|
803
|
+
* @public
|
|
804
|
+
*/
|
|
805
|
+
PLAY = "play";
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* @public
|
|
809
|
+
*/
|
|
810
|
+
declare type Player = HTMLVideoElement & PlayerEventOverloads & {
|
|
811
|
+
/* Excluded from this release type: renderPlugin */
|
|
812
|
+
/**
|
|
813
|
+
* Disables and enables the player.
|
|
814
|
+
* @param flag -Forces disabled mode (true) or enabled mode (false). Disabled player cannot be seeked forward.
|
|
815
|
+
*/
|
|
816
|
+
toggleDisable: (flag?: boolean) => void;
|
|
817
|
+
/* Excluded from this release type: original_src */
|
|
818
|
+
/**
|
|
819
|
+
* The root element of the video player. This is the immediate parent element of the video tag.
|
|
820
|
+
*/
|
|
821
|
+
root: PlayerRoot;
|
|
822
|
+
/* Excluded from this release type: playerState */
|
|
823
|
+
/* Excluded from this release type: reaper */
|
|
824
|
+
/* Excluded from this release type: hasState */
|
|
825
|
+
/* Excluded from this release type: transitionState */
|
|
826
|
+
/**
|
|
827
|
+
* Toggles between playing and paused mode.
|
|
828
|
+
* @param on - Forces the playback (true) or paused state (false). Use this for initial playback of a source configured with setSrc() and when changing the state.
|
|
829
|
+
*/
|
|
830
|
+
togglePlay(on?: boolean): Promise<void>;
|
|
831
|
+
/* Excluded from this release type: toggleFullScreen */
|
|
832
|
+
/**
|
|
833
|
+
* @public
|
|
834
|
+
* Toggles between normal and fullscreen mode. The optional flag attribute forces the normal sized (false) or fullscreen (false) mode.
|
|
835
|
+
* The custom fullscreenenter and fullscreenexit events are sent respectively.
|
|
836
|
+
*/
|
|
837
|
+
toggleFullScreen(on?: boolean): void;
|
|
838
|
+
/* Excluded from this release type: toggleMute */
|
|
839
|
+
/**
|
|
840
|
+
* Toggles between muted and original volume level.
|
|
841
|
+
*/
|
|
842
|
+
toggleMute(): void;
|
|
843
|
+
/**
|
|
844
|
+
* Removes a Flowplayer instance from `flowplayer.instances` and emits the `flowplayer.events.REAP` event, enabling cleanup of unsafe resources.
|
|
845
|
+
*/
|
|
846
|
+
destroy(): void;
|
|
847
|
+
/* Excluded from this release type: render */
|
|
848
|
+
/* Excluded from this release type: render */
|
|
849
|
+
createComponents(...args: string[]): HTMLElement[];
|
|
850
|
+
/**
|
|
851
|
+
* Adds or changes configuration object. Usually used in conjunction with `setSrc()`. You can use all top-level config options like `subtitle:` , `logo:`, `ima:` etc.
|
|
852
|
+
* @example
|
|
853
|
+
* ```
|
|
854
|
+
* setOpts({
|
|
855
|
+
* subtitles:{
|
|
856
|
+
* tracks:[
|
|
857
|
+
* {
|
|
858
|
+
* src: "1.vtt",
|
|
859
|
+
* label: "English",
|
|
860
|
+
* default: true
|
|
861
|
+
* }, {
|
|
862
|
+
* src: "2.vtt",
|
|
863
|
+
* label: "Spanish",
|
|
864
|
+
* default : false }]},
|
|
865
|
+
* logo: "https://myserver.com/logo.png"
|
|
866
|
+
* })
|
|
867
|
+
* ```
|
|
868
|
+
*/
|
|
869
|
+
setOpts(config: Config): void;
|
|
870
|
+
/**
|
|
871
|
+
* Sets the video source to be played. The src attribute can be a string or an object similar to the src property.
|
|
872
|
+
*/
|
|
873
|
+
setSrc(sources: UnsafeSource): void;
|
|
874
|
+
/* Excluded from this release type: setSrc */
|
|
875
|
+
/* Excluded from this release type: setAttrs */
|
|
876
|
+
/* Excluded from this release type: opt */
|
|
877
|
+
/* Excluded from this release type: enqueueSeek */
|
|
878
|
+
/* Excluded from this release type: setState */
|
|
879
|
+
setState(state: PlayerState, flag: boolean): void;
|
|
880
|
+
/* Excluded from this release type: toJSON */
|
|
881
|
+
/**
|
|
882
|
+
* Adds a language to the project. See {@link https://developer.wowza.com/docs/wowza-flowplayer/player/translations/#using-npm| Official documentation}
|
|
883
|
+
*/
|
|
884
|
+
i18n(k: string, fallback?: string): string;
|
|
885
|
+
/* Excluded from this release type: deviceId */
|
|
886
|
+
/* Excluded from this release type: live_state */
|
|
887
|
+
/**
|
|
888
|
+
* A reference to the configuration state of the player.
|
|
889
|
+
*/
|
|
890
|
+
opts: Config;
|
|
891
|
+
/* Excluded from this release type: plugins */
|
|
892
|
+
/* Excluded from this release type: dvr_offset */
|
|
893
|
+
message?: {
|
|
894
|
+
events: Record<string, string>;
|
|
895
|
+
};
|
|
896
|
+
/**
|
|
897
|
+
* A boolean specifying whether the player is disabled and the user cannot seek forward using the mouse or keyboard.
|
|
898
|
+
* Player is disabled and enabled with the `toggleDisable()` method.
|
|
899
|
+
*/
|
|
900
|
+
disabled: boolean;
|
|
901
|
+
/* Excluded from this release type: started */
|
|
902
|
+
/* Excluded from this release type: token */
|
|
903
|
+
tracks?: VideoTrack[];
|
|
904
|
+
/* Excluded from this release type: _customElements */
|
|
905
|
+
/* Excluded from this release type: _storage */
|
|
906
|
+
};
|
|
907
|
+
|
|
908
|
+
declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
|
|
909
|
+
|
|
910
|
+
declare type PlayerCustomEventsDetailMap = {
|
|
911
|
+
[MOUNT]: MountEventDetail;
|
|
912
|
+
[ERROR]: ErrorEventDetail;
|
|
913
|
+
[CONTEXT_MENU]: ContextMenuEventDetail;
|
|
914
|
+
/* Excluded from this release type: beforeplay */
|
|
915
|
+
/* Excluded from this release type: beforepause */
|
|
916
|
+
/* Excluded from this release type: state */
|
|
917
|
+
[CUEPOINT_START]: CuePointStartEventDetail;
|
|
918
|
+
[CUEPOINT_END]: CuePointEndEventDetail;
|
|
919
|
+
[VIEW_ENTER]: ViewEnterEventDetail;
|
|
920
|
+
[VIEW_LEAVE]: ViewLeaveEventDetail;
|
|
921
|
+
[SOURCE]: SourceEventDetail;
|
|
922
|
+
/* Excluded from this release type: recover */
|
|
923
|
+
[REAP]: ReapEventDetail;
|
|
924
|
+
/* Excluded from this release type: config */
|
|
925
|
+
[QUALITIES]: QualitiesEventDetail;
|
|
926
|
+
/* Excluded from this release type: "error:fatal" */
|
|
927
|
+
[RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
|
|
928
|
+
/* Excluded from this release type: audioonlysource */
|
|
929
|
+
/* Excluded from this release type: renderplugin */
|
|
930
|
+
[DVR]: DvrEventDetail;
|
|
931
|
+
[LIVE_2]: LiveEventDetail;
|
|
932
|
+
/* Excluded from this release type: "seek:queued" */
|
|
933
|
+
/* Excluded from this release type: "seek:cancel" */
|
|
934
|
+
/* Excluded from this release type: "plugin:registered" */
|
|
935
|
+
/* Excluded from this release type: intersectionchange */
|
|
936
|
+
/* Excluded from this release type: retry */
|
|
937
|
+
};
|
|
938
|
+
|
|
939
|
+
declare type PlayerCustomEventsOverloads = {
|
|
940
|
+
/**
|
|
941
|
+
* Sent when the player interface is completely rendered and you can access all the elements with CSS and JavaScript. Due to the way mounting works, this event is only accessible inside of a custom extension.
|
|
942
|
+
*/
|
|
943
|
+
on(event: typeof MOUNT, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof MOUNT]>) => void): Player;
|
|
944
|
+
/**
|
|
945
|
+
* Sent when an error occurs. Learn more about error handling.
|
|
946
|
+
*/
|
|
947
|
+
on(event: typeof ERROR, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof ERROR]>) => void): Player;
|
|
948
|
+
on(// FIXME - this event is in context-menu plugin
|
|
949
|
+
event: typeof CONTEXT_MENU, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CONTEXT_MENU]>) => void): Player;
|
|
950
|
+
/* Excluded from this release type: on */
|
|
951
|
+
/* Excluded from this release type: on */
|
|
952
|
+
/* Excluded from this release type: on */
|
|
953
|
+
/**
|
|
954
|
+
* TODO - move to Cuepoints? Sent when a configured cuepoint is entered.
|
|
955
|
+
*/
|
|
956
|
+
on(event: typeof CUEPOINT_START, // TODO: move to Cuepoints
|
|
957
|
+
handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CUEPOINT_START]>) => void): Player;
|
|
958
|
+
/**
|
|
959
|
+
* Sent when a configured cuepoint is terminated.
|
|
960
|
+
*/
|
|
961
|
+
on(event: typeof CUEPOINT_END, // TODO: move to Cuepoints
|
|
962
|
+
handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CUEPOINT_END]>) => void): Player;
|
|
963
|
+
/**
|
|
964
|
+
* Sent when the player becomes visible for the user.
|
|
965
|
+
*/
|
|
966
|
+
on(event: typeof VIEW_ENTER, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof VIEW_ENTER]>) => void): Player;
|
|
967
|
+
/**
|
|
968
|
+
* Sent when the player leaves the users viewport and is longer visible.
|
|
969
|
+
*/
|
|
970
|
+
on(event: typeof VIEW_LEAVE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof VIEW_LEAVE]>) => void): Player;
|
|
971
|
+
/**
|
|
972
|
+
* Sent right before the player src attribute is set. This allows you to change the video URL before playback.
|
|
973
|
+
*/
|
|
974
|
+
on(event: typeof SOURCE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof SOURCE]>) => void): Player;
|
|
975
|
+
/* Excluded from this release type: on */
|
|
976
|
+
/**
|
|
977
|
+
* Sent when a flowplayer instance is about to be removed from the DOM, and any unsafe references are about to be reaped, which allows Single Page Applications to perform the necessary resource cleanups. This is important when working with front-end frameworks like React. This event should never be emitted directly, only listened to.
|
|
978
|
+
*/
|
|
979
|
+
on(event: typeof REAP, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof REAP]>) => void): Player;
|
|
980
|
+
/* Excluded from this release type: on */
|
|
981
|
+
/**
|
|
982
|
+
* Emitted when the set of underlying qualities has changed.
|
|
983
|
+
*/
|
|
984
|
+
on(event: typeof QUALITIES, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITIES]>) => void): Player;
|
|
985
|
+
/* Excluded from this release type: on */
|
|
986
|
+
/**
|
|
987
|
+
* Listen to this event to create a recommendations grid using the data passed with the event.
|
|
988
|
+
*/
|
|
989
|
+
on(event: typeof RECOMMENDATIONS_READY, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RECOMMENDATIONS_READY]>) => void): Player;
|
|
990
|
+
/* Excluded from this release type: on */
|
|
991
|
+
/* Excluded from this release type: on */
|
|
992
|
+
/**
|
|
993
|
+
* when the player has started playing dvr content
|
|
994
|
+
*/
|
|
995
|
+
on(event: typeof DVR, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof DVR]>) => void): Player;
|
|
996
|
+
/**
|
|
997
|
+
* when src is a livestream
|
|
998
|
+
*/
|
|
999
|
+
on(event: typeof LIVE_2, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof LIVE_2]>) => void): Player;
|
|
1000
|
+
/* Excluded from this release type: on */
|
|
1001
|
+
/* Excluded from this release type: on */
|
|
1002
|
+
/* Excluded from this release type: on */
|
|
1003
|
+
/* Excluded from this release type: on */
|
|
1004
|
+
/* Excluded from this release type: on */
|
|
1005
|
+
on<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1006
|
+
/* Excluded from this release type: on */
|
|
1007
|
+
/**
|
|
1008
|
+
* Same as `on()`, but the handler function is executed only once.
|
|
1009
|
+
*/
|
|
1010
|
+
once<T extends PlayerCustomEventName>(event: T, handler: (e: FPEvent<PlayerCustomEventsDetailMap[T]>) => void): Player;
|
|
1011
|
+
/**
|
|
1012
|
+
* Same as `on()`, but the handler function is executed only once.
|
|
1013
|
+
*/
|
|
1014
|
+
once<T extends PlayerNativeEventName>(event: T, handler: (e: PlayerNativeEventsDetailMap[T]) => void): Player;
|
|
1015
|
+
once<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1016
|
+
/**
|
|
1017
|
+
* Removes the event handler with the specified event type.
|
|
1018
|
+
*/
|
|
1019
|
+
off<T extends PlayerCustomEventName>(event: T, handler: (e: FPEvent<PlayerCustomEventsDetailMap[T]>) => void): Player;
|
|
1020
|
+
/**
|
|
1021
|
+
* Removes the event handler with the specified event type.
|
|
1022
|
+
*/
|
|
1023
|
+
off<T extends PlayerNativeEventName>(event: T, handler: (e: PlayerNativeEventsDetailMap[T]) => void): Player;
|
|
1024
|
+
/**
|
|
1025
|
+
* Removes the event handler with the specified event type.
|
|
1026
|
+
*/
|
|
1027
|
+
off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1028
|
+
/* Excluded from this release type: poll */
|
|
1029
|
+
emit<T extends PlayerCustomEventName>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1030
|
+
/* Excluded from this release type: emit */
|
|
1031
|
+
emit<T, X extends string = string>(event: X & (X extends PlayerCustomEventName ? "Incorrect event detail type" : X), data?: T): Player;
|
|
1032
|
+
};
|
|
1033
|
+
|
|
1034
|
+
declare type PlayerEventOverloads = PlayerNativeEventsOverloads & PlayerCustomEventsOverloads;
|
|
1035
|
+
|
|
1036
|
+
declare type PlayerNativeEventName = keyof PlayerNativeEventsDetailMap;
|
|
1037
|
+
|
|
1038
|
+
declare type PlayerNativeEventsDetailMap = Omit<HTMLVideoElementEventMap, "error">;
|
|
1039
|
+
|
|
1040
|
+
declare type PlayerNativeEventsOverloads = {
|
|
1041
|
+
on<K extends keyof PlayerNativeEventsDetailMap>(event: K, handler: (ev: PlayerNativeEventsDetailMap[K]) => void): Player;
|
|
1042
|
+
};
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* @public
|
|
1046
|
+
* The root element of the video player. This is the immediate parent element of the video tag.
|
|
1047
|
+
*/
|
|
1048
|
+
declare type PlayerRoot = HTMLElement & {
|
|
1049
|
+
/* Excluded from this release type: prevWidth */
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* @public
|
|
1054
|
+
*/
|
|
1055
|
+
declare type PlayerState = FlowplayerStates[keyof FlowplayerStates];
|
|
1056
|
+
|
|
1057
|
+
/* Excluded from this release type: _PlayerState */
|
|
247
1058
|
|
|
1059
|
+
/* Excluded from this release type: PlayerStates */
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* @public
|
|
1063
|
+
*/
|
|
1064
|
+
declare type PlayerWith<T> = T & Player;
|
|
1065
|
+
|
|
1066
|
+
declare const PLAYING = "is-playing";
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* @public
|
|
1070
|
+
*/
|
|
1071
|
+
declare const /**
|
|
1072
|
+
@public
|
|
1073
|
+
* when a new player is inserted into the HTML
|
|
1074
|
+
*/ /**
|
|
1075
|
+
* @public
|
|
1076
|
+
*/
|
|
1077
|
+
PLAYING_2 = "playing";
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* @public
|
|
1081
|
+
*/
|
|
1082
|
+
declare interface Plugin_2<PluginConfig extends Config = Config, PluginPlayer extends Player = Player> {
|
|
1083
|
+
/**
|
|
1084
|
+
* a plugin must always implement the init method so a player instance knows how to initialize it
|
|
1085
|
+
*/
|
|
1086
|
+
init(config: PluginConfig, container: PlayerRoot, player: PluginPlayer): void;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
/* Excluded from this release type: PLUGIN_REGISTERED */
|
|
1090
|
+
|
|
1091
|
+
/**
|
|
1092
|
+
* @public
|
|
1093
|
+
*/
|
|
1094
|
+
declare interface PluginCtor<PluginConfig extends Config = Config, PluginPlayer extends Player = Player> {
|
|
1095
|
+
new (umd: FlowplayerUMD, player: PluginPlayer): Plugin_2<PluginConfig, PluginPlayer>;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/* Excluded from this release type: PluginRegisteredEventDetail */
|
|
1099
|
+
|
|
1100
|
+
declare type PluginStates = string;
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* @public
|
|
1104
|
+
*/
|
|
1105
|
+
declare const /**
|
|
1106
|
+
@public
|
|
1107
|
+
* when a new player is inserted into the HTML
|
|
1108
|
+
*/ /**
|
|
1109
|
+
* @public
|
|
1110
|
+
*/
|
|
1111
|
+
PORTRAIT = "portrait";
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* @public
|
|
1115
|
+
*/
|
|
1116
|
+
declare const /**
|
|
1117
|
+
@public
|
|
1118
|
+
* when a new player is inserted into the HTML
|
|
1119
|
+
*/ /**
|
|
1120
|
+
* @public
|
|
1121
|
+
*/
|
|
1122
|
+
PROGRESS = "progress";
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* @public
|
|
1126
|
+
* emitted whenever a list of qualities has been made available
|
|
1127
|
+
* when index 0 is the highest quality and index 0+N is the lowest
|
|
1128
|
+
*/
|
|
1129
|
+
declare const /**
|
|
1130
|
+
@public
|
|
1131
|
+
* when a new player is inserted into the HTML
|
|
1132
|
+
*/ /**
|
|
1133
|
+
* @public
|
|
1134
|
+
* emitted whenever a list of qualities has been made available
|
|
1135
|
+
* when index 0 is the highest quality and index 0+N is the lowest
|
|
1136
|
+
*/
|
|
1137
|
+
QUALITIES = "qualities";
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* @public
|
|
1141
|
+
*/
|
|
1142
|
+
declare type QualitiesEventDetail = QualityDetail[];
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* @public
|
|
1146
|
+
*/
|
|
1147
|
+
declare type QualityDetail = {
|
|
1148
|
+
level: number;
|
|
1149
|
+
text: string;
|
|
1150
|
+
width: number;
|
|
1151
|
+
height: number;
|
|
1152
|
+
videoCodec: string;
|
|
1153
|
+
} | BitrateInfo | {
|
|
1154
|
+
text: string | number;
|
|
1155
|
+
encodingId: string;
|
|
1156
|
+
spatialLayerId: number;
|
|
1157
|
+
temporalLayerId: number;
|
|
1158
|
+
maxSpatialLayerId: number;
|
|
1159
|
+
maxTemporalLayerId: number;
|
|
1160
|
+
height: number;
|
|
1161
|
+
width: number;
|
|
1162
|
+
};
|
|
1163
|
+
|
|
1164
|
+
declare enum QualityOpts {
|
|
1165
|
+
LOW = 1,
|
|
1166
|
+
MEDIUM = 2,
|
|
1167
|
+
HIGH = 4
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* @public
|
|
1172
|
+
* emitted when it is safe to clean up a fp instance
|
|
1173
|
+
*/
|
|
1174
|
+
declare const /**
|
|
1175
|
+
@public
|
|
1176
|
+
* when a new player is inserted into the HTML
|
|
1177
|
+
*/ /**
|
|
1178
|
+
* @public
|
|
1179
|
+
* emitted when it is safe to clean up a fp instance
|
|
1180
|
+
*/
|
|
1181
|
+
REAP = "reap";
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* @public
|
|
1185
|
+
*/
|
|
1186
|
+
declare type ReapEventDetail = null;
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* @public
|
|
1190
|
+
*/
|
|
1191
|
+
declare type RecommendationItem = {
|
|
1192
|
+
poster?: string;
|
|
1193
|
+
src?: UnsafeSource;
|
|
1194
|
+
title?: string;
|
|
1195
|
+
description?: string;
|
|
1196
|
+
metadata: OVPMetadata;
|
|
1197
|
+
chapters?: {
|
|
1198
|
+
src: string;
|
|
1199
|
+
};
|
|
1200
|
+
thumbnails?: {
|
|
1201
|
+
src: string;
|
|
1202
|
+
};
|
|
1203
|
+
subtitles?: string[];
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* @public
|
|
1208
|
+
*/
|
|
1209
|
+
declare const /**
|
|
1210
|
+
@public
|
|
1211
|
+
* when a new player is inserted into the HTML
|
|
1212
|
+
*/ /**
|
|
1213
|
+
* @deprecated please use Endscreen.events.RECOMMENDATIONS_READY / flowplayer.endscreen.events.RECOMMENDATIONS_READY
|
|
1214
|
+
**/
|
|
1215
|
+
/**
|
|
1216
|
+
* @public
|
|
1217
|
+
*/
|
|
1218
|
+
RECOMMENDATIONS_READY = "recommendationsready";
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* @public
|
|
1222
|
+
*/
|
|
1223
|
+
declare type RecommendationsReadyEventDetail = {
|
|
1224
|
+
playlist: RecommendationItem[];
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1227
|
+
/* Excluded from this release type: RECOVER */
|
|
1228
|
+
|
|
1229
|
+
/* Excluded from this release type: RecoverEventDetail */
|
|
1230
|
+
|
|
1231
|
+
/* Excluded from this release type: REMOTE_SESSION_ENDED */
|
|
1232
|
+
|
|
1233
|
+
/* Excluded from this release type: REMOTE_SESSION_STARTED */
|
|
1234
|
+
|
|
1235
|
+
/* Excluded from this release type: RENDER_PLUGIN */
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* @public
|
|
1239
|
+
*/
|
|
1240
|
+
declare type RenderPluginEventDetail = HTMLElement;
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* @public
|
|
1244
|
+
*/
|
|
1245
|
+
declare const /**
|
|
1246
|
+
@public
|
|
1247
|
+
* when a new player is inserted into the HTML
|
|
1248
|
+
*/ /**
|
|
1249
|
+
* @public
|
|
1250
|
+
*/
|
|
1251
|
+
RESIZE = "resize";
|
|
1252
|
+
|
|
1253
|
+
/* Excluded from this release type: RETRY */
|
|
1254
|
+
|
|
1255
|
+
/* Excluded from this release type: RetryEventDetail */
|
|
1256
|
+
|
|
1257
|
+
declare const RTL = "is-rtl";
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* @public
|
|
1261
|
+
*/
|
|
1262
|
+
declare const /**
|
|
1263
|
+
@public
|
|
1264
|
+
* when a new player is inserted into the HTML
|
|
1265
|
+
*/ /**
|
|
1266
|
+
* @public
|
|
1267
|
+
*/
|
|
1268
|
+
SCROLL = "scroll";
|
|
1269
|
+
|
|
1270
|
+
declare const SEAMLESS = "is-seamless";
|
|
1271
|
+
|
|
1272
|
+
/* Excluded from this release type: SEEK_CANCEL */
|
|
1273
|
+
|
|
1274
|
+
/* Excluded from this release type: SEEK_QUEUED */
|
|
1275
|
+
|
|
1276
|
+
declare const SEEKABLE = "is-seekable";
|
|
1277
|
+
|
|
1278
|
+
/* Excluded from this release type: SeekCancelEventDetail */
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* @public
|
|
1282
|
+
*/
|
|
1283
|
+
declare const /**
|
|
1284
|
+
@public
|
|
1285
|
+
* when a new player is inserted into the HTML
|
|
1286
|
+
*/ /**
|
|
1287
|
+
* @public
|
|
1288
|
+
*/
|
|
1289
|
+
SEEKED = "seeked";
|
|
1290
|
+
|
|
1291
|
+
declare const SEEKING = "is-seeking";
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* @public
|
|
1295
|
+
*/
|
|
1296
|
+
declare const /**
|
|
1297
|
+
@public
|
|
1298
|
+
* when a new player is inserted into the HTML
|
|
1299
|
+
*/ /**
|
|
1300
|
+
* @public
|
|
1301
|
+
*/
|
|
1302
|
+
SEEKING_2 = "seeking";
|
|
1303
|
+
|
|
1304
|
+
/* Excluded from this release type: SeekQueuedEventDetail */
|
|
1305
|
+
|
|
1306
|
+
/**
|
|
1307
|
+
* @public
|
|
1308
|
+
* allows plugins to listen for forced quality changes
|
|
1309
|
+
* it should emit the index of the quality to set
|
|
1310
|
+
* -1 is a special idx saying to use ABR if the plugin
|
|
1311
|
+
* exposes an ABR implementation
|
|
1312
|
+
*/
|
|
1313
|
+
declare const /**
|
|
1314
|
+
@public
|
|
1315
|
+
* when a new player is inserted into the HTML
|
|
1316
|
+
*/ /**
|
|
1317
|
+
* @public
|
|
1318
|
+
* allows plugins to listen for forced quality changes
|
|
1319
|
+
* it should emit the index of the quality to set
|
|
1320
|
+
* -1 is a special idx saying to use ABR if the plugin
|
|
1321
|
+
* exposes an ABR implementation
|
|
1322
|
+
*/
|
|
1323
|
+
SET_QUALITY = "quality:set";
|
|
1324
|
+
|
|
1325
|
+
declare const SMALL = "is-small";
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* @public
|
|
1329
|
+
* emitted when a valid source is found prior to mounting
|
|
1330
|
+
*/
|
|
1331
|
+
declare const /**
|
|
1332
|
+
@public
|
|
1333
|
+
* when a new player is inserted into the HTML
|
|
1334
|
+
*/ /**
|
|
1335
|
+
* @public
|
|
1336
|
+
* emitted when a valid source is found prior to mounting
|
|
1337
|
+
*/
|
|
1338
|
+
SOURCE = "src";
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* @public
|
|
1342
|
+
*/
|
|
1343
|
+
declare type SourceEventDetail = SourceObj;
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* @public
|
|
1347
|
+
*/
|
|
248
1348
|
declare type SourceObj = {
|
|
249
1349
|
src?: SourceStr;
|
|
1350
|
+
/**
|
|
1351
|
+
* the MIME type (example `video/mp4` or `application/x-mpegurl`)
|
|
1352
|
+
*/
|
|
250
1353
|
type?: string;
|
|
251
1354
|
drm?: DRMSourceConfiguration;
|
|
252
1355
|
};
|
|
253
1356
|
|
|
1357
|
+
/**
|
|
1358
|
+
* @public
|
|
1359
|
+
*/
|
|
254
1360
|
declare type SourceStr = string;
|
|
255
1361
|
|
|
1362
|
+
/**
|
|
1363
|
+
* @public
|
|
1364
|
+
*/
|
|
256
1365
|
declare type SourceWith<T> = SourceObj & T;
|
|
257
1366
|
|
|
1367
|
+
declare const STARTING = "is-starting";
|
|
1368
|
+
|
|
1369
|
+
/* Excluded from this release type: STATE */
|
|
1370
|
+
|
|
1371
|
+
/* Excluded from this release type: StateEventDetail */
|
|
1372
|
+
|
|
1373
|
+
declare namespace states {
|
|
1374
|
+
export {
|
|
1375
|
+
PLAYING,
|
|
1376
|
+
FULLSCREEN,
|
|
1377
|
+
PAUSED,
|
|
1378
|
+
MUTED,
|
|
1379
|
+
LOADED,
|
|
1380
|
+
LOADING,
|
|
1381
|
+
STARTING,
|
|
1382
|
+
SEEKING,
|
|
1383
|
+
GRABBING,
|
|
1384
|
+
DISABLED,
|
|
1385
|
+
SMALL,
|
|
1386
|
+
TINY,
|
|
1387
|
+
RTL,
|
|
1388
|
+
TV,
|
|
1389
|
+
ENDED,
|
|
1390
|
+
LIVE,
|
|
1391
|
+
ERRORED,
|
|
1392
|
+
WAITING,
|
|
1393
|
+
AUTOPLAY,
|
|
1394
|
+
SEAMLESS,
|
|
1395
|
+
TOGGLING,
|
|
1396
|
+
LIVE_SEEKED,
|
|
1397
|
+
NO_DVR,
|
|
1398
|
+
HAS_POSTER,
|
|
1399
|
+
WILL_PLAY,
|
|
1400
|
+
WILL_PAUSE,
|
|
1401
|
+
MENU_OPENED,
|
|
1402
|
+
TOUCHED,
|
|
1403
|
+
HOVERED,
|
|
1404
|
+
TOUCH_DEVICE,
|
|
1405
|
+
WILL_SEEK,
|
|
1406
|
+
SEEKABLE,
|
|
1407
|
+
IN_VIEWPORT,
|
|
1408
|
+
NO_CONTROLS,
|
|
1409
|
+
DESTROYED,
|
|
1410
|
+
IS_SOURCE_PROCESSING
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* @public
|
|
1416
|
+
*/
|
|
1417
|
+
declare const Thumbnails: PluginCtor<Config, Player>;
|
|
1418
|
+
export default Thumbnails;
|
|
1419
|
+
|
|
258
1420
|
/**
|
|
259
1421
|
* @public
|
|
260
1422
|
*/
|
|
@@ -262,13 +1424,178 @@ export declare type ThumbnailsConfig = {
|
|
|
262
1424
|
src: string;
|
|
263
1425
|
};
|
|
264
1426
|
|
|
1427
|
+
/**
|
|
1428
|
+
* @public
|
|
1429
|
+
*/
|
|
1430
|
+
declare const /**
|
|
1431
|
+
@public
|
|
1432
|
+
* when a new player is inserted into the HTML
|
|
1433
|
+
*/ /**
|
|
1434
|
+
* @public
|
|
1435
|
+
*/
|
|
1436
|
+
TIME_UPDATE = "timeupdate";
|
|
1437
|
+
|
|
1438
|
+
declare const TINY = "is-tiny";
|
|
1439
|
+
|
|
1440
|
+
declare const TOGGLING = "is-toggling";
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* @public
|
|
1444
|
+
*/
|
|
1445
|
+
declare const /**
|
|
1446
|
+
@public
|
|
1447
|
+
* when a new player is inserted into the HTML
|
|
1448
|
+
*/ /**
|
|
1449
|
+
* @public
|
|
1450
|
+
*/
|
|
1451
|
+
TOUCH_CANCEL = "touchcancel";
|
|
1452
|
+
|
|
1453
|
+
declare const TOUCH_DEVICE = "is-touch-device";
|
|
1454
|
+
|
|
1455
|
+
/**
|
|
1456
|
+
* @public
|
|
1457
|
+
*/
|
|
1458
|
+
declare const /**
|
|
1459
|
+
@public
|
|
1460
|
+
* when a new player is inserted into the HTML
|
|
1461
|
+
*/ /**
|
|
1462
|
+
* @public
|
|
1463
|
+
*/
|
|
1464
|
+
TOUCH_END = "touchend";
|
|
1465
|
+
|
|
1466
|
+
/**
|
|
1467
|
+
* @public
|
|
1468
|
+
*/
|
|
1469
|
+
declare const /**
|
|
1470
|
+
@public
|
|
1471
|
+
* when a new player is inserted into the HTML
|
|
1472
|
+
*/ /**
|
|
1473
|
+
* @public
|
|
1474
|
+
*/
|
|
1475
|
+
TOUCH_MOVE = "touchmove";
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* @public
|
|
1479
|
+
*/
|
|
1480
|
+
declare const /**
|
|
1481
|
+
@public
|
|
1482
|
+
* when a new player is inserted into the HTML
|
|
1483
|
+
*/ /**
|
|
1484
|
+
* @public
|
|
1485
|
+
*/
|
|
1486
|
+
TOUCH_START = "touchstart";
|
|
1487
|
+
|
|
1488
|
+
declare const TOUCHED = "is-touched";
|
|
1489
|
+
|
|
1490
|
+
declare const TV = "is-tv";
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* @public
|
|
1494
|
+
*/
|
|
265
1495
|
declare type UnsafeSource = SourceStr | SourceObj | Array<SourceStr | SourceObj>;
|
|
266
1496
|
|
|
1497
|
+
/**
|
|
1498
|
+
* @public
|
|
1499
|
+
* emitted when a video track is selected
|
|
1500
|
+
*/
|
|
1501
|
+
declare const /**
|
|
1502
|
+
@public
|
|
1503
|
+
* when a new player is inserted into the HTML
|
|
1504
|
+
*/ /**
|
|
1505
|
+
* @public
|
|
1506
|
+
* emitted when a video track is selected
|
|
1507
|
+
*/
|
|
1508
|
+
VIDEO_TRACK_SELECT = "tracks:video:select";
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* @public
|
|
1512
|
+
* emitted whenever multiple video tracks are detected
|
|
1513
|
+
*/
|
|
1514
|
+
declare const /**
|
|
1515
|
+
@public
|
|
1516
|
+
* when a new player is inserted into the HTML
|
|
1517
|
+
*/ /**
|
|
1518
|
+
* @public
|
|
1519
|
+
* emitted whenever multiple video tracks are detected
|
|
1520
|
+
*/
|
|
1521
|
+
VIDEO_TRACKS = "videoTracks";
|
|
1522
|
+
|
|
1523
|
+
/**
|
|
1524
|
+
* @public
|
|
1525
|
+
*/
|
|
267
1526
|
declare interface VideoTrack {
|
|
268
1527
|
name: string;
|
|
269
|
-
|
|
1528
|
+
/* Excluded from this release type: data */
|
|
270
1529
|
default: boolean;
|
|
271
1530
|
selected: boolean;
|
|
272
1531
|
}
|
|
273
1532
|
|
|
1533
|
+
/**
|
|
1534
|
+
* @public
|
|
1535
|
+
* when a player enters the viewpoint
|
|
1536
|
+
*/
|
|
1537
|
+
declare const /**
|
|
1538
|
+
@public
|
|
1539
|
+
* when a new player is inserted into the HTML
|
|
1540
|
+
*/ /**
|
|
1541
|
+
* @public
|
|
1542
|
+
* when a player enters the viewpoint
|
|
1543
|
+
*/
|
|
1544
|
+
VIEW_ENTER = "viewenter";
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* @public
|
|
1548
|
+
* when a player leaves the viewport
|
|
1549
|
+
*/
|
|
1550
|
+
declare const /**
|
|
1551
|
+
@public
|
|
1552
|
+
* when a new player is inserted into the HTML
|
|
1553
|
+
*/ /**
|
|
1554
|
+
* @public
|
|
1555
|
+
* when a player leaves the viewport
|
|
1556
|
+
*/
|
|
1557
|
+
VIEW_LEAVE = "viewleave";
|
|
1558
|
+
|
|
1559
|
+
/**
|
|
1560
|
+
* @public
|
|
1561
|
+
*/
|
|
1562
|
+
declare type ViewEnterEventDetail = null;
|
|
1563
|
+
|
|
1564
|
+
/**
|
|
1565
|
+
* @public
|
|
1566
|
+
*/
|
|
1567
|
+
declare type ViewLeaveEventDetail = null;
|
|
1568
|
+
|
|
1569
|
+
/**
|
|
1570
|
+
* @public
|
|
1571
|
+
*/
|
|
1572
|
+
declare const /**
|
|
1573
|
+
@public
|
|
1574
|
+
* when a new player is inserted into the HTML
|
|
1575
|
+
*/ /**
|
|
1576
|
+
* @public
|
|
1577
|
+
*/
|
|
1578
|
+
VOLUME_CHANGE = "volumechange";
|
|
1579
|
+
|
|
1580
|
+
declare const WAITING = "is-waiting";
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* @public
|
|
1584
|
+
*/
|
|
1585
|
+
declare const /**
|
|
1586
|
+
@public
|
|
1587
|
+
* when a new player is inserted into the HTML
|
|
1588
|
+
*/ /**
|
|
1589
|
+
* @public
|
|
1590
|
+
*/
|
|
1591
|
+
WAITING_2 = "waiting";
|
|
1592
|
+
|
|
1593
|
+
/* Excluded from this release type: WEBKIT_NEEDKEY */
|
|
1594
|
+
|
|
1595
|
+
declare const WILL_PAUSE = "will-pause";
|
|
1596
|
+
|
|
1597
|
+
declare const WILL_PLAY = "will-play";
|
|
1598
|
+
|
|
1599
|
+
declare const WILL_SEEK = "will-seek";
|
|
1600
|
+
|
|
274
1601
|
export { }
|