@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,2181 +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
- declare const IN_VIEWPORT = "is-in-viewport";
963
-
964
- /* Excluded from this release type: INTERSECTIONCHANGE */
965
-
966
- /* Excluded from this release type: IntersectionChangeEventDetail */
967
-
968
- declare const IS_SOURCE_PROCESSING = "is-source-processing";
969
-
970
- declare type JSONPlayer = any;
971
-
972
- /**
973
- * @public
974
- */
975
- declare const /**
976
- @public
977
- * when a new player is inserted into the HTML
978
- */ /**
979
- * @public
980
- */
981
- KEYDOWN = "keydown";
982
-
983
- /**
984
- * @public
985
- */
986
- declare const /**
987
- @public
988
- * when a new player is inserted into the HTML
989
- */ /**
990
- * @public
991
- */
992
- KEYUP = "keyup";
993
-
994
- /**
995
- * @public
996
- */
997
- declare type KeyValue = Record<string, any>;
998
-
999
- /**
1000
- * @public
1001
- */
1002
- declare const /**
1003
- @public
1004
- * when a new player is inserted into the HTML
1005
- */ /**
1006
- * @public
1007
- */
1008
- LANDSCAPE = "landscape";
1009
-
1010
- /**
1011
- * @public
1012
- * when src is a livestream
1013
- */
1014
- declare const /**
1015
- @public
1016
- * when a new player is inserted into the HTML
1017
- */ /**
1018
- * @public
1019
- * when src is a livestream
1020
- */
1021
- LIVE = "live";
1022
-
1023
- declare const LIVE_2 = "is-live";
1024
-
1025
- declare const LIVE_SEEKED = "is-live-seeked";
1026
-
1027
- /**
1028
- * @public
1029
- */
1030
- declare type LiveEventDetail = null;
1031
-
1032
- /**
1033
- * @public
1034
- */
1035
- declare const /**
1036
- @public
1037
- * when a new player is inserted into the HTML
1038
- */ /**
1039
- * @public
1040
- */
1041
- LOAD = "load";
1042
-
1043
- /**
1044
- * @public
1045
- */
1046
- declare const /**
1047
- @public
1048
- * when a new player is inserted into the HTML
1049
- */ /**
1050
- * @public
1051
- */
1052
- LOAD_START = "loadstart";
1053
-
1054
- declare const LOADED = "is-loaded";
1055
-
1056
- /**
1057
- * @public A plugin that supports loading new media formats. Use 'class MyPlugin implements Loader\<...\>' when writing your custom Loader
1058
- * @typeParam PluginPlayer- Player API that will be implemented by the loader. Loader at least must implement on(\<loader-name\>:attached, ...) event handler
1059
- */
1060
- declare interface Loader<PluginOwnConfig extends KeyValue, // FIXME extends Config
1061
- PluginPlayer extends PlayerWith<_AttachedEventCheck>> extends Plugin_2<PluginOwnConfig, PluginPlayer> {
1062
- onload: EnsureOnAttached<(config: ConfigWith<PluginOwnConfig>, root: PlayerRoot, video: PlayerWith<PluginPlayer>, src: SourceObj) => void, PluginPlayer>;
1063
- wants<S = SourceObj>(srcString: SourceStr, srcObj: S, config: ConfigWith<PluginOwnConfig>): boolean;
1064
- wants<S = KeyValue>(srcString: SourceStr, srcObj: SourceWith<S>, config: ConfigWith<PluginOwnConfig>): boolean;
1065
- }
1066
-
1067
- declare const LOADING = "is-loading";
1068
-
1069
- declare type MapToBareConfigs<Plugins extends PluginCtor[]> = {
1070
- [PluginType in keyof Plugins]: ExtractBareConfig<Plugins[PluginType]>;
1071
- };
1072
-
1073
- declare type MapToPlayerExtensions<Plugins extends PluginCtor[]> = {
1074
- [PluginIndex in keyof Plugins]: ExtractPluginPlayerExtension<Plugins[PluginIndex]>;
1075
- };
1076
-
1077
- declare const MENU_OPENED = "has-menu-opened";
1078
-
1079
- /**
1080
- * Combines plugin config and returns a type derived from Config
1081
- */
1082
- declare type MergeConfigs<Plugins extends PluginCtor[]> = MergePluginConfigs<MapToBareConfigs<Plugins>>;
1083
-
1084
- declare type MergePlayerExtensions<Plugins extends PluginCtor[]> = ArrayToIntersection<MapToPlayerExtensions<Plugins>>;
1085
-
1086
- declare type MergePluginConfigs<PluginBareConfigs extends unknown[]> = HasSrcExtensions<PluginBareConfigs> extends true ? ConfigWithSourceExtensions<PluginBareConfigs> : ConfigWith<ArrayToIntersection<PluginBareConfigs>>;
1087
-
1088
- /**
1089
- * @public
1090
- * general video events flowplayer uses internally
1091
- * https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events
1092
- */
1093
- declare const /**
1094
- @public
1095
- * when a new player is inserted into the HTML
1096
- */ /**
1097
- * @public
1098
- * general video events flowplayer uses internally
1099
- * https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events
1100
- */
1101
- METADATA = "loadedmetadata";
1102
-
1103
- /**
1104
- @public
1105
- * when a new player is inserted into the HTML
1106
- */
1107
- declare const /**
1108
- @public
1109
- * when a new player is inserted into the HTML
1110
- */ /**
1111
- @public
1112
- * when a new player is inserted into the HTML
1113
- */ MOUNT = "mount";
1114
-
1115
- /**
1116
- * @public
1117
- */
1118
- declare type MountEventDetail = null;
1119
-
1120
- /**
1121
- * @public
1122
- */
1123
- declare const /**
1124
- @public
1125
- * when a new player is inserted into the HTML
1126
- */ /**
1127
- * @public
1128
- */
1129
- MOUSE_DOWN = "mousedown";
1130
-
1131
- /**
1132
- * @public
1133
- */
1134
- declare const /**
1135
- @public
1136
- * when a new player is inserted into the HTML
1137
- */ /**
1138
- * @public
1139
- */
1140
- MOUSE_ENTER = "mouseenter";
1141
-
1142
- /**
1143
- * @public
1144
- */
1145
- declare const /**
1146
- @public
1147
- * when a new player is inserted into the HTML
1148
- */ /**
1149
- * @public
1150
- */
1151
- MOUSE_LEAVE = "mouseleave";
1152
-
1153
- /**
1154
- * @public
1155
- */
1156
- declare const /**
1157
- @public
1158
- * when a new player is inserted into the HTML
1159
- */ /**
1160
- * @public
1161
- */
1162
- MOUSE_MOVE = "mousemove";
1163
-
1164
- /**
1165
- * @public
1166
- */
1167
- declare const /**
1168
- @public
1169
- * when a new player is inserted into the HTML
1170
- */ /**
1171
- * @public
1172
- */
1173
- MOUSE_UP = "mouseup";
1174
-
1175
- declare const MUTED = "is-muted";
1176
-
1177
- declare const NO_CONTROLS = "no-controls";
1178
-
1179
- declare const NO_DVR = "no-timeline";
1180
-
1181
- /* Excluded from this release type: NON_RECOVERABLE_ERROR */
1182
-
1183
- /* Excluded from this release type: NonRecoverableErrorEventDetail */
1184
-
1185
- /* Excluded from this release type: NQState */
1186
-
1187
- /**
1188
- * @public
1189
- */
1190
- declare type OVPMetadata = {
1191
- player_id?: string;
1192
- media_id?: string;
1193
- ad_keywords?: string;
1194
- title?: string;
1195
- description?: string;
1196
- category_name?: string;
1197
- duration?: number;
1198
- tags?: string;
1199
- };
1200
-
1201
- /**
1202
- * @public
1203
- */
1204
- declare const /**
1205
- @public
1206
- * when a new player is inserted into the HTML
1207
- */ /**
1208
- * @public
1209
- */
1210
- PAUSE = "pause";
1211
-
1212
- declare const PAUSED = "is-paused";
1213
-
1214
- declare type PickGlobalSrcExtension<PluginSrcs extends unknown[]> = {
1215
- [Index in keyof PluginSrcs]: PluginSrcs[Index] extends {
1216
- type: string;
1217
- } ? unknown : PluginSrcs[Index];
1218
- };
1219
-
1220
- /**
1221
- * Maps incoming array to the src extension type
1222
- * @example
1223
- * ```
1224
- * PickSrcExtensions<[
1225
- * {configProp: boolean, src: UnsafeSource<{srcProp: boolean}>},
1226
- * {}
1227
- * ]> // = [{srcProp: boolean}, never]
1228
- * ```
1229
- */
1230
- declare type PickSrcExtensions<PluginBareConfigs extends unknown[]> = {
1231
- [PluginType in keyof PluginBareConfigs]: ExtractSrcExtension<PluginBareConfigs[PluginType]>;
1232
- };
1233
-
1234
- /**
1235
- * @public
1236
- */
1237
- declare const /**
1238
- @public
1239
- * when a new player is inserted into the HTML
1240
- */ /**
1241
- * @public
1242
- */
1243
- PLAY = "play";
1244
-
1245
- /**
1246
- * @public
1247
- */
1248
- declare type Player = HTMLVideoElement & PlayerEventOverloads & {
1249
- /* Excluded from this release type: renderPlugin */
1250
- /**
1251
- * Disables and enables the player.
1252
- * @param flag -Forces disabled mode (true) or enabled mode (false). Disabled player cannot be seeked forward.
1253
- */
1254
- toggleDisable: (flag?: boolean) => void;
1255
- /* Excluded from this release type: original_src */
1256
- /**
1257
- * The root element of the video player. This is the immediate parent element of the video tag.
1258
- */
1259
- root: PlayerRoot;
1260
- /* Excluded from this release type: playerState */
1261
- /* Excluded from this release type: reaper */
1262
- /* Excluded from this release type: hasState */
1263
- /* Excluded from this release type: transitionState */
1264
- /**
1265
- * Toggles between playing and paused mode.
1266
- * @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.
1267
- */
1268
- togglePlay(on?: boolean): Promise<void>;
1269
- /* Excluded from this release type: toggleFullScreen */
1270
- /**
1271
- * @public
1272
- * Toggles between normal and fullscreen mode. The optional flag attribute forces the normal sized (false) or fullscreen (false) mode.
1273
- * The custom fullscreenenter and fullscreenexit events are sent respectively.
1274
- */
1275
- toggleFullScreen(on?: boolean): void;
1276
- /* Excluded from this release type: toggleMute */
1277
- /**
1278
- * Toggles between muted and original volume level.
1279
- */
1280
- toggleMute(): void;
1281
- /**
1282
- * Removes a Flowplayer instance from `flowplayer.instances` and emits the `flowplayer.events.REAP` event, enabling cleanup of unsafe resources.
1283
- */
1284
- destroy(): void;
1285
- /* Excluded from this release type: render */
1286
- /* Excluded from this release type: render */
1287
- createComponents(...args: string[]): HTMLElement[];
1288
- /**
1289
- * Adds or changes configuration object. Usually used in conjunction with `setSrc()`. You can use all top-level config options like `subtitle:` , `logo:`, `ima:` etc.
1290
- * @example
1291
- * ```
1292
- * setOpts({
1293
- * subtitles:{
1294
- * tracks:[
1295
- * {
1296
- * src: "1.vtt",
1297
- * label: "English",
1298
- * default: true
1299
- * }, {
1300
- * src: "2.vtt",
1301
- * label: "Spanish",
1302
- * default : false }]},
1303
- * logo: "https://myserver.com/logo.png"
1304
- * })
1305
- * ```
1306
- */
1307
- setOpts(config: Config): void;
1308
- /**
1309
- * Sets the video source to be played. The src attribute can be a string or an object similar to the src property.
1310
- */
1311
- setSrc(sources: UnsafeSource): void;
1312
- /* Excluded from this release type: setSrc */
1313
- /* Excluded from this release type: setAttrs */
1314
- /* Excluded from this release type: opt */
1315
- /* Excluded from this release type: enqueueSeek */
1316
- /* Excluded from this release type: setState */
1317
- setState(state: PlayerState, flag: boolean): void;
1318
- /* Excluded from this release type: toJSON */
1319
- /**
1320
- * Adds a language to the project. See {@link https://developer.wowza.com/docs/wowza-flowplayer/player/translations/#using-npm| Official documentation}
1321
- */
1322
- i18n(k: TranslationKey): string;
1323
- i18n(k: string, fallback: string): string;
1324
- /* Excluded from this release type: deviceId */
1325
- /* Excluded from this release type: live_state */
1326
- /**
1327
- * A reference to the configuration state of the player.
1328
- */
1329
- opts: Config;
1330
- /* Excluded from this release type: plugins */
1331
- /* Excluded from this release type: dvr_offset */
1332
- message?: {
1333
- events: Record<string, string>;
1334
- };
1335
- /**
1336
- * A boolean specifying whether the player is disabled and the user cannot seek forward using the mouse or keyboard.
1337
- * Player is disabled and enabled with the `toggleDisable()` method.
1338
- */
1339
- disabled: boolean;
1340
- /* Excluded from this release type: started */
1341
- /* Excluded from this release type: token */
1342
- /* Excluded from this release type: _customElements */
1343
- /* Excluded from this release type: _storage */
1344
- };
1345
-
1346
- declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
1347
-
1348
- declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
1349
- [REAP]: ReapEventDetail;
1350
- [SOURCE]: SourceEventDetail;
1351
- [MOUNT]: MountEventDetail;
1352
- [LIVE]: LiveEventDetail;
1353
- [DVR]: DvrEventDetail;
1354
- [RETRY]: RetryEventDetail;
1355
- [RECOVER]: RecoverEventDetail;
1356
- [QUALITIES]: QualitiesEventDetail;
1357
- [QUALITY_CHANGE]: QualityChangeEventDetail;
1358
- [STANDARD_ERROR]: FlowplayerErrorEventDetail;
1359
- /* Excluded from this release type: audioonlysource */
1360
- /* Excluded from this release type: renderplugin */
1361
- /* Excluded from this release type: "seek:queued" */
1362
- /* Excluded from this release type: "seek:cancel" */
1363
- /* Excluded from this release type: "plugin:registered" */
1364
- /* Excluded from this release type: intersectionchange */
1365
- /* Excluded from this release type: "flowplayer:feature" */
1366
- /* Excluded from this release type: beforeplay */
1367
- /* Excluded from this release type: beforepause */
1368
- /* Excluded from this release type: state */
1369
- /* Excluded from this release type: config */
1370
- /* Excluded from this release type: "error:fatal" */
1371
- };
1372
-
1373
- declare type PlayerCustomEventsOverloads = {
1374
- /**
1375
- * 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.
1376
- */
1377
- on(event: typeof MOUNT, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof MOUNT]>) => void): Player;
1378
- /**
1379
- * Sent when an error occurs. Learn more about error handling.
1380
- */
1381
- on(// FIXME - this event is in context-menu plugin
1382
- event: typeof CONTEXT_MENU, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof CONTEXT_MENU]>) => void): Player;
1383
- /* Excluded from this release type: on */
1384
- /* Excluded from this release type: on */
1385
- /* Excluded from this release type: on */
1386
- /**
1387
- * Sent when the player becomes visible for the user.
1388
- */
1389
- on(event: typeof VIEW_ENTER, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof VIEW_ENTER]>) => void): Player;
1390
- /**
1391
- * Sent when the player leaves the users viewport and is longer visible.
1392
- */
1393
- on(event: typeof VIEW_LEAVE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof VIEW_LEAVE]>) => void): Player;
1394
- /**
1395
- * Sent right before the player src attribute is set. This allows you to change the video URL before playback.
1396
- */
1397
- on(event: typeof SOURCE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof SOURCE]>) => void): Player;
1398
- /**
1399
- * Emitted when an Error recovery is attempted
1400
- */
1401
- on(event: typeof RECOVER, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RECOVER]>) => void): Player;
1402
- /**
1403
- * 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.
1404
- */
1405
- on(event: typeof REAP, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof REAP]>) => void): Player;
1406
- /**
1407
- * Emitted when a player will retry to reload
1408
- */
1409
- on(event: typeof RETRY, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RETRY]>) => void): Player;
1410
- /* Excluded from this release type: on */
1411
- /**
1412
- * Emitted when the set of underlying qualities has changed.
1413
- */
1414
- on(event: typeof QUALITIES, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITIES]>) => void): Player;
1415
- /**
1416
- * Emitted when the media changes quality.
1417
- */
1418
- on(event: typeof QUALITY_CHANGE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITY_CHANGE]>) => void): Player;
1419
- /**
1420
- * Emitted when a standard FlowplayerError is encountered
1421
- */
1422
- on(event: typeof STANDARD_ERROR, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof STANDARD_ERROR]>) => void): Player;
1423
- /* Excluded from this release type: on */
1424
- /**
1425
- * Listen to this event to create a recommendations grid using the data passed with the event.
1426
- */
1427
- on(event: typeof RECOMMENDATIONS_READY, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RECOMMENDATIONS_READY]>) => void): Player;
1428
- /* Excluded from this release type: on */
1429
- /* Excluded from this release type: on */
1430
- /**
1431
- * when the player has started playing dvr content
1432
- */
1433
- on(event: typeof DVR, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof DVR]>) => void): Player;
1434
- /**
1435
- * when src is a livestream
1436
- */
1437
- on(event: typeof LIVE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof LIVE]>) => void): Player;
1438
- /* Excluded from this release type: on */
1439
- /* Excluded from this release type: on */
1440
- /* Excluded from this release type: on */
1441
- /* Excluded from this release type: on */
1442
- /* Excluded from this release type: on */
1443
- /* Excluded from this release type: on */
1444
- /**
1445
- * TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
1446
- * https://wowzamedia.jira.com/browse/PLAY-653
1447
- */
1448
- on<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1449
- /* Excluded from this release type: on */
1450
- /**
1451
- * Same as `on()`, but the handler function is executed only once.
1452
- */
1453
- once<T extends PlayerCustomEventName>(event: T, handler: (e: FPEvent<PlayerCustomEventsDetailMap[T]>) => void): Player;
1454
- /**
1455
- * Same as `on()`, but the handler function is executed only once.
1456
- */
1457
- once<T extends PlayerNativeEventName>(event: T, handler: (e: PlayerNativeEventsDetailMap[T]) => void): Player;
1458
- once<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1459
- /**
1460
- * Removes the event handler with the specified event type.
1461
- */
1462
- off<T extends PlayerCustomEventName>(event: T, handler: (e: FPEvent<PlayerCustomEventsDetailMap[T]>) => void): Player;
1463
- /**
1464
- * Removes the event handler with the specified event type.
1465
- */
1466
- off<T extends PlayerNativeEventName>(event: T, handler: (e: PlayerNativeEventsDetailMap[T]) => void): Player;
1467
- /**
1468
- * Removes the event handler with the specified event type.
1469
- */
1470
- off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1471
- /* Excluded from this release type: poll */
1472
- emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1473
- emit(event: never, data?: never): Player;
1474
- /* Excluded from this release type: emit */
1475
- /* Excluded from this release type: emit */
1476
- };
1477
-
1478
- declare type PlayerEmittableCustomEventsDetailMap = {
1479
- [CONTEXT_MENU]: ContextMenuEventDetail;
1480
- [VIEW_ENTER]: ViewEnterEventDetail;
1481
- [VIEW_LEAVE]: ViewLeaveEventDetail;
1482
- [RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
1483
- };
1484
-
1485
- declare type PlayerEmittableEventNames = keyof PlayerEmittableCustomEventsDetailMap;
1486
-
1487
- /**
1488
- * @public
1489
- */
1490
- declare type PlayerEventOverloads = PlayerNativeEventsOverloads & PlayerCustomEventsOverloads;
1491
-
1492
- declare type PlayerNativeEventName = keyof PlayerNativeEventsDetailMap;
1493
-
1494
- declare type PlayerNativeEventsDetailMap = HTMLVideoElementEventMap;
1495
-
1496
- declare type PlayerNativeEventsOverloads = {
1497
- on<K extends keyof PlayerNativeEventsDetailMap>(event: K, handler: (ev: PlayerNativeEventsDetailMap[K]) => void): Player;
1498
- };
1499
-
1500
- /**
1501
- * @public
1502
- * The root element of the video player. This is the immediate parent element of the video tag.
1503
- */
1504
- declare type PlayerRoot = HTMLElement & {
1505
- /* Excluded from this release type: prevWidth */
1506
- };
1507
-
1508
- /**
1509
- * @public
1510
- */
1511
- declare type PlayerState = FlowplayerStates[keyof FlowplayerStates];
1512
-
1513
- /* Excluded from this release type: _PlayerState */
1514
-
1515
- /* Excluded from this release type: PlayerStates */
1516
-
1517
- /**
1518
- * @public
1519
- */
1520
- declare type PlayerWith<T> = T & Player;
1521
-
1522
- declare type PlayerWithOpts<PluginPlayer extends Player = Player, PluginConfig extends Config = Config> = {
1523
- /* Excluded from this release type: on */
1524
- } & Omit<PluginPlayer, "opts" | "setOpts"> & {
1525
- opts: PluginConfig;
1526
- setOpts: (config: PluginConfig) => void;
1527
- };
1528
-
1529
- declare const PLAYING = "is-playing";
1530
-
1531
- /**
1532
- * @public
1533
- */
1534
- declare const /**
1535
- @public
1536
- * when a new player is inserted into the HTML
1537
- */ /**
1538
- * @public
1539
- */
1540
- PLAYING_2 = "playing";
1541
-
1542
- /**
1543
- * @public
1544
- */
1545
- declare interface Plugin_2<PluginConfig extends Config = Config, PluginPlayer extends Player = Player> {
1546
- /**
1547
- * a plugin must always implement the init method so a player instance knows how to initialize it
1548
- */
1549
- init(config: PluginConfig, container: PlayerRoot, player: PluginPlayer): void;
1550
- }
1551
-
1552
- /* Excluded from this release type: PLUGIN_REGISTERED */
1553
-
1554
- /**
1555
- * @public
1556
- */
1557
- declare interface PluginCtor<PluginConfig extends Config = Config, PluginPlayer extends Player = Player> {
1558
- new (umd: FlowplayerUMD, player: Player): Plugin_2<PluginConfig, PluginPlayer>;
1559
- pluginName: string;
1560
- }
1561
-
1562
- /* Excluded from this release type: PluginRegisteredEventDetail */
1563
-
1564
- declare type PluginStates = string;
1565
-
1566
- /**
1567
- * @public
1568
- */
1569
- declare const /**
1570
- @public
1571
- * when a new player is inserted into the HTML
1572
- */ /**
1573
- * @public
1574
- */
1575
- PORTRAIT = "portrait";
1576
-
1577
- /**
1578
- * @public
1579
- */
1580
- declare const /**
1581
- @public
1582
- * when a new player is inserted into the HTML
1583
- */ /**
1584
- * @public
1585
- */
1586
- PROGRESS = "progress";
1587
-
1588
- /**
1589
- * @public
1590
- */
1591
- declare type QselOption = (Level & {
1592
- level: number;
1593
- }) | Representation | {
1594
- name: string | number;
1595
- encodingId: string;
1596
- spatialLayerId: number;
1597
- temporalLayerId: number;
1598
- maxSpatialLayerId: number;
1599
- maxTemporalLayerId: number;
1600
- height: number;
1601
- width: number;
1602
- };
1603
-
1604
- /**
1605
- * @public
1606
- * emitted whenever a list of qualities has been made available
1607
- * when index 0 is the highest quality and index 0+N is the lowest
1608
- */
1609
- declare const /**
1610
- @public
1611
- * when a new player is inserted into the HTML
1612
- */ /**
1613
- * @public
1614
- * emitted whenever a list of qualities has been made available
1615
- * when index 0 is the highest quality and index 0+N is the lowest
1616
- */
1617
- QUALITIES = "qualities";
1618
-
1619
- /**
1620
- * @public
1621
- */
1622
- declare type QualitiesEventDetail = QselOption[];
1623
-
1624
- /**
1625
- * @public
1626
- * emitted whenever the media changes quality
1627
- */
1628
- declare const /**
1629
- @public
1630
- * when a new player is inserted into the HTML
1631
- */ /**
1632
- * @public
1633
- * emitted whenever the media changes quality
1634
- */
1635
- QUALITY_CHANGE = "qualitychange";
1636
-
1637
- /**
1638
- * @public
1639
- */
1640
- declare type QualityChangeEventDetail = {
1641
- before?: (Level & {
1642
- level?: number;
1643
- }) | Representation;
1644
- after: (Level & {
1645
- level?: number;
1646
- }) | Representation;
1647
- plugin: string;
1648
- automatic: boolean;
1649
- /* Excluded from this release type: downscale */
1650
- };
1651
-
1652
- declare enum QualityOpts {
1653
- LOW = 1,
1654
- MEDIUM = 2,
1655
- HIGH = 4
1656
- }
1657
-
1658
- /**
1659
- * @public
1660
- * emitted when it is safe to clean up a fp instance
1661
- */
1662
- declare const /**
1663
- @public
1664
- * when a new player is inserted into the HTML
1665
- */ /**
1666
- * @public
1667
- * emitted when it is safe to clean up a fp instance
1668
- */
1669
- REAP = "reap";
1670
-
1671
- /**
1672
- * @public
1673
- */
1674
- declare type ReapEventDetail = null;
1675
-
1676
- /**
1677
- * @public
1678
- */
1679
- declare type RecommendationItem = {
1680
- poster?: string;
1681
- src?: UnsafeSource;
1682
- title?: string;
1683
- description?: string;
1684
- metadata: OVPMetadata;
1685
- chapters?: {
1686
- src: string;
1687
- };
1688
- thumbnails?: {
1689
- src: string;
1690
- };
1691
- subtitles?: string[];
1692
- };
1693
-
1694
- /**
1695
- * @public
1696
- */
1697
- declare const /**
1698
- @public
1699
- * when a new player is inserted into the HTML
1700
- */ /**
1701
- * @deprecated please use Endscreen.events.RECOMMENDATIONS_READY / flowplayer.endscreen.events.RECOMMENDATIONS_READY
1702
- **/
1703
- /**
1704
- * @public
1705
- */
1706
- RECOMMENDATIONS_READY = "recommendationsready";
1707
-
1708
- /**
1709
- * @public
1710
- */
1711
- declare type RecommendationsReadyEventDetail = {
1712
- playlist: RecommendationItem[];
1713
- };
1714
-
1715
- /**
1716
- * @public
1717
- * emitted when an Error recovery is attempted
1718
- */
1719
- declare const /**
1720
- @public
1721
- * when a new player is inserted into the HTML
1722
- */ /**
1723
- * @public
1724
- * emitted when an Error recovery is attempted
1725
- */
1726
- RECOVER = "recover";
1727
-
1728
- /**
1729
- * @public
1730
- */
1731
- declare type RecoverEventDetail = null;
1732
-
1733
- /* Excluded from this release type: REMOTE_SESSION_ENDED */
1734
-
1735
- /* Excluded from this release type: REMOTE_SESSION_STARTED */
1736
-
1737
- /* Excluded from this release type: RENDER_PLUGIN */
1738
-
1739
- /**
1740
- * @public
1741
- */
1742
- declare type RenderPluginEventDetail = HTMLElement;
1743
-
1744
- /**
1745
- * @public
1746
- */
1747
- declare const /**
1748
- @public
1749
- * when a new player is inserted into the HTML
1750
- */ /**
1751
- * @public
1752
- */
1753
- RESIZE = "resize";
1754
-
1755
- /**
1756
- * @public
1757
- */
1758
- declare const /**
1759
- @public
1760
- * when a new player is inserted into the HTML
1761
- */ /**
1762
- * @public
1763
- */
1764
- RETRY = "retry";
1765
-
1766
- /**
1767
- * @public
1768
- */
1769
- declare type RetryEventDetail = FlowplayerErrorEventDetail;
1770
-
1771
- declare const RetryMap: {
1772
- readonly ON: "on";
1773
- readonly WITHOUT_RECOVERY: "without_recovery";
1774
- readonly OFF: "off";
1775
- };
1776
-
1777
- declare const RTL = "is-rtl";
1778
-
1779
- declare const SampleRate: {
1780
- /**
1781
- * 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.
1782
- */
1783
- readonly All: 1;
1784
- /**
1785
- * for events we anticipate receive a lot of usage and maybe happen frequently per session
1786
- */
1787
- readonly High: 0.1;
1788
- /**
1789
- * for events that can happen quickly, but not in massive amounts
1790
- */
1791
- readonly Medium: 0.01;
1792
- /**
1793
- * for very high volume events where you only want to sample a low amount of them (think volumechange | timeupdate)
1794
- */
1795
- readonly Low: 0.001;
1796
- /**
1797
- * placeholder for never sampling something, useful in situations where we want to add code to sample, but maybe not turn it on just yet.
1798
- */
1799
- readonly None: 0;
1800
- };
1801
-
1802
- /**
1803
- * @public
1804
- */
1805
- declare const /**
1806
- @public
1807
- * when a new player is inserted into the HTML
1808
- */ /**
1809
- * @public
1810
- */
1811
- SCROLL = "scroll";
1812
-
1813
- declare const SEAMLESS = "is-seamless";
1814
-
1815
- /* Excluded from this release type: SEEK_CANCEL */
1816
-
1817
- /* Excluded from this release type: SEEK_QUEUED */
1818
-
1819
- declare const SEEKABLE = "is-seekable";
1820
-
1821
- /* Excluded from this release type: SeekCancelEventDetail */
1822
-
1823
- /**
1824
- * @public
1825
- */
1826
- declare const /**
1827
- @public
1828
- * when a new player is inserted into the HTML
1829
- */ /**
1830
- * @public
1831
- */
1832
- SEEKED = "seeked";
1833
-
1834
- declare const SEEKING = "is-seeking";
1835
-
1836
- /**
1837
- * @public
1838
- */
1839
- declare const /**
1840
- @public
1841
- * when a new player is inserted into the HTML
1842
- */ /**
1843
- * @public
1844
- */
1845
- SEEKING_2 = "seeking";
1846
-
1847
- /* Excluded from this release type: SeekQueuedEventDetail */
1848
-
1849
- /**
1850
- * @public
1851
- * @deprecated please use Qsel.events.SET_QUALITY
1852
- */
1853
- declare const /**
1854
- @public
1855
- * when a new player is inserted into the HTML
1856
- */ /**
1857
- * @public
1858
- * @deprecated please use Qsel.events.SET_QUALITY
1859
- */
1860
- SET_QUALITY = "quality:set";
1861
-
1862
- /**
1863
- * @public
1864
- * This plugin adds a share menu to the player, allowing you to share a link to the video
1865
- * See {@link https://developer.wowza.com/docs/wowza-flowplayer/plugins/sharing/ |Official Documentation}
1866
- */
1867
- declare const Share: PluginCtor<NoInfer<ShareConfig>, NoInfer<Player>>;
1868
- export default Share;
1869
-
1870
- /**
1871
- * @public
1872
- */
1873
- export declare type ShareConfig = ConfigWith<{
1874
- /**
1875
- * Configuration for Share plugin
1876
- */
1877
- share?: {
1878
- /**
1879
- * string: url to be shared / copied boolean: if set to true, window.location.toString() (the currrent url in the browser) is used
1880
- * @defaultValue false
1881
- */
1882
- link?: boolean | string;
1883
- /**
1884
- * string: The value of iframe's src attribute. boolean: if set to true, value of link will be used for src
1885
- * @defaultValue false
1886
- */
1887
- iframe?: boolean | string;
1888
- /**
1889
- * Whether to show the Twitter option. Value of link is used to determine what to share
1890
- * @defaultValue false
1891
- */
1892
- twitter?: boolean;
1893
- /**
1894
- * Whether to show the Facebook option. Value of link is used to determine what to share
1895
- * @defaultValue false
1896
- */
1897
- facebook?: boolean;
1898
- };
1899
- }>;
1900
-
1901
- declare const SMALL = "is-small";
1902
-
1903
- /**
1904
- * @public
1905
- * emitted when a valid source is found prior to mounting
1906
- */
1907
- declare const /**
1908
- @public
1909
- * when a new player is inserted into the HTML
1910
- */ /**
1911
- * @public
1912
- * emitted when a valid source is found prior to mounting
1913
- */
1914
- SOURCE = "src";
1915
-
1916
- /**
1917
- * @public
1918
- */
1919
- declare type SourceEventDetail = SourceObj;
1920
-
1921
- /**
1922
- * @public
1923
- */
1924
- declare type SourceObj<T = unknown> = {
1925
- src?: SourceStr;
1926
- /**
1927
- * the MIME type (example `video/mp4` or `application/x-mpegurl`)
1928
- */
1929
- type?: string;
1930
- } & T;
1931
-
1932
- /**
1933
- * @public
1934
- */
1935
- declare type SourceStr = string;
1936
-
1937
- /**
1938
- * @public
1939
- */
1940
- declare type SourceWith<T> = SourceObj & T;
1941
-
1942
- /**
1943
- * @public
1944
- * emitted to handle playback related errors
1945
- */
1946
- declare const /**
1947
- @public
1948
- * when a new player is inserted into the HTML
1949
- */ /**
1950
- * @public
1951
- * emitted to handle playback related errors
1952
- */
1953
- STANDARD_ERROR = "flowplayer:error";
1954
-
1955
- declare const STARTING = "is-starting";
1956
-
1957
- /* Excluded from this release type: STATE */
1958
-
1959
- /* Excluded from this release type: State */
1960
-
1961
- /* Excluded from this release type: StateEventDetail */
1962
-
1963
- declare namespace states {
1964
- export {
1965
- PLAYING,
1966
- FULLSCREEN,
1967
- PAUSED,
1968
- MUTED,
1969
- LOADED,
1970
- LOADING,
1971
- STARTING,
1972
- SEEKING,
1973
- GRABBING,
1974
- DISABLED,
1975
- SMALL,
1976
- TINY,
1977
- RTL,
1978
- TV,
1979
- ENDED,
1980
- LIVE_2 as LIVE,
1981
- ERRORED,
1982
- WAITING,
1983
- AUTOPLAY,
1984
- SEAMLESS,
1985
- TOGGLING,
1986
- LIVE_SEEKED,
1987
- NO_DVR,
1988
- HAS_POSTER,
1989
- WILL_PLAY,
1990
- WILL_PAUSE,
1991
- MENU_OPENED,
1992
- TOUCHED,
1993
- HOVERED,
1994
- TOUCH_DEVICE,
1995
- WILL_SEEK,
1996
- SEEKABLE,
1997
- IN_VIEWPORT,
1998
- NO_CONTROLS,
1999
- DESTROYED,
2000
- IS_SOURCE_PROCESSING
2001
- }
2002
- }
2003
-
2004
- /**
2005
- * @public
2006
- */
2007
- declare const /**
2008
- @public
2009
- * when a new player is inserted into the HTML
2010
- */ /**
2011
- * @public
2012
- */
2013
- TIME_UPDATE = "timeupdate";
2014
-
2015
- declare const TINY = "is-tiny";
2016
-
2017
- declare const TOGGLING = "is-toggling";
2018
-
2019
- /**
2020
- * @public
2021
- */
2022
- declare const /**
2023
- @public
2024
- * when a new player is inserted into the HTML
2025
- */ /**
2026
- * @public
2027
- */
2028
- TOUCH_CANCEL = "touchcancel";
2029
-
2030
- declare const TOUCH_DEVICE = "is-touch-device";
2031
-
2032
- /**
2033
- * @public
2034
- */
2035
- declare const /**
2036
- @public
2037
- * when a new player is inserted into the HTML
2038
- */ /**
2039
- * @public
2040
- */
2041
- TOUCH_END = "touchend";
2042
-
2043
- /**
2044
- * @public
2045
- */
2046
- declare const /**
2047
- @public
2048
- * when a new player is inserted into the HTML
2049
- */ /**
2050
- * @public
2051
- */
2052
- TOUCH_MOVE = "touchmove";
2053
-
2054
- /**
2055
- * @public
2056
- */
2057
- declare const /**
2058
- @public
2059
- * when a new player is inserted into the HTML
2060
- */ /**
2061
- * @public
2062
- */
2063
- TOUCH_START = "touchstart";
2064
-
2065
- declare const TOUCHED = "is-touched";
2066
-
2067
- /**
2068
- * @public
2069
- * All possible full paths to each translation, i.e. "core.mute"| "core.play" | "ads.ad" etc.
2070
- * This type is useful for developers using translation querying based on path, like in lodash's get()
2071
- */
2072
- declare type TranslationKey = Paths<Translation, {
2073
- leavesOnly: true;
2074
- }>;
2075
-
2076
- declare type TSampleRate = typeof SampleRate;
2077
-
2078
- declare const TV = "is-tv";
2079
-
2080
- /**
2081
- * @public
2082
- */
2083
- declare type UnsafeSource<SrcMixin = unknown> = SourceStr | SourceObj<SrcMixin> | Array<SourceStr | SourceObj<SrcMixin>>;
2084
-
2085
- declare type ValidSampleRate = TSampleRate[keyof TSampleRate];
2086
-
2087
- /**
2088
- * @public
2089
- * emitted when a video track is selected
2090
- */
2091
- declare const /**
2092
- @public
2093
- * when a new player is inserted into the HTML
2094
- */ /**
2095
- * @public
2096
- * emitted when a video track is selected
2097
- */
2098
- VIDEO_TRACK_SELECT = "tracks:video:select";
2099
-
2100
- /**
2101
- * @public
2102
- * emitted whenever multiple video tracks are detected
2103
- */
2104
- declare const /**
2105
- @public
2106
- * when a new player is inserted into the HTML
2107
- */ /**
2108
- * @public
2109
- * emitted whenever multiple video tracks are detected
2110
- */
2111
- VIDEO_TRACKS = "videoTracks";
2112
-
2113
- /**
2114
- * @public
2115
- * when a player enters the viewpoint
2116
- */
2117
- declare const /**
2118
- @public
2119
- * when a new player is inserted into the HTML
2120
- */ /**
2121
- * @public
2122
- * when a player enters the viewpoint
2123
- */
2124
- VIEW_ENTER = "viewenter";
2125
-
2126
- /**
2127
- * @public
2128
- * when a player leaves the viewport
2129
- */
2130
- declare const /**
2131
- @public
2132
- * when a new player is inserted into the HTML
2133
- */ /**
2134
- * @public
2135
- * when a player leaves the viewport
2136
- */
2137
- VIEW_LEAVE = "viewleave";
2138
-
2139
- /**
2140
- * @public
2141
- */
2142
- declare type ViewEnterEventDetail = null;
2143
-
2144
- /**
2145
- * @public
2146
- */
2147
- declare type ViewLeaveEventDetail = null;
2148
-
2149
- /**
2150
- * @public
2151
- */
2152
- declare const /**
2153
- @public
2154
- * when a new player is inserted into the HTML
2155
- */ /**
2156
- * @public
2157
- */
2158
- VOLUME_CHANGE = "volumechange";
2159
-
2160
- declare const WAITING = "is-waiting";
2161
-
2162
- /**
2163
- * @public
2164
- */
2165
- declare const /**
2166
- @public
2167
- * when a new player is inserted into the HTML
2168
- */ /**
2169
- * @public
2170
- */
2171
- WAITING_2 = "waiting";
2172
-
2173
- /* Excluded from this release type: WEBKIT_NEEDKEY */
2174
-
2175
- declare const WILL_PAUSE = "will-pause";
2176
-
2177
- declare const WILL_PLAY = "will-play";
2178
-
2179
- declare const WILL_SEEK = "will-seek";
2180
-
2181
- export { }