@flowplayer/player 3.15.1-rc → 3.16.0-rc

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 (58) hide show
  1. package/core/events.d.ts +22 -2
  2. package/core/events.js +50 -50
  3. package/core.js +1 -1
  4. package/default.js +1 -1
  5. package/embed.js +2 -2
  6. package/flowplayer.css +1 -1
  7. package/index.d.ts +78 -35
  8. package/package.json +1 -1
  9. package/plugins/ads.d.ts +76 -33
  10. package/plugins/ads.js +1 -1
  11. package/plugins/airplay.d.ts +76 -33
  12. package/plugins/analytics.d.ts +76 -33
  13. package/plugins/analytics.js +1 -1
  14. package/plugins/asel.d.ts +221 -36
  15. package/plugins/asel.js +1 -1
  16. package/plugins/audio.d.ts +76 -33
  17. package/plugins/chapters.d.ts +76 -33
  18. package/plugins/chromecast.d.ts +76 -33
  19. package/plugins/chromecast.js +1 -1
  20. package/plugins/comscore.d.ts +76 -33
  21. package/plugins/consent.d.ts +76 -33
  22. package/plugins/context-menu.d.ts +76 -33
  23. package/plugins/cuepoints.d.ts +76 -33
  24. package/plugins/dash.d.ts +76 -33
  25. package/plugins/dash.js +1 -1
  26. package/plugins/drm.d.ts +76 -33
  27. package/plugins/endscreen.d.ts +76 -33
  28. package/plugins/fas.d.ts +76 -33
  29. package/plugins/float-on-scroll.d.ts +76 -33
  30. package/plugins/ga4.d.ts +76 -33
  31. package/plugins/gemius.d.ts +76 -33
  32. package/plugins/google-analytics.d.ts +76 -33
  33. package/plugins/health.d.ts +76 -33
  34. package/plugins/health.js +1 -1
  35. package/plugins/hls.d.ts +76 -33
  36. package/plugins/hls.js +1 -1
  37. package/plugins/id3.d.ts +76 -33
  38. package/plugins/iframe.d.ts +76 -33
  39. package/plugins/keyboard.d.ts +76 -33
  40. package/plugins/media-session.d.ts +76 -33
  41. package/plugins/message.d.ts +76 -33
  42. package/plugins/ovp.d.ts +76 -33
  43. package/plugins/playlist.d.ts +107 -33
  44. package/plugins/playlist.js +1 -1
  45. package/plugins/preview.d.ts +76 -33
  46. package/plugins/qsel.d.ts +76 -33
  47. package/plugins/qul.d.ts +76 -33
  48. package/plugins/rts.d.ts +76 -33
  49. package/plugins/share.d.ts +76 -33
  50. package/plugins/speed.d.ts +76 -33
  51. package/plugins/ssai.d.ts +76 -33
  52. package/plugins/ssai.js +1 -1
  53. package/plugins/subtitles.d.ts +76 -33
  54. package/plugins/thumbnails.d.ts +76 -33
  55. package/plugins/tizen.d.ts +76 -33
  56. package/plugins/vtsel.d.ts +76 -33
  57. package/plugins/webos.d.ts +76 -33
  58. package/util/loader.d.ts +76 -33
package/plugins/drm.d.ts CHANGED
@@ -350,6 +350,7 @@ declare type ErrorEventDetail = {
350
350
  declare namespace events {
351
351
  export {
352
352
  MOUNT,
353
+ RETRY,
353
354
  ERROR,
354
355
  CONTEXT_MENU,
355
356
  CLICK,
@@ -401,7 +402,8 @@ declare namespace events {
401
402
  LANDSCAPE,
402
403
  PORTRAIT,
403
404
  DVR,
404
- LIVE_2 as LIVE
405
+ LIVE,
406
+ RECOVER
405
407
  }
406
408
  }
407
409
 
@@ -600,8 +602,6 @@ declare const /**
600
602
  */
601
603
  LANDSCAPE = "landscape";
602
604
 
603
- declare const LIVE = "is-live";
604
-
605
605
  /**
606
606
  * @public
607
607
  * when src is a livestream
@@ -613,7 +613,9 @@ declare const /**
613
613
  * @public
614
614
  * when src is a livestream
615
615
  */
616
- LIVE_2 = "live";
616
+ LIVE = "live";
617
+
618
+ declare const LIVE_2 = "is-live";
617
619
 
618
620
  declare const LIVE_SEEKED = "is-live-seeked";
619
621
 
@@ -913,33 +915,27 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
913
915
 
914
916
  declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
915
917
 
916
- declare type PlayerCustomEventsDetailMap = {
917
- [MOUNT]: MountEventDetail;
918
- [ERROR]: ErrorEventDetail;
919
- [CONTEXT_MENU]: ContextMenuEventDetail;
920
- /* Excluded from this release type: beforeplay */
921
- /* Excluded from this release type: beforepause */
922
- /* Excluded from this release type: state */
918
+ declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
919
+ [REAP]: ReapEventDetail;
920
+ [SOURCE]: SourceEventDetail;
923
921
  [CUEPOINT_START]: CuePointStartEventDetail;
924
922
  [CUEPOINT_END]: CuePointEndEventDetail;
925
- [VIEW_ENTER]: ViewEnterEventDetail;
926
- [VIEW_LEAVE]: ViewLeaveEventDetail;
927
- [SOURCE]: SourceEventDetail;
928
- /* Excluded from this release type: recover */
929
- [REAP]: ReapEventDetail;
930
- /* Excluded from this release type: config */
931
- [QUALITIES]: QualitiesEventDetail;
932
- /* Excluded from this release type: "error:fatal" */
933
- [RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
923
+ [MOUNT]: MountEventDetail;
924
+ [LIVE]: LiveEventDetail;
925
+ [DVR]: DvrEventDetail;
926
+ [RETRY]: RetryEventDetail;
927
+ [RECOVER]: RecoverEventDetail;
934
928
  /* Excluded from this release type: audioonlysource */
935
929
  /* Excluded from this release type: renderplugin */
936
- [DVR]: DvrEventDetail;
937
- [LIVE_2]: LiveEventDetail;
938
930
  /* Excluded from this release type: "seek:queued" */
939
931
  /* Excluded from this release type: "seek:cancel" */
940
932
  /* Excluded from this release type: "plugin:registered" */
941
933
  /* Excluded from this release type: intersectionchange */
942
- /* Excluded from this release type: retry */
934
+ /* Excluded from this release type: beforeplay */
935
+ /* Excluded from this release type: beforepause */
936
+ /* Excluded from this release type: state */
937
+ /* Excluded from this release type: config */
938
+ /* Excluded from this release type: "error:fatal" */
943
939
  };
944
940
 
945
941
  declare type PlayerCustomEventsOverloads = {
@@ -978,11 +974,18 @@ declare type PlayerCustomEventsOverloads = {
978
974
  * Sent right before the player src attribute is set. This allows you to change the video URL before playback.
979
975
  */
980
976
  on(event: typeof SOURCE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof SOURCE]>) => void): Player;
981
- /* Excluded from this release type: on */
977
+ /**
978
+ * Emitted when an Error recovery is attempted
979
+ */
980
+ on(event: typeof RECOVER, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RECOVER]>) => void): Player;
982
981
  /**
983
982
  * 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.
984
983
  */
985
984
  on(event: typeof REAP, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof REAP]>) => void): Player;
985
+ /**
986
+ * Emitted when a player will retry to reload
987
+ */
988
+ on(event: typeof RETRY, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RETRY]>) => void): Player;
986
989
  /* Excluded from this release type: on */
987
990
  /**
988
991
  * Emitted when the set of underlying qualities has changed.
@@ -1002,8 +1005,7 @@ declare type PlayerCustomEventsOverloads = {
1002
1005
  /**
1003
1006
  * when src is a livestream
1004
1007
  */
1005
- on(event: typeof LIVE_2, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof LIVE_2]>) => void): Player;
1006
- /* Excluded from this release type: on */
1008
+ on(event: typeof LIVE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof LIVE]>) => void): Player;
1007
1009
  /* Excluded from this release type: on */
1008
1010
  /* Excluded from this release type: on */
1009
1011
  /* Excluded from this release type: on */
@@ -1032,11 +1034,26 @@ declare type PlayerCustomEventsOverloads = {
1032
1034
  */
1033
1035
  off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1034
1036
  /* Excluded from this release type: poll */
1035
- emit<T extends PlayerCustomEventName>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1036
1037
  /* Excluded from this release type: emit */
1037
- emit<T, X extends string = string>(event: X & (X extends PlayerCustomEventName ? "Incorrect event detail type" : X), data?: T): Player;
1038
+ /* Excluded from this release type: emit */
1039
+ emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1040
+ /* Excluded from this release type: emit */
1041
+ };
1042
+
1043
+ declare type PlayerEmittableCustomEventsDetailMap = {
1044
+ [ERROR]: ErrorEventDetail;
1045
+ [CONTEXT_MENU]: ContextMenuEventDetail;
1046
+ [VIEW_ENTER]: ViewEnterEventDetail;
1047
+ [VIEW_LEAVE]: ViewLeaveEventDetail;
1048
+ [QUALITIES]: QualitiesEventDetail;
1049
+ [RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
1038
1050
  };
1039
1051
 
1052
+ declare type PlayerEmittableEventNames = keyof PlayerEmittableCustomEventsDetailMap;
1053
+
1054
+ /**
1055
+ * @public
1056
+ */
1040
1057
  declare type PlayerEventOverloads = PlayerNativeEventsOverloads & PlayerCustomEventsOverloads;
1041
1058
 
1042
1059
  declare type PlayerNativeEventName = keyof PlayerNativeEventsDetailMap;
@@ -1230,9 +1247,23 @@ declare type RecommendationsReadyEventDetail = {
1230
1247
  playlist: RecommendationItem[];
1231
1248
  };
1232
1249
 
1233
- /* Excluded from this release type: RECOVER */
1250
+ /**
1251
+ * @public
1252
+ * emitted when an Error recovery is attempted
1253
+ */
1254
+ declare const /**
1255
+ @public
1256
+ * when a new player is inserted into the HTML
1257
+ */ /**
1258
+ * @public
1259
+ * emitted when an Error recovery is attempted
1260
+ */
1261
+ RECOVER = "recover";
1234
1262
 
1235
- /* Excluded from this release type: RecoverEventDetail */
1263
+ /**
1264
+ * @public
1265
+ */
1266
+ declare type RecoverEventDetail = null;
1236
1267
 
1237
1268
  /* Excluded from this release type: REMOTE_SESSION_ENDED */
1238
1269
 
@@ -1256,9 +1287,21 @@ declare const /**
1256
1287
  */
1257
1288
  RESIZE = "resize";
1258
1289
 
1259
- /* Excluded from this release type: RETRY */
1290
+ /**
1291
+ * @public
1292
+ */
1293
+ declare const /**
1294
+ @public
1295
+ * when a new player is inserted into the HTML
1296
+ */ /**
1297
+ * @public
1298
+ */
1299
+ RETRY = "retry";
1260
1300
 
1261
- /* Excluded from this release type: RetryEventDetail */
1301
+ /**
1302
+ * @public
1303
+ */
1304
+ declare type RetryEventDetail = null;
1262
1305
 
1263
1306
  declare const RTL = "is-rtl";
1264
1307
 
@@ -1393,7 +1436,7 @@ declare namespace states {
1393
1436
  RTL,
1394
1437
  TV,
1395
1438
  ENDED,
1396
- LIVE,
1439
+ LIVE_2 as LIVE,
1397
1440
  ERRORED,
1398
1441
  WAITING,
1399
1442
  AUTOPLAY,
@@ -357,6 +357,7 @@ declare type ErrorEventDetail = {
357
357
  declare namespace events {
358
358
  export {
359
359
  MOUNT,
360
+ RETRY,
360
361
  ERROR,
361
362
  CONTEXT_MENU,
362
363
  CLICK,
@@ -408,7 +409,8 @@ declare namespace events {
408
409
  LANDSCAPE,
409
410
  PORTRAIT,
410
411
  DVR,
411
- LIVE_2 as LIVE
412
+ LIVE,
413
+ RECOVER
412
414
  }
413
415
  }
414
416
 
@@ -607,8 +609,6 @@ declare const /**
607
609
  */
608
610
  LANDSCAPE = "landscape";
609
611
 
610
- declare const LIVE = "is-live";
611
-
612
612
  /**
613
613
  * @public
614
614
  * when src is a livestream
@@ -620,7 +620,9 @@ declare const /**
620
620
  * @public
621
621
  * when src is a livestream
622
622
  */
623
- LIVE_2 = "live";
623
+ LIVE = "live";
624
+
625
+ declare const LIVE_2 = "is-live";
624
626
 
625
627
  declare const LIVE_SEEKED = "is-live-seeked";
626
628
 
@@ -920,33 +922,27 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
920
922
 
921
923
  declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
922
924
 
923
- declare type PlayerCustomEventsDetailMap = {
924
- [MOUNT]: MountEventDetail;
925
- [ERROR]: ErrorEventDetail;
926
- [CONTEXT_MENU]: ContextMenuEventDetail;
927
- /* Excluded from this release type: beforeplay */
928
- /* Excluded from this release type: beforepause */
929
- /* Excluded from this release type: state */
925
+ declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
926
+ [REAP]: ReapEventDetail;
927
+ [SOURCE]: SourceEventDetail;
930
928
  [CUEPOINT_START]: CuePointStartEventDetail;
931
929
  [CUEPOINT_END]: CuePointEndEventDetail;
932
- [VIEW_ENTER]: ViewEnterEventDetail;
933
- [VIEW_LEAVE]: ViewLeaveEventDetail;
934
- [SOURCE]: SourceEventDetail;
935
- /* Excluded from this release type: recover */
936
- [REAP]: ReapEventDetail;
937
- /* Excluded from this release type: config */
938
- [QUALITIES]: QualitiesEventDetail;
939
- /* Excluded from this release type: "error:fatal" */
940
- [RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
930
+ [MOUNT]: MountEventDetail;
931
+ [LIVE]: LiveEventDetail;
932
+ [DVR]: DvrEventDetail;
933
+ [RETRY]: RetryEventDetail;
934
+ [RECOVER]: RecoverEventDetail;
941
935
  /* Excluded from this release type: audioonlysource */
942
936
  /* Excluded from this release type: renderplugin */
943
- [DVR]: DvrEventDetail;
944
- [LIVE_2]: LiveEventDetail;
945
937
  /* Excluded from this release type: "seek:queued" */
946
938
  /* Excluded from this release type: "seek:cancel" */
947
939
  /* Excluded from this release type: "plugin:registered" */
948
940
  /* Excluded from this release type: intersectionchange */
949
- /* Excluded from this release type: retry */
941
+ /* Excluded from this release type: beforeplay */
942
+ /* Excluded from this release type: beforepause */
943
+ /* Excluded from this release type: state */
944
+ /* Excluded from this release type: config */
945
+ /* Excluded from this release type: "error:fatal" */
950
946
  };
951
947
 
952
948
  declare type PlayerCustomEventsOverloads = {
@@ -985,11 +981,18 @@ declare type PlayerCustomEventsOverloads = {
985
981
  * Sent right before the player src attribute is set. This allows you to change the video URL before playback.
986
982
  */
987
983
  on(event: typeof SOURCE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof SOURCE]>) => void): Player;
988
- /* Excluded from this release type: on */
984
+ /**
985
+ * Emitted when an Error recovery is attempted
986
+ */
987
+ on(event: typeof RECOVER, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RECOVER]>) => void): Player;
989
988
  /**
990
989
  * 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.
991
990
  */
992
991
  on(event: typeof REAP, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof REAP]>) => void): Player;
992
+ /**
993
+ * Emitted when a player will retry to reload
994
+ */
995
+ on(event: typeof RETRY, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RETRY]>) => void): Player;
993
996
  /* Excluded from this release type: on */
994
997
  /**
995
998
  * Emitted when the set of underlying qualities has changed.
@@ -1009,8 +1012,7 @@ declare type PlayerCustomEventsOverloads = {
1009
1012
  /**
1010
1013
  * when src is a livestream
1011
1014
  */
1012
- on(event: typeof LIVE_2, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof LIVE_2]>) => void): Player;
1013
- /* Excluded from this release type: on */
1015
+ on(event: typeof LIVE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof LIVE]>) => void): Player;
1014
1016
  /* Excluded from this release type: on */
1015
1017
  /* Excluded from this release type: on */
1016
1018
  /* Excluded from this release type: on */
@@ -1039,11 +1041,26 @@ declare type PlayerCustomEventsOverloads = {
1039
1041
  */
1040
1042
  off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1041
1043
  /* Excluded from this release type: poll */
1042
- emit<T extends PlayerCustomEventName>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1043
1044
  /* Excluded from this release type: emit */
1044
- emit<T, X extends string = string>(event: X & (X extends PlayerCustomEventName ? "Incorrect event detail type" : X), data?: T): Player;
1045
+ /* Excluded from this release type: emit */
1046
+ emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1047
+ /* Excluded from this release type: emit */
1048
+ };
1049
+
1050
+ declare type PlayerEmittableCustomEventsDetailMap = {
1051
+ [ERROR]: ErrorEventDetail;
1052
+ [CONTEXT_MENU]: ContextMenuEventDetail;
1053
+ [VIEW_ENTER]: ViewEnterEventDetail;
1054
+ [VIEW_LEAVE]: ViewLeaveEventDetail;
1055
+ [QUALITIES]: QualitiesEventDetail;
1056
+ [RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
1045
1057
  };
1046
1058
 
1059
+ declare type PlayerEmittableEventNames = keyof PlayerEmittableCustomEventsDetailMap;
1060
+
1061
+ /**
1062
+ * @public
1063
+ */
1047
1064
  declare type PlayerEventOverloads = PlayerNativeEventsOverloads & PlayerCustomEventsOverloads;
1048
1065
 
1049
1066
  declare type PlayerNativeEventName = keyof PlayerNativeEventsDetailMap;
@@ -1249,9 +1266,23 @@ declare type RecommendationsReadyEventDetail = {
1249
1266
  playlist: RecommendationItem[];
1250
1267
  };
1251
1268
 
1252
- /* Excluded from this release type: RECOVER */
1269
+ /**
1270
+ * @public
1271
+ * emitted when an Error recovery is attempted
1272
+ */
1273
+ declare const /**
1274
+ @public
1275
+ * when a new player is inserted into the HTML
1276
+ */ /**
1277
+ * @public
1278
+ * emitted when an Error recovery is attempted
1279
+ */
1280
+ RECOVER = "recover";
1253
1281
 
1254
- /* Excluded from this release type: RecoverEventDetail */
1282
+ /**
1283
+ * @public
1284
+ */
1285
+ declare type RecoverEventDetail = null;
1255
1286
 
1256
1287
  /* Excluded from this release type: REMOTE_SESSION_ENDED */
1257
1288
 
@@ -1275,9 +1306,21 @@ declare const /**
1275
1306
  */
1276
1307
  RESIZE = "resize";
1277
1308
 
1278
- /* Excluded from this release type: RETRY */
1309
+ /**
1310
+ * @public
1311
+ */
1312
+ declare const /**
1313
+ @public
1314
+ * when a new player is inserted into the HTML
1315
+ */ /**
1316
+ * @public
1317
+ */
1318
+ RETRY = "retry";
1279
1319
 
1280
- /* Excluded from this release type: RetryEventDetail */
1320
+ /**
1321
+ * @public
1322
+ */
1323
+ declare type RetryEventDetail = null;
1281
1324
 
1282
1325
  declare const RTL = "is-rtl";
1283
1326
 
@@ -1412,7 +1455,7 @@ declare namespace states {
1412
1455
  RTL,
1413
1456
  TV,
1414
1457
  ENDED,
1415
- LIVE,
1458
+ LIVE_2 as LIVE,
1416
1459
  ERRORED,
1417
1460
  WAITING,
1418
1461
  AUTOPLAY,
package/plugins/fas.d.ts CHANGED
@@ -345,6 +345,7 @@ declare type ErrorEventDetail = {
345
345
  declare namespace events {
346
346
  export {
347
347
  MOUNT,
348
+ RETRY,
348
349
  ERROR,
349
350
  CONTEXT_MENU,
350
351
  CLICK,
@@ -396,7 +397,8 @@ declare namespace events {
396
397
  LANDSCAPE,
397
398
  PORTRAIT,
398
399
  DVR,
399
- LIVE_2 as LIVE
400
+ LIVE,
401
+ RECOVER
400
402
  }
401
403
  }
402
404
 
@@ -610,8 +612,6 @@ declare const /**
610
612
  */
611
613
  LANDSCAPE = "landscape";
612
614
 
613
- declare const LIVE = "is-live";
614
-
615
615
  /**
616
616
  * @public
617
617
  * when src is a livestream
@@ -623,7 +623,9 @@ declare const /**
623
623
  * @public
624
624
  * when src is a livestream
625
625
  */
626
- LIVE_2 = "live";
626
+ LIVE = "live";
627
+
628
+ declare const LIVE_2 = "is-live";
627
629
 
628
630
  declare const LIVE_SEEKED = "is-live-seeked";
629
631
 
@@ -923,33 +925,27 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
923
925
 
924
926
  declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
925
927
 
926
- declare type PlayerCustomEventsDetailMap = {
927
- [MOUNT]: MountEventDetail;
928
- [ERROR]: ErrorEventDetail;
929
- [CONTEXT_MENU]: ContextMenuEventDetail;
930
- /* Excluded from this release type: beforeplay */
931
- /* Excluded from this release type: beforepause */
932
- /* Excluded from this release type: state */
928
+ declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
929
+ [REAP]: ReapEventDetail;
930
+ [SOURCE]: SourceEventDetail;
933
931
  [CUEPOINT_START]: CuePointStartEventDetail;
934
932
  [CUEPOINT_END]: CuePointEndEventDetail;
935
- [VIEW_ENTER]: ViewEnterEventDetail;
936
- [VIEW_LEAVE]: ViewLeaveEventDetail;
937
- [SOURCE]: SourceEventDetail;
938
- /* Excluded from this release type: recover */
939
- [REAP]: ReapEventDetail;
940
- /* Excluded from this release type: config */
941
- [QUALITIES]: QualitiesEventDetail;
942
- /* Excluded from this release type: "error:fatal" */
943
- [RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
933
+ [MOUNT]: MountEventDetail;
934
+ [LIVE]: LiveEventDetail;
935
+ [DVR]: DvrEventDetail;
936
+ [RETRY]: RetryEventDetail;
937
+ [RECOVER]: RecoverEventDetail;
944
938
  /* Excluded from this release type: audioonlysource */
945
939
  /* Excluded from this release type: renderplugin */
946
- [DVR]: DvrEventDetail;
947
- [LIVE_2]: LiveEventDetail;
948
940
  /* Excluded from this release type: "seek:queued" */
949
941
  /* Excluded from this release type: "seek:cancel" */
950
942
  /* Excluded from this release type: "plugin:registered" */
951
943
  /* Excluded from this release type: intersectionchange */
952
- /* Excluded from this release type: retry */
944
+ /* Excluded from this release type: beforeplay */
945
+ /* Excluded from this release type: beforepause */
946
+ /* Excluded from this release type: state */
947
+ /* Excluded from this release type: config */
948
+ /* Excluded from this release type: "error:fatal" */
953
949
  };
954
950
 
955
951
  declare type PlayerCustomEventsOverloads = {
@@ -988,11 +984,18 @@ declare type PlayerCustomEventsOverloads = {
988
984
  * Sent right before the player src attribute is set. This allows you to change the video URL before playback.
989
985
  */
990
986
  on(event: typeof SOURCE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof SOURCE]>) => void): Player;
991
- /* Excluded from this release type: on */
987
+ /**
988
+ * Emitted when an Error recovery is attempted
989
+ */
990
+ on(event: typeof RECOVER, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RECOVER]>) => void): Player;
992
991
  /**
993
992
  * 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.
994
993
  */
995
994
  on(event: typeof REAP, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof REAP]>) => void): Player;
995
+ /**
996
+ * Emitted when a player will retry to reload
997
+ */
998
+ on(event: typeof RETRY, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RETRY]>) => void): Player;
996
999
  /* Excluded from this release type: on */
997
1000
  /**
998
1001
  * Emitted when the set of underlying qualities has changed.
@@ -1012,8 +1015,7 @@ declare type PlayerCustomEventsOverloads = {
1012
1015
  /**
1013
1016
  * when src is a livestream
1014
1017
  */
1015
- on(event: typeof LIVE_2, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof LIVE_2]>) => void): Player;
1016
- /* Excluded from this release type: on */
1018
+ on(event: typeof LIVE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof LIVE]>) => void): Player;
1017
1019
  /* Excluded from this release type: on */
1018
1020
  /* Excluded from this release type: on */
1019
1021
  /* Excluded from this release type: on */
@@ -1042,11 +1044,26 @@ declare type PlayerCustomEventsOverloads = {
1042
1044
  */
1043
1045
  off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1044
1046
  /* Excluded from this release type: poll */
1045
- emit<T extends PlayerCustomEventName>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1046
1047
  /* Excluded from this release type: emit */
1047
- emit<T, X extends string = string>(event: X & (X extends PlayerCustomEventName ? "Incorrect event detail type" : X), data?: T): Player;
1048
+ /* Excluded from this release type: emit */
1049
+ emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1050
+ /* Excluded from this release type: emit */
1051
+ };
1052
+
1053
+ declare type PlayerEmittableCustomEventsDetailMap = {
1054
+ [ERROR]: ErrorEventDetail;
1055
+ [CONTEXT_MENU]: ContextMenuEventDetail;
1056
+ [VIEW_ENTER]: ViewEnterEventDetail;
1057
+ [VIEW_LEAVE]: ViewLeaveEventDetail;
1058
+ [QUALITIES]: QualitiesEventDetail;
1059
+ [RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
1048
1060
  };
1049
1061
 
1062
+ declare type PlayerEmittableEventNames = keyof PlayerEmittableCustomEventsDetailMap;
1063
+
1064
+ /**
1065
+ * @public
1066
+ */
1050
1067
  declare type PlayerEventOverloads = PlayerNativeEventsOverloads & PlayerCustomEventsOverloads;
1051
1068
 
1052
1069
  declare type PlayerNativeEventName = keyof PlayerNativeEventsDetailMap;
@@ -1240,9 +1257,23 @@ declare type RecommendationsReadyEventDetail = {
1240
1257
  playlist: RecommendationItem[];
1241
1258
  };
1242
1259
 
1243
- /* Excluded from this release type: RECOVER */
1260
+ /**
1261
+ * @public
1262
+ * emitted when an Error recovery is attempted
1263
+ */
1264
+ declare const /**
1265
+ @public
1266
+ * when a new player is inserted into the HTML
1267
+ */ /**
1268
+ * @public
1269
+ * emitted when an Error recovery is attempted
1270
+ */
1271
+ RECOVER = "recover";
1244
1272
 
1245
- /* Excluded from this release type: RecoverEventDetail */
1273
+ /**
1274
+ * @public
1275
+ */
1276
+ declare type RecoverEventDetail = null;
1246
1277
 
1247
1278
  /* Excluded from this release type: REMOTE_SESSION_ENDED */
1248
1279
 
@@ -1266,9 +1297,21 @@ declare const /**
1266
1297
  */
1267
1298
  RESIZE = "resize";
1268
1299
 
1269
- /* Excluded from this release type: RETRY */
1300
+ /**
1301
+ * @public
1302
+ */
1303
+ declare const /**
1304
+ @public
1305
+ * when a new player is inserted into the HTML
1306
+ */ /**
1307
+ * @public
1308
+ */
1309
+ RETRY = "retry";
1270
1310
 
1271
- /* Excluded from this release type: RetryEventDetail */
1311
+ /**
1312
+ * @public
1313
+ */
1314
+ declare type RetryEventDetail = null;
1272
1315
 
1273
1316
  declare const RTL = "is-rtl";
1274
1317
 
@@ -1403,7 +1446,7 @@ declare namespace states {
1403
1446
  RTL,
1404
1447
  TV,
1405
1448
  ENDED,
1406
- LIVE,
1449
+ LIVE_2 as LIVE,
1407
1450
  ERRORED,
1408
1451
  WAITING,
1409
1452
  AUTOPLAY,