@flowplayer/player 3.35.0-rc → 3.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/core.js +1 -1
  2. package/default.js +1 -1
  3. package/embed.js +2 -2
  4. package/package.json +1 -2364
  5. package/plugins/ads.js +1 -1
  6. package/plugins/analytics.js +1 -1
  7. package/plugins/rts.js +1 -1
  8. package/plugins/ssai.js +1 -1
  9. package/package/core/events.d.ts +0 -710
  10. package/package/core/events.js +0 -403
  11. package/package/core.js +0 -1
  12. package/package/default.js +0 -1
  13. package/package/embed.js +0 -7
  14. package/package/flowplayer.css +0 -1
  15. package/package/index.d.ts +0 -2238
  16. package/package/plugins/ads.d.ts +0 -4468
  17. package/package/plugins/ads.js +0 -7
  18. package/package/plugins/airplay.d.ts +0 -2152
  19. package/package/plugins/airplay.js +0 -1
  20. package/package/plugins/analytics.d.ts +0 -2146
  21. package/package/plugins/analytics.js +0 -1
  22. package/package/plugins/asel.d.ts +0 -2293
  23. package/package/plugins/asel.js +0 -1
  24. package/package/plugins/audio.d.ts +0 -2146
  25. package/package/plugins/audio.js +0 -1
  26. package/package/plugins/chapters.d.ts +0 -2155
  27. package/package/plugins/chapters.js +0 -1
  28. package/package/plugins/chromecast.d.ts +0 -2221
  29. package/package/plugins/chromecast.js +0 -1
  30. package/package/plugins/comscore.d.ts +0 -2146
  31. package/package/plugins/comscore.js +0 -1
  32. package/package/plugins/consent.d.ts +0 -2194
  33. package/package/plugins/consent.js +0 -1
  34. package/package/plugins/context-menu.d.ts +0 -2160
  35. package/package/plugins/context-menu.js +0 -1
  36. package/package/plugins/cuepoints.d.ts +0 -2270
  37. package/package/plugins/cuepoints.js +0 -1
  38. package/package/plugins/dash.d.ts +0 -2302
  39. package/package/plugins/dash.js +0 -2
  40. package/package/plugins/drm.d.ts +0 -2271
  41. package/package/plugins/drm.js +0 -1
  42. package/package/plugins/endscreen.d.ts +0 -2165
  43. package/package/plugins/endscreen.js +0 -1
  44. package/package/plugins/fas.d.ts +0 -2200
  45. package/package/plugins/fas.js +0 -1
  46. package/package/plugins/float-on-scroll.d.ts +0 -2234
  47. package/package/plugins/float-on-scroll.js +0 -1
  48. package/package/plugins/ga4.d.ts +0 -2146
  49. package/package/plugins/ga4.js +0 -1
  50. package/package/plugins/gemius.d.ts +0 -2171
  51. package/package/plugins/gemius.js +0 -1
  52. package/package/plugins/google-analytics.d.ts +0 -2146
  53. package/package/plugins/google-analytics.js +0 -1
  54. package/package/plugins/hls.d.ts +0 -2271
  55. package/package/plugins/hls.js +0 -1
  56. package/package/plugins/id3.d.ts +0 -2212
  57. package/package/plugins/id3.js +0 -1
  58. package/package/plugins/iframe.d.ts +0 -2147
  59. package/package/plugins/iframe.js +0 -1
  60. package/package/plugins/keyboard.d.ts +0 -2146
  61. package/package/plugins/keyboard.js +0 -1
  62. package/package/plugins/media-session.d.ts +0 -2146
  63. package/package/plugins/media-session.js +0 -1
  64. package/package/plugins/message.d.ts +0 -2205
  65. package/package/plugins/message.js +0 -1
  66. package/package/plugins/ovp.d.ts +0 -2208
  67. package/package/plugins/ovp.js +0 -1
  68. package/package/plugins/playlist.d.ts +0 -2465
  69. package/package/plugins/playlist.js +0 -1
  70. package/package/plugins/preview.d.ts +0 -2236
  71. package/package/plugins/preview.js +0 -1
  72. package/package/plugins/qsel.d.ts +0 -2236
  73. package/package/plugins/qsel.js +0 -1
  74. package/package/plugins/qul.d.ts +0 -2161
  75. package/package/plugins/qul.js +0 -1
  76. package/package/plugins/rts.d.ts +0 -2551
  77. package/package/plugins/rts.js +0 -25
  78. package/package/plugins/share.d.ts +0 -2181
  79. package/package/plugins/share.js +0 -1
  80. package/package/plugins/speed.d.ts +0 -2173
  81. package/package/plugins/speed.js +0 -1
  82. package/package/plugins/ssai.d.ts +0 -2502
  83. package/package/plugins/ssai.js +0 -7
  84. package/package/plugins/subtitles.d.ts +0 -2287
  85. package/package/plugins/subtitles.js +0 -1
  86. package/package/plugins/thumbnails.d.ts +0 -2164
  87. package/package/plugins/thumbnails.js +0 -1
  88. package/package/plugins/tizen.d.ts +0 -2152
  89. package/package/plugins/tizen.js +0 -1
  90. package/package/plugins/vtsel.d.ts +0 -2250
  91. package/package/plugins/vtsel.js +0 -1
  92. package/package/plugins/webos.d.ts +0 -2152
  93. package/package/plugins/webos.js +0 -1
  94. package/package/util/loader.d.ts +0 -2163
  95. package/package/util/loader.js +0 -63
@@ -1,2147 +0,0 @@
1
- import type { Get } from 'type-fest';
2
- import type { Level } from 'hls.js';
3
- import type { Paths } from 'type-fest';
4
- import type { Representation } from 'dashjs';
5
- import type { Translation } from '@flowplayer/translations';
6
- import type { TupleToUnion } from 'type-fest';
7
-
8
- /* Excluded from this release type: AnyLoader */
9
-
10
- declare type ArrayToIntersection<T extends Array<unknown>> = T extends [
11
- infer Current,
12
- ...infer Remaining
13
- ] ? Current & ArrayToIntersection<Remaining> : unknown;
14
-
15
- /**
16
- * Each loader must
17
- */
18
- declare type _AttachedEventCheck = {
19
- on(event: `${string}:attached`, handler: (e: FPEvent<unknown>) => void): Player;
20
- };
21
-
22
- /* Excluded from this release type: AUDIO_ONLY_SOURCE */
23
-
24
- /* Excluded from this release type: AudioOnlySourceEventDetail */
25
-
26
- declare const AUTOPLAY = "is-autoplay";
27
-
28
- /**
29
- * @public
30
- */
31
- declare type Autoplay = BitOpts | boolean;
32
-
33
- declare enum AutoplayOpts {
34
- OFF = 0,
35
- ON = 1,
36
- AUDIO_REQUIRED = 2
37
- }
38
-
39
- /* Excluded from this release type: BEFORE_PAUSE */
40
-
41
- /* Excluded from this release type: BEFORE_PLAY */
42
-
43
- /**
44
- * @public
45
- */
46
- declare type BeforePauseEventDetail = {
47
- forced: boolean;
48
- };
49
-
50
- /**
51
- * @public
52
- */
53
- declare type BeforePlayEventDetail = {
54
- forced: boolean;
55
- };
56
-
57
- /**
58
- * @public
59
- */
60
- declare type BitOpts = number;
61
-
62
- /**
63
- * @public
64
- */
65
- declare const /**
66
- @public
67
- * when a new player is inserted into the HTML
68
- */ /**
69
- * @public
70
- */
71
- CAN_PLAY = "canplay";
72
-
73
- /**
74
- * @public
75
- */
76
- declare const /**
77
- @public
78
- * when a new player is inserted into the HTML
79
- */ /**
80
- * @public
81
- */
82
- CLICK = "click";
83
-
84
- /**
85
- * For plugins that add new properties to all source types, combine their src-mixins into one SourceObject
86
- * @example
87
- * ```
88
- * type Combined = CombineGlobalSrcExtensions<DRMPlugin, PluginWithFooFieldInSrc> // Combined = SourceObject<DRMConfig & FooFieldConfig>
89
- * ```
90
- */
91
- declare type CombineGlobalSrcExtensions<PluginSrcs extends unknown[]> = HasGlobalSrcExtensios<PluginSrcs> extends false ? SourceObj : SourceObj & ArrayToIntersection<PickGlobalSrcExtension<PluginSrcs>>;
92
-
93
- /**
94
- * For plugins that define a new src type, make a union of all new src.type declarations
95
- * @example
96
- * ```
97
- * type Combined = CombineNewSourceTypes<RTSPlugin, SSAIPlugin> // Combined = DRMConfig | FooFieldConfig
98
- * ```
99
- */
100
- declare type CombineNewSourceTypes<PluginSrcs extends unknown[]> = TupleToUnion<FilterNewSourceTypes<PluginSrcs>>;
101
-
102
- declare type CombineSrc<PluginSrcs extends unknown[]> = UnsafeSource<CombineGlobalSrcExtensions<PluginSrcs> | (CombineNewSourceTypes<PluginSrcs> & CombineGlobalSrcExtensions<PluginSrcs>)>;
103
-
104
- /* Excluded from this release type: Component */
105
-
106
- /* Excluded from this release type: Components */
107
-
108
- /* Excluded from this release type: CONFIG */
109
-
110
- /**
111
- * @public
112
- */
113
- declare interface Config {
114
- src?: UnsafeSource;
115
- preload?: "none" | "metadata" | "auto";
116
- controls?: boolean;
117
- lang?: string;
118
- start_time?: number;
119
- autopause?: boolean;
120
- rewind?: boolean;
121
- loop?: boolean;
122
- /**
123
- * an access token for the media
124
- * @public
125
- */
126
- playback_token?: string;
127
- /* Excluded from this release type: seamless */
128
- retry?: boolean;
129
- autoplay?: Autoplay;
130
- start_quality?: BitOpts;
131
- live?: boolean;
132
- poster?: string;
133
- disabled?: boolean;
134
- muted?: boolean;
135
- /* Excluded from this release type: is_native */
136
- /**
137
- * bitflags for UI options
138
- */
139
- ui?: BitOpts;
140
- /**
141
- * your user access token
142
- */
143
- token?: string;
144
- /* Excluded from this release type: duration */
145
- /**
146
- * can the content be seeked to any position
147
- */
148
- seekable?: boolean;
149
- multiplay?: boolean;
150
- ratio?: number | string;
151
- logo?: string;
152
- logo_href?: string;
153
- logo_alt_text?: string;
154
- title?: string;
155
- description?: string;
156
- /**
157
- * the number of seconds to have in the buffer before dvr is activated
158
- */
159
- seconds_to_dvr?: number;
160
- }
161
-
162
- /* Excluded from this release type: ConfigEventDetail */
163
-
164
- /**
165
- * @public
166
- */
167
- declare type ConfigWith<T> = Config & T;
168
-
169
- declare type ConfigWithSourceExtensions<PluginBareConfigs extends unknown[]> = Omit<ConfigWith<ArrayToIntersection<PluginBareConfigs>>, "src"> & {
170
- src?: CombineSrc<PickSrcExtensions<PluginBareConfigs>>;
171
- };
172
-
173
- /* Excluded from this release type: CONTENT_REAL_LOAD_START */
174
-
175
- /**
176
- * @public
177
- */
178
- declare const /**
179
- @public
180
- * when a new player is inserted into the HTML
181
- */ /**
182
- * @public
183
- */
184
- CONTEXT_MENU = "contextmenu";
185
-
186
- /**
187
- * @public
188
- */
189
- declare type ContextMenuEventDetail = null;
190
-
191
- /**
192
- * @public
193
- * @deprecated
194
- * when a cuepoint becomes inactive
195
- */
196
- declare const /**
197
- @public
198
- * when a new player is inserted into the HTML
199
- */ /**
200
- * @public
201
- * @deprecated
202
- * when a cuepoint becomes inactive
203
- */
204
- CUEPOINT_END = "cuepointend";
205
-
206
- /**
207
- * @public
208
- * @deprecated
209
- * when a cuepoint is active
210
- */
211
- declare const /**
212
- @public
213
- * when a new player is inserted into the HTML
214
- */ /**
215
- * @public
216
- * @deprecated
217
- * when a cuepoint is active
218
- */
219
- CUEPOINT_START = "cuepointstart";
220
-
221
- /**
222
- * @public
223
- * @deprecated
224
- * cuepoints parsing is asynchronous
225
- * you cannot rely on them existing until
226
- * this event is emitted
227
- */
228
- declare const /**
229
- @public
230
- * when a new player is inserted into the HTML
231
- */ /**
232
- * @public
233
- * @deprecated
234
- * cuepoints parsing is asynchronous
235
- * you cannot rely on them existing until
236
- * this event is emitted
237
- */
238
- CUEPOINTS = "cuepoints";
239
-
240
- /**
241
- * @public
242
- */
243
- declare const /**
244
- @public
245
- * when a new player is inserted into the HTML
246
- */ /**
247
- * @public
248
- */
249
- DATA = "loadeddata";
250
-
251
- /**
252
- * @public
253
- */
254
- declare const /**
255
- @public
256
- * when a new player is inserted into the HTML
257
- */ /**
258
- * @public
259
- */
260
- DBL_CLICK = "dblclick";
261
-
262
- declare const DESTROYED = "is-destroyed";
263
-
264
- /* Excluded from this release type: DeviceId */
265
-
266
- declare const DISABLED = "is-disabled";
267
-
268
- /**
269
- * @public
270
- */
271
- declare const /**
272
- @public
273
- * when a new player is inserted into the HTML
274
- */ /**
275
- * @public
276
- */
277
- DURATION_CHANGE = "durationchange";
278
-
279
- /**
280
- * @public
281
- * when the player has started playing dvr content
282
- */
283
- declare const /**
284
- @public
285
- * when a new player is inserted into the HTML
286
- */ /**
287
- * @public
288
- * when the player has started playing dvr content
289
- */
290
- DVR = "dvr";
291
-
292
- /**
293
- * @public
294
- */
295
- declare type DvrEventDetail = number;
296
-
297
- declare const ENDED = "is-ended";
298
-
299
- /**
300
- * @public
301
- */
302
- declare const /**
303
- @public
304
- * when a new player is inserted into the HTML
305
- */ /**
306
- * @public
307
- */
308
- ENDED_2 = "ended";
309
-
310
- declare type EnsureOnAttached<P extends Function, T extends Player> = ExtractPureAPI<T> extends _AttachedEventCheck ? P : "Loaders must implement on('<pluginname>:attached') event";
311
-
312
- /**
313
- * @public
314
- */
315
- declare const /**
316
- @public
317
- * when a new player is inserted into the HTML
318
- */ /**
319
- * @public
320
- */
321
- ERROR = "error";
322
-
323
- declare const ERRORED = "is-error";
324
-
325
- declare namespace events {
326
- export {
327
- MOUNT,
328
- RETRY,
329
- ERROR,
330
- CONTEXT_MENU,
331
- CLICK,
332
- DBL_CLICK,
333
- KEYUP,
334
- KEYDOWN,
335
- LOAD,
336
- MOUSE_ENTER,
337
- MOUSE_LEAVE,
338
- MOUSE_UP,
339
- MOUSE_DOWN,
340
- MOUSE_MOVE,
341
- TOUCH_START,
342
- TOUCH_MOVE,
343
- TOUCH_END,
344
- TOUCH_CANCEL,
345
- RESIZE,
346
- SCROLL,
347
- FULLSCREEN_ENTER,
348
- FULLSCREEN_EXIT,
349
- FULLSCREEN_CHANGE,
350
- METADATA,
351
- DATA,
352
- PROGRESS,
353
- TIME_UPDATE,
354
- LOAD_START,
355
- VOLUME_CHANGE,
356
- PAUSE,
357
- PLAYING_2 as PLAYING,
358
- PLAY,
359
- WAITING_2 as WAITING,
360
- CAN_PLAY,
361
- ENDED_2 as ENDED,
362
- SEEKED,
363
- SEEKING_2 as SEEKING,
364
- DURATION_CHANGE,
365
- VIEW_ENTER,
366
- VIEW_LEAVE,
367
- SOURCE,
368
- REAP,
369
- QUALITIES,
370
- QUALITY_CHANGE,
371
- VIDEO_TRACKS,
372
- SET_QUALITY,
373
- VIDEO_TRACK_SELECT,
374
- RECOMMENDATIONS_READY,
375
- LANDSCAPE,
376
- PORTRAIT,
377
- DVR,
378
- LIVE,
379
- RECOVER,
380
- CUEPOINTS,
381
- CUEPOINT_START,
382
- CUEPOINT_END,
383
- STANDARD_ERROR
384
- }
385
- }
386
-
387
- declare type ExtractBareConfig<Plugins extends PluginCtor> = Plugins extends PluginCtor<ConfigWith<infer ConfigType>> ? ConfigType : never;
388
-
389
- declare type ExtractPluginPlayerExtension<Plugin extends PluginCtor> = Plugin extends PluginCtor<infer _uConfigType, PlayerWith<infer PluginPlayer>> ? PluginPlayer : never;
390
-
391
- declare type ExtractPureAPI<T> = T extends PlayerWith<infer PureAPI> ? PureAPI : never;
392
-
393
- declare type ExtractSrcExtension<PluginBareConfig> = Get<PluginBareConfig, "src"> extends UnsafeSource<infer SrcMixinType> ? SrcMixinType : never;
394
-
395
- declare const FEATURE_USAGE = "flowplayer:feature";
396
-
397
- /* Excluded from this release type: FeatureUsageEventDetail */
398
-
399
- declare type FilterNewSourceTypes<PluginSrcs extends unknown[]> = {
400
- [Index in keyof PluginSrcs]: PluginSrcs[Index] extends {
401
- type: string;
402
- } ? PluginSrcs[Index] : never;
403
- };
404
-
405
- /**
406
- * @public
407
- */
408
- declare type FlowplayerCustomElementRegistry = Map<string, string>;
409
-
410
- declare class FlowplayerError extends Error {
411
- readonly message: string;
412
- readonly flowplayerErrorCode: FlowplayerErrorCode;
413
- readonly config: FlowplayerErrorConfig;
414
- static getErrorKey(code: FlowplayerErrorCode): FlowplayerErrorCodeName;
415
- readonly id: string;
416
- readonly isFatal: boolean;
417
- readonly errorKey: string;
418
- constructor(message: string, flowplayerErrorCode: FlowplayerErrorCode, config?: FlowplayerErrorConfig);
419
- toJSON(): {
420
- message: string;
421
- flowplayer_error_code: FlowplayerErrorCode;
422
- id: string;
423
- root_error_id: string | undefined;
424
- resource: string | undefined;
425
- is_fatal: boolean;
426
- is_retry: boolean;
427
- };
428
- }
429
-
430
- declare type FlowplayerErrorCode = (typeof FlowplayerErrorCodeMap)[keyof typeof FlowplayerErrorCodeMap];
431
-
432
- declare const FlowplayerErrorCodeMap: {
433
- /** Unknown */
434
- readonly Unknown: "00-00";
435
- /** Media Section */
436
- readonly MediaUnknown: "01-00";
437
- readonly MediaUnavailable: "01-01";
438
- readonly MediaUnsupportedVideoFormat: "01-02";
439
- readonly MediaUnsupportedAudioFormat: "01-03";
440
- readonly MediaBitrateExceeded: "01-04";
441
- readonly MediaBufferOverread: "01-05";
442
- readonly MediaIntegerOverflow: "01-06";
443
- readonly MediaQuotaExceeded: "01-07";
444
- readonly MediaInvalidCompositionDuration: "01-08";
445
- readonly MediaInvalidCompositionSourceDuration: "01-09";
446
- readonly MediaInvalidCompositionSourceStartTime: "01-10";
447
- readonly MediaMalformedDepth: "01-11";
448
- /** Playback Section */
449
- readonly PlaybackUnknown: "02-00";
450
- readonly PlaybackVideoBufferUnderRun: "02-01";
451
- readonly PlaybackAudioBufferUnderRun: "02-02";
452
- readonly PlaybackVideoBufferingTimeout: "02-03";
453
- readonly PlaybackAudioBufferingTimeout: "02-04";
454
- readonly PlaybackManifestParseError: "02-05";
455
- readonly PlaybackVideoDecodeError: "02-06";
456
- readonly PlaybackAudioDecodeError: "02-07";
457
- readonly PlaybackDroppedFramesExceeded: "02-08";
458
- readonly PlaybackPlayheadExceedsDuration: "02-09";
459
- readonly PlaybackUnsupportedDevice: "02-10";
460
- readonly PlaybackManifestLoadError: "02-11";
461
- readonly PlaybackManifestLoadTimeout: "02-12";
462
- readonly PlaybackManifestParsingError: "02-13";
463
- readonly PlaybackManifestIncompatibleCodecs: "02-14";
464
- readonly PlaybackLevelEmptyError: "02-15";
465
- readonly PlaybackLevelLoadError: "02-16";
466
- readonly PlaybackLevelLoadTimeout: "02-17";
467
- readonly PlaybackLevelSwitchError: "02-18";
468
- readonly PlaybackAudioTrackLoadError: "02-19";
469
- readonly PlaybackAudioTrackLoadTimeout: "02-20";
470
- readonly PlaybackFragLoadError: "02-21";
471
- readonly PlaybackFragLoadTimeout: "02-22";
472
- readonly PlaybackFragDecryptError: "02-23";
473
- readonly PlaybackFragParsingError: "02-24";
474
- readonly PlaybackFragGap: "02-25";
475
- readonly PlaybackRemuxAllocError: "02-26";
476
- readonly PlaybackBufferAddCodecError: "02-27";
477
- readonly PlaybackBufferIncompatibleCodecs: "02-28";
478
- readonly PlaybackBufferAppendError: "02-29";
479
- readonly PlaybackBufferStalledError: "02-30";
480
- readonly PlaybackBufferFullError: "02-31";
481
- readonly PlaybackBufferSeekOverHole: "02-32";
482
- readonly PlaybackBufferNudgeOnStall: "02-33";
483
- readonly PlaybackInternalException: "02-34";
484
- readonly PlaybackInternalAborted: "02-35";
485
- readonly PlaybackManifestLoaderFailure: "02-36";
486
- readonly PlaybackSegmentBaseLoaderError: "02-37";
487
- readonly PlaybackTimeSyncFailed: "02-38";
488
- readonly PlaybackFragmentLoaderFailure: "02-39";
489
- readonly PlaybackAppendError: "02-40";
490
- readonly PlaybackRemoveError: "02-41";
491
- readonly PlaybackDataUpdateFailed: "02-42";
492
- readonly PlaybackManifestNoStreams: "02-43";
493
- readonly PlaybackUnknownManifestType: "02-44";
494
- readonly PlaybackDashInsufficientSegmentInfo: "02-45";
495
- readonly PlaybackDashNoRepresentations: "02-46";
496
- readonly PlaybackDashNoAdaptationSets: "02-47";
497
- readonly PlaybackDashNoInitSegment: "02-48";
498
- readonly PlaybackDashUnsupportedContainerFormat: "02-49";
499
- readonly PlaybackDashKeySystemMismatch: "02-50";
500
- readonly PlaybackMultipleKeyIDs: "02-51";
501
- readonly PlaybackDashConflictingKeyIDs: "02-52";
502
- readonly PlaybackRestrictedStreams: "02-53";
503
- readonly PlaybackHlsMasterAndMediaTags: "02-54";
504
- readonly PlaybackRepresentationIdConflict: "02-55";
505
- readonly PlaybackHlsUnsupportedKeyFormats: "02-56";
506
- readonly PlaybackManifestNoVariants: "02-57";
507
- readonly PlaybackHlsUndeclaredVariables: "02-58";
508
- readonly PlaybackAes128InvalidKeyLength: "02-59";
509
- readonly PlaybackDashConflictingAes128Keys: "02-60";
510
- readonly PlaybackDashUnsupportedAes128Encryption: "02-61";
511
- readonly PlaybackManifestPatchMismatch: "02-62";
512
- readonly PlaybackEmptyMediaPlaylist: "02-63";
513
- readonly PlaybackNonContiguousCompositionTrack: "02-64";
514
- readonly PlaybackDecoderNotFound: "02-65";
515
- readonly PlaybackDecoderTemporarilyUnavailable: "02-66";
516
- readonly PlaybackIncompatibleAsset: "02-67";
517
- readonly PlaybackNoCompatibleExternalDisplay: "02-69";
518
- readonly PlaybackOutOfMemory: "02-70";
519
- readonly PlaybackToneMappingFailed: "02-71";
520
- readonly PlaybackVideoCompositorFailed: "02-72";
521
- /** Network Section */
522
- readonly NetworkUnknown: "03-00";
523
- readonly NetworkNoInternet: "03-01";
524
- readonly NetworkRequestTimeout: "03-02";
525
- readonly NetworkUnableToResolveHost: "03-03";
526
- readonly NetworkResourceNotFound: "03-04";
527
- readonly NetworkExpiredUrl: "03-05";
528
- readonly NetworkUrlResolutionFailed: "03-06";
529
- readonly NetworkDownloadErrorIdManifest: "03-07";
530
- readonly NetworkDownloadErrorIdSidx: "03-08";
531
- readonly NetworkDownloadErrorIdContent: "03-09";
532
- readonly NetworkDownloadErrorIdInitialization: "03-10";
533
- readonly NetworkDownloadErrorIdXlink: "03-11";
534
- readonly NetworkHttpRequestFailed: "03-12";
535
- readonly NetworkMaxRetriesExceeded: "03-13";
536
- readonly NetworkSegmentMissing: "03-14";
537
- /** HTTP Error Codes */
538
- readonly NetworkHttp400BadRequest: "03-400";
539
- readonly NetworkHttp401Unauthorized: "03-401";
540
- readonly NetworkHttp402PaymentRequired: "03-402";
541
- readonly NetworkHttp403Forbidden: "03-403";
542
- readonly NetworkHttp404NotFound: "03-404";
543
- readonly NetworkHttp405MethodNotAllowed: "03-405";
544
- readonly NetworkHttp406NotAcceptable: "03-406";
545
- readonly NetworkHttp407ProxyAuthenticationRequired: "03-407";
546
- readonly NetworkHttp408RequestTimeout: "03-408";
547
- readonly NetworkHttp409Conflict: "03-409";
548
- readonly NetworkHttp410Gone: "03-410";
549
- readonly NetworkHttp411LengthRequired: "03-411";
550
- readonly NetworkHttp412PreconditionFailed: "03-412";
551
- readonly NetworkHttp413PayloadTooLarge: "03-413";
552
- readonly NetworkHttp414URITooLong: "03-414";
553
- readonly NetworkHttp415UnsupportedMediaType: "03-415";
554
- readonly NetworkHttp416RangeNotSatisfiable: "03-416";
555
- readonly NetworkHttp417ExpectationFailed: "03-417";
556
- readonly NetworkHttp418ImATeapot: "03-418";
557
- readonly NetworkHttp421MisdirectedRequest: "03-421";
558
- readonly NetworkHttp422UnprocessableEntity: "03-422";
559
- readonly NetworkHttp423Locked: "03-423";
560
- readonly NetworkHttp424FailedDependency: "03-424";
561
- readonly NetworkHttp425TooEarly: "03-425";
562
- readonly NetworkHttp426UpgradeRequired: "03-426";
563
- readonly NetworkHttp428PreconditionRequired: "03-428";
564
- readonly NetworkHttp429TooManyRequests: "03-429";
565
- readonly NetworkHttp431RequestHeaderFieldsTooLarge: "03-431";
566
- readonly NetworkHttp451UnavailableForLegalReasons: "03-451";
567
- readonly NetworkHttp500InternalServerError: "03-500";
568
- readonly NetworkHttp501NotImplemented: "03-501";
569
- readonly NetworkHttp502BadGateway: "03-502";
570
- readonly NetworkHttp503ServiceUnavailable: "03-503";
571
- readonly NetworkHttp504GatewayTimeout: "03-504";
572
- readonly NetworkHttp505HTTPVersionNotSupported: "03-505";
573
- readonly NetworkHttp506VariantAlsoNegotiates: "03-506";
574
- readonly NetworkHttp507InsufficientStorage: "03-507";
575
- readonly NetworkHttp508LoopDetected: "03-508";
576
- readonly NetworkHttp510NotExtended: "03-510";
577
- readonly NetworkHttp511NetworkAuthenticationRequired: "03-511";
578
- /** Content Protection Section */
579
- readonly ContentProtectionUnknown: "04-00";
580
- readonly ContentProtectionConcurrentStreamLimitExceeded: "04-01";
581
- readonly ContentProtectionEntitlementRefused: "04-02";
582
- readonly ContentProtectionLicenseExpired: "04-03";
583
- readonly ContentProtectionBadLicenseRequest: "04-04";
584
- readonly ContentProtectionLicenseServerTimeout: "04-05";
585
- readonly ContentProtectionInsufficientHDCPSupport: "04-06";
586
- readonly ContentProtectionGeoRestricted: "04-07";
587
- readonly ContentProtectionParentalControlRestricted: "04-08";
588
- readonly ContentProtectionCDNUnauthorized: "04-09";
589
- readonly ContentProtectionInvalidAccessToken: "04-10";
590
- readonly ContentProtectionKeySystemNoKeys: "04-11";
591
- readonly ContentProtectionKeySystemNoAccess: "04-12";
592
- readonly ContentProtectionKeySystemNoSession: "04-13";
593
- readonly ContentProtectionKeySystemNoConfiguredLicense: "04-14";
594
- readonly ContentProtectionKeySystemCertificateRequestFailed: "04-15";
595
- readonly ContentProtectionKeySystemCertificateUpdateFailed: "04-16";
596
- /** Key System: Session update failed */
597
- readonly ContentProtectionKeySystemSessionUpdateFailed: "04-17";
598
- /** Key System: Status output restricted */
599
- readonly ContentProtectionKeySystemStatusOutputRestricted: "04-18";
600
- /** Key System: Status internal error */
601
- readonly ContentProtectionKeySystemStatusInternalError: "04-19";
602
- /** Key Load Error */
603
- readonly ContentProtectionKeyLoadError: "04-20";
604
- /** Key Load Timeout */
605
- readonly ContentProtectionKeyLoadTimeout: "04-21";
606
- /** Capability MediaKeys Error */
607
- readonly ContentProtectionCapabilityMediaKeysError: "04-22";
608
- /** Manifest indicated protected content, but unable to determine key systems */
609
- readonly ContentProtectionManifestKeySystemUnknown: "04-23";
610
- /**
611
- * None of the requested key system configurations are available.
612
- * Possible reasons:
613
- * - Key system not supported
614
- * - Requested features (e.g., persistent state) not supported
615
- * - User denied access in prompt
616
- * - Key system unavailable in insecure contexts (requires HTTPS)
617
- */
618
- readonly ContentProtectionKeySystemUnavailable: "04-24";
619
- /** Browser found requested key system, but failed to create CDM instance */
620
- readonly ContentProtectionCDMCreationFailed: "04-25";
621
- /** Browser created CDM instance but failed to attach it to the video */
622
- readonly ContentProtectionCDMAttachFailed: "04-26";
623
- /** CDM rejected the server certificate (malformed or unsupported format) */
624
- readonly ContentProtectionCDMServerCertificateRejected: "04-27";
625
- /** CDM refused to create a session for unknown reasons */
626
- readonly ContentProtectionCDMSessionCreationFailed: "04-28";
627
- /** CDM unable to generate a license request due to malformed or unsupported init data */
628
- readonly ContentProtectionCDMLicenseRequestFailed: "04-29";
629
- /** License response rejected by the CDM (invalid/malformed response) */
630
- readonly ContentProtectionCDMLicenseResponseRejected: "04-30";
631
- /** Manifest does not specify DRM info, but content is encrypted */
632
- readonly ContentProtectionManifestMissingDRMInfo: "04-31";
633
- /** No license server was provided for the key system signaled by the manifest */
634
- readonly ContentProtectionLicenseServerMissing: "04-32";
635
- /** A required offline session was removed, affecting playback */
636
- readonly ContentProtectionOfflineSessionRemoved: "04-33";
637
- /** Error while executing init data transformation */
638
- readonly ContentProtectionInitDataTransformationError: "04-34";
639
- /** Server certificate request failed */
640
- readonly ContentProtectionServerCertificateRequestFailed: "04-35";
641
- /** HDCP version does not meet the requirements */
642
- readonly ContentProtectionInsufficientHDCPVersion: "04-36";
643
- /** Error when checking HDCP version */
644
- readonly ContentProtectionHDCPVersionCheckFailed: "04-37";
645
- /** Ads Section */
646
- readonly AdsUnknown: "08-00";
647
- readonly AdsVastParseError: "08-100";
648
- readonly AdsInvalidVastSchema: "08-101";
649
- readonly AdsVastVersionNotSupported: "08-102";
650
- readonly AdsUnexpectedAdType: "08-200";
651
- readonly AdsCreativeLinearityMismatch: "08-201";
652
- readonly AdsCreativeDurationMismatch: "08-202";
653
- readonly AdsCreativeSizeMismatch: "08-203";
654
- readonly AdsWrapperVastError: "08-300";
655
- readonly AdsVastResponseRedirectTimeout: "08-301";
656
- readonly AdsWrapperLimitReached: "08-302";
657
- readonly AdsVastResponseEmpty: "08-303";
658
- readonly AdsLinearAdDisplayError: "08-400";
659
- readonly AdsMediaFileNotFound: "08-401";
660
- readonly AdsMediaFileUnavailable: "08-402";
661
- readonly AdsUnsupportedMimeType: "08-403";
662
- readonly AdsUnableToDisplayMediaFile: "08-405";
663
- readonly AdsMezzanineFileMissing: "08-406";
664
- readonly AdsMezzanineFileDownloaded: "08-407";
665
- readonly AdsRejectedAd: "08-408";
666
- readonly AdsInteractiveCreativeError: "08-409";
667
- readonly AdsVerificationNodeExecutionError: "08-410";
668
- readonly AdsNonLinearAdDisplayError: "08-500";
669
- readonly AdsNonLinearAdSizeMismatch: "08-501";
670
- readonly AdsNonLinearAdFetchError: "08-502";
671
- readonly AdsNonLinearUnsupportedType: "08-503";
672
- readonly AdsCompanionAdDisplayError: "08-600";
673
- readonly AdsCompanionAdSizeMismatch: "08-601";
674
- readonly AdsRequiredCompanionAdError: "08-602";
675
- readonly AdsCompanionAdFetchError: "08-603";
676
- readonly AdsUndefinedVastError: "08-900";
677
- readonly AdsUnknownVpaidError: "08-901";
678
- readonly AdsVastDocumentEmpty: "08-999";
679
- };
680
-
681
- declare type FlowplayerErrorCodeName = keyof typeof FlowplayerErrorCodeMap;
682
-
683
- declare type FlowplayerErrorConfig = Partial<{
684
- isFatal: boolean;
685
- showErrorUI: boolean;
686
- isRetry: boolean;
687
- resource: string;
688
- rootErrorId: string;
689
- retryOpts: Partial<{
690
- retry: (typeof RetryMap)[keyof typeof RetryMap];
691
- retryTimeout: number;
692
- }>;
693
- }> & Record<string, any>;
694
-
695
- declare type FlowplayerErrorEventDetail = {
696
- error: FlowplayerError;
697
- };
698
-
699
- /**
700
- * @public
701
- */
702
- declare type FlowplayerStates = typeof states;
703
-
704
- /**
705
- * @public
706
- */
707
- declare interface FlowplayerUMD extends FlowplayerUMDBase {
708
- /**
709
- * Configure flowplayer and display it in the UI
710
- * @param selector - query selector of the HTML element where player will render
711
- * @param config - configuration of flowplayer
712
- */
713
- (selector: string, config?: Config): Player;
714
- /**
715
- * Configure flowplayer and display it in the UI
716
- * @param element - HTML element where player will render
717
- * @param config - configuration of flowplayer
718
- */
719
- (element: HTMLElement, config?: Config): Player;
720
- /**
721
- * Configure flowplayer and display it in the UI
722
- * @param selector - query selector of the HTML element where player will render
723
- * @param config - configuration of flowplayer
724
- */
725
- <T>(selector: string, config?: ConfigWith<T>): Player;
726
- /**
727
- * Configure flowplayer and display it in the UI
728
- * @param element - HTML element where player will render
729
- * @param config - configuration of flowplayer
730
- */
731
- <T>(element: HTMLElement, config?: ConfigWith<T>): Player;
732
- /**
733
- * Register plugins in flowplayer
734
- * @returns flowplayer instance with registered plugins
735
- */
736
- <PluginCtors extends PluginCtor[]>(...plugins: PluginCtors): FlowplayerUMDWithPlugins<MergeConfigs<PluginCtors>, PlayerWith<MergePlayerExtensions<PluginCtors>>>;
737
- }
738
-
739
- declare interface FlowplayerUMDBase {
740
- /**
741
- * All player instances on the page
742
- */
743
- instances: Player[];
744
- /**
745
- * Flowplayer core events
746
- */
747
- events: typeof events;
748
- /**
749
- * Flowplayer ui states map
750
- */
751
- states: FlowplayerStates;
752
- /**
753
- * Flowplayer errors map
754
- */
755
- errors: typeof FlowplayerErrorCodeMap;
756
- quality: typeof QualityOpts;
757
- autoplay: typeof AutoplayOpts;
758
- commit: string;
759
- version: string;
760
- /**
761
- * Flowplayer's custom element registry
762
- */
763
- customElements: FlowplayerCustomElementRegistry;
764
- /* Excluded from this release type: extensions */
765
- /* Excluded from this release type: defaultElements */
766
- /* Excluded from this release type: components */
767
- /* Excluded from this release type: support */
768
- /* Excluded from this release type: jwt */
769
- /* Excluded from this release type: loaders */
770
- /**
771
- * @public
772
- * Translations dictionaries to be used with `@flowplayer/translations` package
773
- *
774
- * See [official documentation](https://developer.wowza.com/docs/wowza-flowplayer/player/translations/)
775
- */
776
- i18n: typeof I18n;
777
- }
778
-
779
- /**
780
- * @public
781
- */
782
- declare interface FlowplayerUMDWithPlugins<ConfigWithPlugins extends Config = Config, PluginPlayer extends Player = Player> extends FlowplayerUMDBase {
783
- /**
784
- * Configure flowplayer, it's attached plugins and display flowplayer it in the UI
785
- * @param selector - query selector of the HTML element where player will render
786
- * @param config - Configuration of the flowplayer and the attached plugins
787
- */
788
- (selector: string, config?: ConfigWithPlugins): PlayerWithOpts<PluginPlayer, ConfigWithPlugins>;
789
- /**
790
- * Configure flowplayer, it's attached plugins and display flowplayer it in the UI
791
- * @param element - HTML element where player will render
792
- * @param config - Configuration of the flowplayer and the attached plugins
793
- */
794
- (element: HTMLElement, config?: ConfigWithPlugins): PlayerWithOpts<PluginPlayer, ConfigWithPlugins>;
795
- }
796
-
797
- /**
798
- * @public
799
- */
800
- declare interface FPEvent<T> extends CustomEvent<T> {
801
- /**
802
- * @deprecated
803
- the data attribute has been migrated to details to match the CustomEvent spec
804
- more info: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent
805
- */
806
- data?: T;
807
- }
808
-
809
- declare const FULLSCREEN = "is-fullscreen";
810
-
811
- /**
812
- * @public
813
- */
814
- declare const /**
815
- @public
816
- * when a new player is inserted into the HTML
817
- */ /**
818
- * @public
819
- */
820
- FULLSCREEN_CHANGE = "fullscreenchange";
821
-
822
- /**
823
- * @public
824
- */
825
- declare const /**
826
- @public
827
- * when a new player is inserted into the HTML
828
- */ /**
829
- * @public
830
- */
831
- FULLSCREEN_ENTER = "fullscreenenter";
832
-
833
- /**
834
- * @public
835
- */
836
- declare const /**
837
- @public
838
- * when a new player is inserted into the HTML
839
- */ /**
840
- * @public
841
- */
842
- FULLSCREEN_EXIT = "fullscreenexit";
843
-
844
- declare const GRABBING = "is-grabbing";
845
-
846
- declare const HAS_POSTER = "has-poster";
847
-
848
- declare type HasGlobalSrcExtensios<PluginSrcs extends unknown[]> = ArrayToIntersection<PickGlobalSrcExtension<PluginSrcs>>;
849
-
850
- declare type HasSrcExtensions<PluginBareConfigs extends unknown[]> = TupleToUnion<PickSrcExtensions<PluginBareConfigs>> extends never ? false : true;
851
-
852
- declare const HOVERED = "is-hovered";
853
-
854
- declare class I18n implements Plugin_2 {
855
- static pluginName: string;
856
- static en: {
857
- ads: {
858
- ad: string;
859
- ads: string;
860
- advertisement: string;
861
- indicator: string;
862
- adchoices: string;
863
- };
864
- audio: {
865
- button_txt: string;
866
- menu_title: string;
867
- };
868
- cc: {
869
- button: string;
870
- menu_title: string;
871
- options: string;
872
- tracks: string;
873
- reset: string;
874
- colors: {
875
- Black: string;
876
- Blue: string;
877
- Cyan: string;
878
- Green: string;
879
- Magenta: string;
880
- Red: string;
881
- White: string;
882
- Yellow: string;
883
- };
884
- edgeStyle: {
885
- None: string;
886
- "Drop shadow": string;
887
- Raised: string;
888
- Depressed: string;
889
- Outline: string;
890
- };
891
- fontFamily: {
892
- "Monospaced Serif": string;
893
- "Proportional Serif": string;
894
- "Monospaced Sans-Serif": string;
895
- "Proportional Sans-Serif": string;
896
- Casual: string;
897
- Cursive: string;
898
- };
899
- properties: {
900
- fontFamily: string;
901
- fontSize: string;
902
- fontColor: string;
903
- fontOpacity: string;
904
- backgroundColor: string;
905
- backgroundOpacity: string;
906
- characterEdgeStyle: string;
907
- };
908
- };
909
- chromecast: {
910
- start: string;
911
- stop: string;
912
- };
913
- core: {
914
- exit_fullscreen: string;
915
- fullscreen: string;
916
- mute: string;
917
- muted: string;
918
- pause: string;
919
- play: string;
920
- seconds: string;
921
- timeline_aria_label: string;
922
- unmute: string;
923
- volume: string;
924
- close: string;
925
- "skip-next": string;
926
- "skip-prev": string;
927
- };
928
- ovp: {
929
- starting_in: string;
930
- };
931
- playlist: {
932
- cancel: string;
933
- up_next: string;
934
- autoplay: string;
935
- now_playing: string;
936
- turn_off_autoplay: string;
937
- playlist: string;
938
- };
939
- qsel: {
940
- menu_title: string;
941
- };
942
- share: {
943
- clipboard_failure: string;
944
- clipboard_success: string;
945
- embed: string;
946
- link: string;
947
- menu_title: string;
948
- };
949
- speed: {
950
- menu_title: string;
951
- };
952
- vtsel: {
953
- button_txt: string;
954
- menu_title: string;
955
- };
956
- };
957
- init(config: Config, _root: never, video: Player): void;
958
- /* Excluded from this release type: _nonLanguageFields */
959
- /* Excluded from this release type: languagesLoaded */
960
- }
961
-
962
- /**
963
- * @public
964
- * maybe handles iframe specific stuff if inside an iframe
965
- */
966
- declare const Iframe: PluginCtor;
967
- export default Iframe;
968
-
969
- declare const IN_VIEWPORT = "is-in-viewport";
970
-
971
- /* Excluded from this release type: INTERSECTIONCHANGE */
972
-
973
- /* Excluded from this release type: IntersectionChangeEventDetail */
974
-
975
- declare const IS_SOURCE_PROCESSING = "is-source-processing";
976
-
977
- declare type JSONPlayer = any;
978
-
979
- /**
980
- * @public
981
- */
982
- declare const /**
983
- @public
984
- * when a new player is inserted into the HTML
985
- */ /**
986
- * @public
987
- */
988
- KEYDOWN = "keydown";
989
-
990
- /**
991
- * @public
992
- */
993
- declare const /**
994
- @public
995
- * when a new player is inserted into the HTML
996
- */ /**
997
- * @public
998
- */
999
- KEYUP = "keyup";
1000
-
1001
- /**
1002
- * @public
1003
- */
1004
- declare type KeyValue = Record<string, any>;
1005
-
1006
- /**
1007
- * @public
1008
- */
1009
- declare const /**
1010
- @public
1011
- * when a new player is inserted into the HTML
1012
- */ /**
1013
- * @public
1014
- */
1015
- LANDSCAPE = "landscape";
1016
-
1017
- /**
1018
- * @public
1019
- * when src is a livestream
1020
- */
1021
- declare const /**
1022
- @public
1023
- * when a new player is inserted into the HTML
1024
- */ /**
1025
- * @public
1026
- * when src is a livestream
1027
- */
1028
- LIVE = "live";
1029
-
1030
- declare const LIVE_2 = "is-live";
1031
-
1032
- declare const LIVE_SEEKED = "is-live-seeked";
1033
-
1034
- /**
1035
- * @public
1036
- */
1037
- declare type LiveEventDetail = null;
1038
-
1039
- /**
1040
- * @public
1041
- */
1042
- declare const /**
1043
- @public
1044
- * when a new player is inserted into the HTML
1045
- */ /**
1046
- * @public
1047
- */
1048
- LOAD = "load";
1049
-
1050
- /**
1051
- * @public
1052
- */
1053
- declare const /**
1054
- @public
1055
- * when a new player is inserted into the HTML
1056
- */ /**
1057
- * @public
1058
- */
1059
- LOAD_START = "loadstart";
1060
-
1061
- declare const LOADED = "is-loaded";
1062
-
1063
- /**
1064
- * @public A plugin that supports loading new media formats. Use 'class MyPlugin implements Loader\<...\>' when writing your custom Loader
1065
- * @typeParam PluginPlayer- Player API that will be implemented by the loader. Loader at least must implement on(\<loader-name\>:attached, ...) event handler
1066
- */
1067
- declare interface Loader<PluginOwnConfig extends KeyValue, // FIXME extends Config
1068
- PluginPlayer extends PlayerWith<_AttachedEventCheck>> extends Plugin_2<PluginOwnConfig, PluginPlayer> {
1069
- onload: EnsureOnAttached<(config: ConfigWith<PluginOwnConfig>, root: PlayerRoot, video: PlayerWith<PluginPlayer>, src: SourceObj) => void, PluginPlayer>;
1070
- wants<S = SourceObj>(srcString: SourceStr, srcObj: S, config: ConfigWith<PluginOwnConfig>): boolean;
1071
- wants<S = KeyValue>(srcString: SourceStr, srcObj: SourceWith<S>, config: ConfigWith<PluginOwnConfig>): boolean;
1072
- }
1073
-
1074
- declare const LOADING = "is-loading";
1075
-
1076
- declare type MapToBareConfigs<Plugins extends PluginCtor[]> = {
1077
- [PluginType in keyof Plugins]: ExtractBareConfig<Plugins[PluginType]>;
1078
- };
1079
-
1080
- declare type MapToPlayerExtensions<Plugins extends PluginCtor[]> = {
1081
- [PluginIndex in keyof Plugins]: ExtractPluginPlayerExtension<Plugins[PluginIndex]>;
1082
- };
1083
-
1084
- declare const MENU_OPENED = "has-menu-opened";
1085
-
1086
- /**
1087
- * Combines plugin config and returns a type derived from Config
1088
- */
1089
- declare type MergeConfigs<Plugins extends PluginCtor[]> = MergePluginConfigs<MapToBareConfigs<Plugins>>;
1090
-
1091
- declare type MergePlayerExtensions<Plugins extends PluginCtor[]> = ArrayToIntersection<MapToPlayerExtensions<Plugins>>;
1092
-
1093
- declare type MergePluginConfigs<PluginBareConfigs extends unknown[]> = HasSrcExtensions<PluginBareConfigs> extends true ? ConfigWithSourceExtensions<PluginBareConfigs> : ConfigWith<ArrayToIntersection<PluginBareConfigs>>;
1094
-
1095
- /**
1096
- * @public
1097
- * general video events flowplayer uses internally
1098
- * https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events
1099
- */
1100
- declare const /**
1101
- @public
1102
- * when a new player is inserted into the HTML
1103
- */ /**
1104
- * @public
1105
- * general video events flowplayer uses internally
1106
- * https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events
1107
- */
1108
- METADATA = "loadedmetadata";
1109
-
1110
- /**
1111
- @public
1112
- * when a new player is inserted into the HTML
1113
- */
1114
- declare const /**
1115
- @public
1116
- * when a new player is inserted into the HTML
1117
- */ /**
1118
- @public
1119
- * when a new player is inserted into the HTML
1120
- */ MOUNT = "mount";
1121
-
1122
- /**
1123
- * @public
1124
- */
1125
- declare type MountEventDetail = null;
1126
-
1127
- /**
1128
- * @public
1129
- */
1130
- declare const /**
1131
- @public
1132
- * when a new player is inserted into the HTML
1133
- */ /**
1134
- * @public
1135
- */
1136
- MOUSE_DOWN = "mousedown";
1137
-
1138
- /**
1139
- * @public
1140
- */
1141
- declare const /**
1142
- @public
1143
- * when a new player is inserted into the HTML
1144
- */ /**
1145
- * @public
1146
- */
1147
- MOUSE_ENTER = "mouseenter";
1148
-
1149
- /**
1150
- * @public
1151
- */
1152
- declare const /**
1153
- @public
1154
- * when a new player is inserted into the HTML
1155
- */ /**
1156
- * @public
1157
- */
1158
- MOUSE_LEAVE = "mouseleave";
1159
-
1160
- /**
1161
- * @public
1162
- */
1163
- declare const /**
1164
- @public
1165
- * when a new player is inserted into the HTML
1166
- */ /**
1167
- * @public
1168
- */
1169
- MOUSE_MOVE = "mousemove";
1170
-
1171
- /**
1172
- * @public
1173
- */
1174
- declare const /**
1175
- @public
1176
- * when a new player is inserted into the HTML
1177
- */ /**
1178
- * @public
1179
- */
1180
- MOUSE_UP = "mouseup";
1181
-
1182
- declare const MUTED = "is-muted";
1183
-
1184
- declare const NO_CONTROLS = "no-controls";
1185
-
1186
- declare const NO_DVR = "no-timeline";
1187
-
1188
- /* Excluded from this release type: NON_RECOVERABLE_ERROR */
1189
-
1190
- /* Excluded from this release type: NonRecoverableErrorEventDetail */
1191
-
1192
- /* Excluded from this release type: NQState */
1193
-
1194
- /**
1195
- * @public
1196
- */
1197
- declare type OVPMetadata = {
1198
- player_id?: string;
1199
- media_id?: string;
1200
- ad_keywords?: string;
1201
- title?: string;
1202
- description?: string;
1203
- category_name?: string;
1204
- duration?: number;
1205
- tags?: string;
1206
- };
1207
-
1208
- /**
1209
- * @public
1210
- */
1211
- declare const /**
1212
- @public
1213
- * when a new player is inserted into the HTML
1214
- */ /**
1215
- * @public
1216
- */
1217
- PAUSE = "pause";
1218
-
1219
- declare const PAUSED = "is-paused";
1220
-
1221
- declare type PickGlobalSrcExtension<PluginSrcs extends unknown[]> = {
1222
- [Index in keyof PluginSrcs]: PluginSrcs[Index] extends {
1223
- type: string;
1224
- } ? unknown : PluginSrcs[Index];
1225
- };
1226
-
1227
- /**
1228
- * Maps incoming array to the src extension type
1229
- * @example
1230
- * ```
1231
- * PickSrcExtensions<[
1232
- * {configProp: boolean, src: UnsafeSource<{srcProp: boolean}>},
1233
- * {}
1234
- * ]> // = [{srcProp: boolean}, never]
1235
- * ```
1236
- */
1237
- declare type PickSrcExtensions<PluginBareConfigs extends unknown[]> = {
1238
- [PluginType in keyof PluginBareConfigs]: ExtractSrcExtension<PluginBareConfigs[PluginType]>;
1239
- };
1240
-
1241
- /**
1242
- * @public
1243
- */
1244
- declare const /**
1245
- @public
1246
- * when a new player is inserted into the HTML
1247
- */ /**
1248
- * @public
1249
- */
1250
- PLAY = "play";
1251
-
1252
- /**
1253
- * @public
1254
- */
1255
- declare type Player = HTMLVideoElement & PlayerEventOverloads & {
1256
- /* Excluded from this release type: renderPlugin */
1257
- /**
1258
- * Disables and enables the player.
1259
- * @param flag -Forces disabled mode (true) or enabled mode (false). Disabled player cannot be seeked forward.
1260
- */
1261
- toggleDisable: (flag?: boolean) => void;
1262
- /* Excluded from this release type: original_src */
1263
- /**
1264
- * The root element of the video player. This is the immediate parent element of the video tag.
1265
- */
1266
- root: PlayerRoot;
1267
- /* Excluded from this release type: playerState */
1268
- /* Excluded from this release type: reaper */
1269
- /* Excluded from this release type: hasState */
1270
- /* Excluded from this release type: transitionState */
1271
- /**
1272
- * Toggles between playing and paused mode.
1273
- * @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.
1274
- */
1275
- togglePlay(on?: boolean): Promise<void>;
1276
- /* Excluded from this release type: toggleFullScreen */
1277
- /**
1278
- * @public
1279
- * Toggles between normal and fullscreen mode. The optional flag attribute forces the normal sized (false) or fullscreen (false) mode.
1280
- * The custom fullscreenenter and fullscreenexit events are sent respectively.
1281
- */
1282
- toggleFullScreen(on?: boolean): void;
1283
- /* Excluded from this release type: toggleMute */
1284
- /**
1285
- * Toggles between muted and original volume level.
1286
- */
1287
- toggleMute(): void;
1288
- /**
1289
- * Removes a Flowplayer instance from `flowplayer.instances` and emits the `flowplayer.events.REAP` event, enabling cleanup of unsafe resources.
1290
- */
1291
- destroy(): void;
1292
- /* Excluded from this release type: render */
1293
- /* Excluded from this release type: render */
1294
- createComponents(...args: string[]): HTMLElement[];
1295
- /**
1296
- * Adds or changes configuration object. Usually used in conjunction with `setSrc()`. You can use all top-level config options like `subtitle:` , `logo:`, `ima:` etc.
1297
- * @example
1298
- * ```
1299
- * setOpts({
1300
- * subtitles:{
1301
- * tracks:[
1302
- * {
1303
- * src: "1.vtt",
1304
- * label: "English",
1305
- * default: true
1306
- * }, {
1307
- * src: "2.vtt",
1308
- * label: "Spanish",
1309
- * default : false }]},
1310
- * logo: "https://myserver.com/logo.png"
1311
- * })
1312
- * ```
1313
- */
1314
- setOpts(config: Config): void;
1315
- /**
1316
- * Sets the video source to be played. The src attribute can be a string or an object similar to the src property.
1317
- */
1318
- setSrc(sources: UnsafeSource): void;
1319
- /* Excluded from this release type: setSrc */
1320
- /* Excluded from this release type: setAttrs */
1321
- /* Excluded from this release type: opt */
1322
- /* Excluded from this release type: enqueueSeek */
1323
- /* Excluded from this release type: setState */
1324
- setState(state: PlayerState, flag: boolean): void;
1325
- /* Excluded from this release type: toJSON */
1326
- /**
1327
- * Adds a language to the project. See {@link https://developer.wowza.com/docs/wowza-flowplayer/player/translations/#using-npm| Official documentation}
1328
- */
1329
- i18n(k: TranslationKey): string;
1330
- i18n(k: string, fallback: string): string;
1331
- /* Excluded from this release type: deviceId */
1332
- /* Excluded from this release type: live_state */
1333
- /**
1334
- * A reference to the configuration state of the player.
1335
- */
1336
- opts: Config;
1337
- /* Excluded from this release type: plugins */
1338
- /* Excluded from this release type: dvr_offset */
1339
- message?: {
1340
- events: Record<string, string>;
1341
- };
1342
- /**
1343
- * A boolean specifying whether the player is disabled and the user cannot seek forward using the mouse or keyboard.
1344
- * Player is disabled and enabled with the `toggleDisable()` method.
1345
- */
1346
- disabled: boolean;
1347
- /* Excluded from this release type: started */
1348
- /* Excluded from this release type: token */
1349
- /* Excluded from this release type: _customElements */
1350
- /* Excluded from this release type: _storage */
1351
- };
1352
-
1353
- declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
1354
-
1355
- declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
1356
- [REAP]: ReapEventDetail;
1357
- [SOURCE]: SourceEventDetail;
1358
- [MOUNT]: MountEventDetail;
1359
- [LIVE]: LiveEventDetail;
1360
- [DVR]: DvrEventDetail;
1361
- [RETRY]: RetryEventDetail;
1362
- [RECOVER]: RecoverEventDetail;
1363
- [QUALITIES]: QualitiesEventDetail;
1364
- [QUALITY_CHANGE]: QualityChangeEventDetail;
1365
- [STANDARD_ERROR]: FlowplayerErrorEventDetail;
1366
- /* Excluded from this release type: audioonlysource */
1367
- /* Excluded from this release type: renderplugin */
1368
- /* Excluded from this release type: "seek:queued" */
1369
- /* Excluded from this release type: "seek:cancel" */
1370
- /* Excluded from this release type: "plugin:registered" */
1371
- /* Excluded from this release type: intersectionchange */
1372
- /* Excluded from this release type: "flowplayer:feature" */
1373
- /* Excluded from this release type: beforeplay */
1374
- /* Excluded from this release type: beforepause */
1375
- /* Excluded from this release type: state */
1376
- /* Excluded from this release type: config */
1377
- /* Excluded from this release type: "error:fatal" */
1378
- };
1379
-
1380
- declare type PlayerCustomEventsOverloads = {
1381
- /**
1382
- * 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.
1383
- */
1384
- on(event: typeof MOUNT, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof MOUNT]>) => void): Player;
1385
- /**
1386
- * Sent when an error occurs. Learn more about error handling.
1387
- */
1388
- on(// FIXME - this event is in context-menu plugin
1389
- event: typeof CONTEXT_MENU, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CONTEXT_MENU]>) => void): Player;
1390
- /* Excluded from this release type: on */
1391
- /* Excluded from this release type: on */
1392
- /* Excluded from this release type: on */
1393
- /**
1394
- * Sent when the player becomes visible for the user.
1395
- */
1396
- on(event: typeof VIEW_ENTER, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof VIEW_ENTER]>) => void): Player;
1397
- /**
1398
- * Sent when the player leaves the users viewport and is longer visible.
1399
- */
1400
- on(event: typeof VIEW_LEAVE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof VIEW_LEAVE]>) => void): Player;
1401
- /**
1402
- * Sent right before the player src attribute is set. This allows you to change the video URL before playback.
1403
- */
1404
- on(event: typeof SOURCE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof SOURCE]>) => void): Player;
1405
- /**
1406
- * Emitted when an Error recovery is attempted
1407
- */
1408
- on(event: typeof RECOVER, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RECOVER]>) => void): Player;
1409
- /**
1410
- * 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.
1411
- */
1412
- on(event: typeof REAP, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof REAP]>) => void): Player;
1413
- /**
1414
- * Emitted when a player will retry to reload
1415
- */
1416
- on(event: typeof RETRY, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RETRY]>) => void): Player;
1417
- /* Excluded from this release type: on */
1418
- /**
1419
- * Emitted when the set of underlying qualities has changed.
1420
- */
1421
- on(event: typeof QUALITIES, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITIES]>) => void): Player;
1422
- /**
1423
- * Emitted when the media changes quality.
1424
- */
1425
- on(event: typeof QUALITY_CHANGE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITY_CHANGE]>) => void): Player;
1426
- /**
1427
- * Emitted when a standard FlowplayerError is encountered
1428
- */
1429
- on(event: typeof STANDARD_ERROR, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof STANDARD_ERROR]>) => void): Player;
1430
- /* Excluded from this release type: on */
1431
- /**
1432
- * Listen to this event to create a recommendations grid using the data passed with the event.
1433
- */
1434
- on(event: typeof RECOMMENDATIONS_READY, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RECOMMENDATIONS_READY]>) => void): Player;
1435
- /* Excluded from this release type: on */
1436
- /* Excluded from this release type: on */
1437
- /**
1438
- * when the player has started playing dvr content
1439
- */
1440
- on(event: typeof DVR, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof DVR]>) => void): Player;
1441
- /**
1442
- * when src is a livestream
1443
- */
1444
- on(event: typeof LIVE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof LIVE]>) => void): Player;
1445
- /* Excluded from this release type: on */
1446
- /* Excluded from this release type: on */
1447
- /* Excluded from this release type: on */
1448
- /* Excluded from this release type: on */
1449
- /* Excluded from this release type: on */
1450
- /* Excluded from this release type: on */
1451
- /**
1452
- * TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
1453
- * https://wowzamedia.jira.com/browse/PLAY-653
1454
- */
1455
- on<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1456
- /* Excluded from this release type: on */
1457
- /**
1458
- * Same as `on()`, but the handler function is executed only once.
1459
- */
1460
- once<T extends PlayerCustomEventName>(event: T, handler: (e: FPEvent<PlayerCustomEventsDetailMap[T]>) => void): Player;
1461
- /**
1462
- * Same as `on()`, but the handler function is executed only once.
1463
- */
1464
- once<T extends PlayerNativeEventName>(event: T, handler: (e: PlayerNativeEventsDetailMap[T]) => void): Player;
1465
- once<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1466
- /**
1467
- * Removes the event handler with the specified event type.
1468
- */
1469
- off<T extends PlayerCustomEventName>(event: T, handler: (e: FPEvent<PlayerCustomEventsDetailMap[T]>) => void): Player;
1470
- /**
1471
- * Removes the event handler with the specified event type.
1472
- */
1473
- off<T extends PlayerNativeEventName>(event: T, handler: (e: PlayerNativeEventsDetailMap[T]) => void): Player;
1474
- /**
1475
- * Removes the event handler with the specified event type.
1476
- */
1477
- off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1478
- /* Excluded from this release type: poll */
1479
- emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1480
- emit(event: never, data?: never): Player;
1481
- /* Excluded from this release type: emit */
1482
- /* Excluded from this release type: emit */
1483
- };
1484
-
1485
- declare type PlayerEmittableCustomEventsDetailMap = {
1486
- [CONTEXT_MENU]: ContextMenuEventDetail;
1487
- [VIEW_ENTER]: ViewEnterEventDetail;
1488
- [VIEW_LEAVE]: ViewLeaveEventDetail;
1489
- [RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
1490
- };
1491
-
1492
- declare type PlayerEmittableEventNames = keyof PlayerEmittableCustomEventsDetailMap;
1493
-
1494
- /**
1495
- * @public
1496
- */
1497
- declare type PlayerEventOverloads = PlayerNativeEventsOverloads & PlayerCustomEventsOverloads;
1498
-
1499
- declare type PlayerNativeEventName = keyof PlayerNativeEventsDetailMap;
1500
-
1501
- declare type PlayerNativeEventsDetailMap = HTMLVideoElementEventMap;
1502
-
1503
- declare type PlayerNativeEventsOverloads = {
1504
- on<K extends keyof PlayerNativeEventsDetailMap>(event: K, handler: (ev: PlayerNativeEventsDetailMap[K]) => void): Player;
1505
- };
1506
-
1507
- /**
1508
- * @public
1509
- * The root element of the video player. This is the immediate parent element of the video tag.
1510
- */
1511
- declare type PlayerRoot = HTMLElement & {
1512
- /* Excluded from this release type: prevWidth */
1513
- };
1514
-
1515
- /**
1516
- * @public
1517
- */
1518
- declare type PlayerState = FlowplayerStates[keyof FlowplayerStates];
1519
-
1520
- /* Excluded from this release type: _PlayerState */
1521
-
1522
- /* Excluded from this release type: PlayerStates */
1523
-
1524
- /**
1525
- * @public
1526
- */
1527
- declare type PlayerWith<T> = T & Player;
1528
-
1529
- declare type PlayerWithOpts<PluginPlayer extends Player = Player, PluginConfig extends Config = Config> = {
1530
- /* Excluded from this release type: on */
1531
- } & Omit<PluginPlayer, "opts" | "setOpts"> & {
1532
- opts: PluginConfig;
1533
- setOpts: (config: PluginConfig) => void;
1534
- };
1535
-
1536
- declare const PLAYING = "is-playing";
1537
-
1538
- /**
1539
- * @public
1540
- */
1541
- declare const /**
1542
- @public
1543
- * when a new player is inserted into the HTML
1544
- */ /**
1545
- * @public
1546
- */
1547
- PLAYING_2 = "playing";
1548
-
1549
- /**
1550
- * @public
1551
- */
1552
- declare interface Plugin_2<PluginConfig extends Config = Config, PluginPlayer extends Player = Player> {
1553
- /**
1554
- * a plugin must always implement the init method so a player instance knows how to initialize it
1555
- */
1556
- init(config: PluginConfig, container: PlayerRoot, player: PluginPlayer): void;
1557
- }
1558
-
1559
- /* Excluded from this release type: PLUGIN_REGISTERED */
1560
-
1561
- /**
1562
- * @public
1563
- */
1564
- declare interface PluginCtor<PluginConfig extends Config = Config, PluginPlayer extends Player = Player> {
1565
- new (umd: FlowplayerUMD, player: Player): Plugin_2<PluginConfig, PluginPlayer>;
1566
- pluginName: string;
1567
- }
1568
-
1569
- /* Excluded from this release type: PluginRegisteredEventDetail */
1570
-
1571
- declare type PluginStates = string;
1572
-
1573
- /**
1574
- * @public
1575
- */
1576
- declare const /**
1577
- @public
1578
- * when a new player is inserted into the HTML
1579
- */ /**
1580
- * @public
1581
- */
1582
- PORTRAIT = "portrait";
1583
-
1584
- /**
1585
- * @public
1586
- */
1587
- declare const /**
1588
- @public
1589
- * when a new player is inserted into the HTML
1590
- */ /**
1591
- * @public
1592
- */
1593
- PROGRESS = "progress";
1594
-
1595
- /**
1596
- * @public
1597
- */
1598
- declare type QselOption = (Level & {
1599
- level: number;
1600
- }) | Representation | {
1601
- name: string | number;
1602
- encodingId: string;
1603
- spatialLayerId: number;
1604
- temporalLayerId: number;
1605
- maxSpatialLayerId: number;
1606
- maxTemporalLayerId: number;
1607
- height: number;
1608
- width: number;
1609
- };
1610
-
1611
- /**
1612
- * @public
1613
- * emitted whenever a list of qualities has been made available
1614
- * when index 0 is the highest quality and index 0+N is the lowest
1615
- */
1616
- declare const /**
1617
- @public
1618
- * when a new player is inserted into the HTML
1619
- */ /**
1620
- * @public
1621
- * emitted whenever a list of qualities has been made available
1622
- * when index 0 is the highest quality and index 0+N is the lowest
1623
- */
1624
- QUALITIES = "qualities";
1625
-
1626
- /**
1627
- * @public
1628
- */
1629
- declare type QualitiesEventDetail = QselOption[];
1630
-
1631
- /**
1632
- * @public
1633
- * emitted whenever the media changes quality
1634
- */
1635
- declare const /**
1636
- @public
1637
- * when a new player is inserted into the HTML
1638
- */ /**
1639
- * @public
1640
- * emitted whenever the media changes quality
1641
- */
1642
- QUALITY_CHANGE = "qualitychange";
1643
-
1644
- /**
1645
- * @public
1646
- */
1647
- declare type QualityChangeEventDetail = {
1648
- before?: (Level & {
1649
- level?: number;
1650
- }) | Representation;
1651
- after: (Level & {
1652
- level?: number;
1653
- }) | Representation;
1654
- plugin: string;
1655
- automatic: boolean;
1656
- /* Excluded from this release type: downscale */
1657
- };
1658
-
1659
- declare enum QualityOpts {
1660
- LOW = 1,
1661
- MEDIUM = 2,
1662
- HIGH = 4
1663
- }
1664
-
1665
- /**
1666
- * @public
1667
- * emitted when it is safe to clean up a fp instance
1668
- */
1669
- declare const /**
1670
- @public
1671
- * when a new player is inserted into the HTML
1672
- */ /**
1673
- * @public
1674
- * emitted when it is safe to clean up a fp instance
1675
- */
1676
- REAP = "reap";
1677
-
1678
- /**
1679
- * @public
1680
- */
1681
- declare type ReapEventDetail = null;
1682
-
1683
- /**
1684
- * @public
1685
- */
1686
- declare type RecommendationItem = {
1687
- poster?: string;
1688
- src?: UnsafeSource;
1689
- title?: string;
1690
- description?: string;
1691
- metadata: OVPMetadata;
1692
- chapters?: {
1693
- src: string;
1694
- };
1695
- thumbnails?: {
1696
- src: string;
1697
- };
1698
- subtitles?: string[];
1699
- };
1700
-
1701
- /**
1702
- * @public
1703
- */
1704
- declare const /**
1705
- @public
1706
- * when a new player is inserted into the HTML
1707
- */ /**
1708
- * @deprecated please use Endscreen.events.RECOMMENDATIONS_READY / flowplayer.endscreen.events.RECOMMENDATIONS_READY
1709
- **/
1710
- /**
1711
- * @public
1712
- */
1713
- RECOMMENDATIONS_READY = "recommendationsready";
1714
-
1715
- /**
1716
- * @public
1717
- */
1718
- declare type RecommendationsReadyEventDetail = {
1719
- playlist: RecommendationItem[];
1720
- };
1721
-
1722
- /**
1723
- * @public
1724
- * emitted when an Error recovery is attempted
1725
- */
1726
- declare const /**
1727
- @public
1728
- * when a new player is inserted into the HTML
1729
- */ /**
1730
- * @public
1731
- * emitted when an Error recovery is attempted
1732
- */
1733
- RECOVER = "recover";
1734
-
1735
- /**
1736
- * @public
1737
- */
1738
- declare type RecoverEventDetail = null;
1739
-
1740
- /* Excluded from this release type: REMOTE_SESSION_ENDED */
1741
-
1742
- /* Excluded from this release type: REMOTE_SESSION_STARTED */
1743
-
1744
- /* Excluded from this release type: RENDER_PLUGIN */
1745
-
1746
- /**
1747
- * @public
1748
- */
1749
- declare type RenderPluginEventDetail = HTMLElement;
1750
-
1751
- /**
1752
- * @public
1753
- */
1754
- declare const /**
1755
- @public
1756
- * when a new player is inserted into the HTML
1757
- */ /**
1758
- * @public
1759
- */
1760
- RESIZE = "resize";
1761
-
1762
- /**
1763
- * @public
1764
- */
1765
- declare const /**
1766
- @public
1767
- * when a new player is inserted into the HTML
1768
- */ /**
1769
- * @public
1770
- */
1771
- RETRY = "retry";
1772
-
1773
- /**
1774
- * @public
1775
- */
1776
- declare type RetryEventDetail = FlowplayerErrorEventDetail;
1777
-
1778
- declare const RetryMap: {
1779
- readonly ON: "on";
1780
- readonly WITHOUT_RECOVERY: "without_recovery";
1781
- readonly OFF: "off";
1782
- };
1783
-
1784
- declare const RTL = "is-rtl";
1785
-
1786
- declare const SampleRate: {
1787
- /**
1788
- * for new features with low adoption rates, or features that are likely to not be used frequently, will include every single instance in the sample.
1789
- */
1790
- readonly All: 1;
1791
- /**
1792
- * for events we anticipate receive a lot of usage and maybe happen frequently per session
1793
- */
1794
- readonly High: 0.1;
1795
- /**
1796
- * for events that can happen quickly, but not in massive amounts
1797
- */
1798
- readonly Medium: 0.01;
1799
- /**
1800
- * for very high volume events where you only want to sample a low amount of them (think volumechange | timeupdate)
1801
- */
1802
- readonly Low: 0.001;
1803
- /**
1804
- * placeholder for never sampling something, useful in situations where we want to add code to sample, but maybe not turn it on just yet.
1805
- */
1806
- readonly None: 0;
1807
- };
1808
-
1809
- /**
1810
- * @public
1811
- */
1812
- declare const /**
1813
- @public
1814
- * when a new player is inserted into the HTML
1815
- */ /**
1816
- * @public
1817
- */
1818
- SCROLL = "scroll";
1819
-
1820
- declare const SEAMLESS = "is-seamless";
1821
-
1822
- /* Excluded from this release type: SEEK_CANCEL */
1823
-
1824
- /* Excluded from this release type: SEEK_QUEUED */
1825
-
1826
- declare const SEEKABLE = "is-seekable";
1827
-
1828
- /* Excluded from this release type: SeekCancelEventDetail */
1829
-
1830
- /**
1831
- * @public
1832
- */
1833
- declare const /**
1834
- @public
1835
- * when a new player is inserted into the HTML
1836
- */ /**
1837
- * @public
1838
- */
1839
- SEEKED = "seeked";
1840
-
1841
- declare const SEEKING = "is-seeking";
1842
-
1843
- /**
1844
- * @public
1845
- */
1846
- declare const /**
1847
- @public
1848
- * when a new player is inserted into the HTML
1849
- */ /**
1850
- * @public
1851
- */
1852
- SEEKING_2 = "seeking";
1853
-
1854
- /* Excluded from this release type: SeekQueuedEventDetail */
1855
-
1856
- /**
1857
- * @public
1858
- * @deprecated please use Qsel.events.SET_QUALITY
1859
- */
1860
- declare const /**
1861
- @public
1862
- * when a new player is inserted into the HTML
1863
- */ /**
1864
- * @public
1865
- * @deprecated please use Qsel.events.SET_QUALITY
1866
- */
1867
- SET_QUALITY = "quality:set";
1868
-
1869
- declare const SMALL = "is-small";
1870
-
1871
- /**
1872
- * @public
1873
- * emitted when a valid source is found prior to mounting
1874
- */
1875
- declare const /**
1876
- @public
1877
- * when a new player is inserted into the HTML
1878
- */ /**
1879
- * @public
1880
- * emitted when a valid source is found prior to mounting
1881
- */
1882
- SOURCE = "src";
1883
-
1884
- /**
1885
- * @public
1886
- */
1887
- declare type SourceEventDetail = SourceObj;
1888
-
1889
- /**
1890
- * @public
1891
- */
1892
- declare type SourceObj<T = unknown> = {
1893
- src?: SourceStr;
1894
- /**
1895
- * the MIME type (example `video/mp4` or `application/x-mpegurl`)
1896
- */
1897
- type?: string;
1898
- } & T;
1899
-
1900
- /**
1901
- * @public
1902
- */
1903
- declare type SourceStr = string;
1904
-
1905
- /**
1906
- * @public
1907
- */
1908
- declare type SourceWith<T> = SourceObj & T;
1909
-
1910
- /**
1911
- * @public
1912
- * emitted to handle playback related errors
1913
- */
1914
- declare const /**
1915
- @public
1916
- * when a new player is inserted into the HTML
1917
- */ /**
1918
- * @public
1919
- * emitted to handle playback related errors
1920
- */
1921
- STANDARD_ERROR = "flowplayer:error";
1922
-
1923
- declare const STARTING = "is-starting";
1924
-
1925
- /* Excluded from this release type: STATE */
1926
-
1927
- /* Excluded from this release type: StateEventDetail */
1928
-
1929
- declare namespace states {
1930
- export {
1931
- PLAYING,
1932
- FULLSCREEN,
1933
- PAUSED,
1934
- MUTED,
1935
- LOADED,
1936
- LOADING,
1937
- STARTING,
1938
- SEEKING,
1939
- GRABBING,
1940
- DISABLED,
1941
- SMALL,
1942
- TINY,
1943
- RTL,
1944
- TV,
1945
- ENDED,
1946
- LIVE_2 as LIVE,
1947
- ERRORED,
1948
- WAITING,
1949
- AUTOPLAY,
1950
- SEAMLESS,
1951
- TOGGLING,
1952
- LIVE_SEEKED,
1953
- NO_DVR,
1954
- HAS_POSTER,
1955
- WILL_PLAY,
1956
- WILL_PAUSE,
1957
- MENU_OPENED,
1958
- TOUCHED,
1959
- HOVERED,
1960
- TOUCH_DEVICE,
1961
- WILL_SEEK,
1962
- SEEKABLE,
1963
- IN_VIEWPORT,
1964
- NO_CONTROLS,
1965
- DESTROYED,
1966
- IS_SOURCE_PROCESSING
1967
- }
1968
- }
1969
-
1970
- /**
1971
- * @public
1972
- */
1973
- declare const /**
1974
- @public
1975
- * when a new player is inserted into the HTML
1976
- */ /**
1977
- * @public
1978
- */
1979
- TIME_UPDATE = "timeupdate";
1980
-
1981
- declare const TINY = "is-tiny";
1982
-
1983
- declare const TOGGLING = "is-toggling";
1984
-
1985
- /**
1986
- * @public
1987
- */
1988
- declare const /**
1989
- @public
1990
- * when a new player is inserted into the HTML
1991
- */ /**
1992
- * @public
1993
- */
1994
- TOUCH_CANCEL = "touchcancel";
1995
-
1996
- declare const TOUCH_DEVICE = "is-touch-device";
1997
-
1998
- /**
1999
- * @public
2000
- */
2001
- declare const /**
2002
- @public
2003
- * when a new player is inserted into the HTML
2004
- */ /**
2005
- * @public
2006
- */
2007
- TOUCH_END = "touchend";
2008
-
2009
- /**
2010
- * @public
2011
- */
2012
- declare const /**
2013
- @public
2014
- * when a new player is inserted into the HTML
2015
- */ /**
2016
- * @public
2017
- */
2018
- TOUCH_MOVE = "touchmove";
2019
-
2020
- /**
2021
- * @public
2022
- */
2023
- declare const /**
2024
- @public
2025
- * when a new player is inserted into the HTML
2026
- */ /**
2027
- * @public
2028
- */
2029
- TOUCH_START = "touchstart";
2030
-
2031
- declare const TOUCHED = "is-touched";
2032
-
2033
- /**
2034
- * @public
2035
- * All possible full paths to each translation, i.e. "core.mute"| "core.play" | "ads.ad" etc.
2036
- * This type is useful for developers using translation querying based on path, like in lodash's get()
2037
- */
2038
- declare type TranslationKey = Paths<Translation, {
2039
- leavesOnly: true;
2040
- }>;
2041
-
2042
- declare type TSampleRate = typeof SampleRate;
2043
-
2044
- declare const TV = "is-tv";
2045
-
2046
- /**
2047
- * @public
2048
- */
2049
- declare type UnsafeSource<SrcMixin = unknown> = SourceStr | SourceObj<SrcMixin> | Array<SourceStr | SourceObj<SrcMixin>>;
2050
-
2051
- declare type ValidSampleRate = TSampleRate[keyof TSampleRate];
2052
-
2053
- /**
2054
- * @public
2055
- * emitted when a video track is selected
2056
- */
2057
- declare const /**
2058
- @public
2059
- * when a new player is inserted into the HTML
2060
- */ /**
2061
- * @public
2062
- * emitted when a video track is selected
2063
- */
2064
- VIDEO_TRACK_SELECT = "tracks:video:select";
2065
-
2066
- /**
2067
- * @public
2068
- * emitted whenever multiple video tracks are detected
2069
- */
2070
- declare const /**
2071
- @public
2072
- * when a new player is inserted into the HTML
2073
- */ /**
2074
- * @public
2075
- * emitted whenever multiple video tracks are detected
2076
- */
2077
- VIDEO_TRACKS = "videoTracks";
2078
-
2079
- /**
2080
- * @public
2081
- * when a player enters the viewpoint
2082
- */
2083
- declare const /**
2084
- @public
2085
- * when a new player is inserted into the HTML
2086
- */ /**
2087
- * @public
2088
- * when a player enters the viewpoint
2089
- */
2090
- VIEW_ENTER = "viewenter";
2091
-
2092
- /**
2093
- * @public
2094
- * when a player leaves the viewport
2095
- */
2096
- declare const /**
2097
- @public
2098
- * when a new player is inserted into the HTML
2099
- */ /**
2100
- * @public
2101
- * when a player leaves the viewport
2102
- */
2103
- VIEW_LEAVE = "viewleave";
2104
-
2105
- /**
2106
- * @public
2107
- */
2108
- declare type ViewEnterEventDetail = null;
2109
-
2110
- /**
2111
- * @public
2112
- */
2113
- declare type ViewLeaveEventDetail = null;
2114
-
2115
- /**
2116
- * @public
2117
- */
2118
- declare const /**
2119
- @public
2120
- * when a new player is inserted into the HTML
2121
- */ /**
2122
- * @public
2123
- */
2124
- VOLUME_CHANGE = "volumechange";
2125
-
2126
- declare const WAITING = "is-waiting";
2127
-
2128
- /**
2129
- * @public
2130
- */
2131
- declare const /**
2132
- @public
2133
- * when a new player is inserted into the HTML
2134
- */ /**
2135
- * @public
2136
- */
2137
- WAITING_2 = "waiting";
2138
-
2139
- /* Excluded from this release type: WEBKIT_NEEDKEY */
2140
-
2141
- declare const WILL_PAUSE = "will-pause";
2142
-
2143
- declare const WILL_PLAY = "will-play";
2144
-
2145
- declare const WILL_SEEK = "will-seek";
2146
-
2147
- export { }