@flowplayer/player 3.16.0-rc → 3.16.0-rc.2

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 +2 -8
  2. package/core/events.js +1 -4
  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 +29 -40
  8. package/package.json +1 -1
  9. package/plugins/ads.d.ts +29 -40
  10. package/plugins/ads.js +1 -1
  11. package/plugins/airplay.d.ts +29 -40
  12. package/plugins/analytics.d.ts +29 -40
  13. package/plugins/analytics.js +1 -1
  14. package/plugins/asel.d.ts +29 -40
  15. package/plugins/audio.d.ts +29 -40
  16. package/plugins/chapters.d.ts +29 -40
  17. package/plugins/chromecast.d.ts +29 -40
  18. package/plugins/comscore.d.ts +29 -40
  19. package/plugins/consent.d.ts +78 -41
  20. package/plugins/consent.js +1 -1
  21. package/plugins/context-menu.d.ts +29 -40
  22. package/plugins/cuepoints.d.ts +29 -40
  23. package/plugins/dash.d.ts +29 -40
  24. package/plugins/drm.d.ts +29 -40
  25. package/plugins/endscreen.d.ts +29 -40
  26. package/plugins/fas.d.ts +29 -40
  27. package/plugins/float-on-scroll.d.ts +29 -40
  28. package/plugins/ga4.d.ts +29 -40
  29. package/plugins/gemius.d.ts +29 -40
  30. package/plugins/google-analytics.d.ts +29 -40
  31. package/plugins/health.d.ts +37 -41
  32. package/plugins/health.js +1 -1
  33. package/plugins/hls.d.ts +29 -40
  34. package/plugins/hls.js +1 -1
  35. package/plugins/id3.d.ts +96 -41
  36. package/plugins/iframe.d.ts +29 -40
  37. package/plugins/keyboard.d.ts +29 -40
  38. package/plugins/media-session.d.ts +29 -40
  39. package/plugins/message.d.ts +29 -40
  40. package/plugins/ovp.d.ts +29 -40
  41. package/plugins/playlist.d.ts +29 -71
  42. package/plugins/playlist.js +1 -1
  43. package/plugins/preview.d.ts +29 -40
  44. package/plugins/qsel.d.ts +102 -38
  45. package/plugins/qsel.js +1 -1
  46. package/plugins/qul.d.ts +29 -40
  47. package/plugins/rts.d.ts +29 -40
  48. package/plugins/share.d.ts +29 -40
  49. package/plugins/speed.d.ts +29 -40
  50. package/plugins/ssai.d.ts +29 -40
  51. package/plugins/ssai.js +1 -1
  52. package/plugins/subtitles.d.ts +29 -40
  53. package/plugins/thumbnails.d.ts +29 -40
  54. package/plugins/tizen.d.ts +29 -40
  55. package/plugins/vtsel.d.ts +122 -33
  56. package/plugins/vtsel.js +1 -1
  57. package/plugins/webos.d.ts +29 -40
  58. package/util/loader.d.ts +27 -40
@@ -762,6 +762,8 @@ declare const NO_CONTROLS = "no-controls";
762
762
 
763
763
  declare const NO_DVR = "no-timeline";
764
764
 
765
+ declare type NoInfer_2<T> = [T][T extends any ? 0 : never];
766
+
765
767
  /* Excluded from this release type: NON_RECOVERABLE_ERROR */
766
768
 
767
769
  /* Excluded from this release type: NonRecoverableErrorEventDetail */
@@ -902,7 +904,6 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
902
904
  disabled: boolean;
903
905
  /* Excluded from this release type: started */
904
906
  /* Excluded from this release type: token */
905
- tracks?: VideoTrack[];
906
907
  /* Excluded from this release type: _customElements */
907
908
  /* Excluded from this release type: _storage */
908
909
  };
@@ -986,6 +987,7 @@ declare type PlayerCustomEventsOverloads = {
986
987
  */
987
988
  on(event: typeof QUALITIES, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITIES]>) => void): Player;
988
989
  /* Excluded from this release type: on */
990
+ /* Excluded from this release type: on */
989
991
  /**
990
992
  * Listen to this event to create a recommendations grid using the data passed with the event.
991
993
  */
@@ -1004,6 +1006,11 @@ declare type PlayerCustomEventsOverloads = {
1004
1006
  /* Excluded from this release type: on */
1005
1007
  /* Excluded from this release type: on */
1006
1008
  /* Excluded from this release type: on */
1009
+ /* Excluded from this release type: on */
1010
+ /**
1011
+ * TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
1012
+ * https://wowzamedia.jira.com/browse/PLAY-653
1013
+ */
1007
1014
  on<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1008
1015
  /* Excluded from this release type: on */
1009
1016
  /**
@@ -1028,9 +1035,12 @@ declare type PlayerCustomEventsOverloads = {
1028
1035
  */
1029
1036
  off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1030
1037
  /* Excluded from this release type: poll */
1038
+ emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1039
+ emit(event: never, data?: never): Player;
1040
+ /* Excluded from this release type: emit */
1041
+ /* Excluded from this release type: emit */
1031
1042
  /* Excluded from this release type: emit */
1032
1043
  /* Excluded from this release type: emit */
1033
- emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1034
1044
  /* Excluded from this release type: emit */
1035
1045
  };
1036
1046
 
@@ -1138,6 +1148,17 @@ declare const /**
1138
1148
  */
1139
1149
  PROGRESS = "progress";
1140
1150
 
1151
+ /**
1152
+ * @public
1153
+ */
1154
+ declare type QselOption = {
1155
+ height: number;
1156
+ level: number;
1157
+ text: string;
1158
+ /* Excluded from this release type: videoCodec */
1159
+ width: number;
1160
+ };
1161
+
1141
1162
  /**
1142
1163
  * @public
1143
1164
  * emitted whenever a list of qualities has been made available
@@ -1156,27 +1177,11 @@ QUALITIES = "qualities";
1156
1177
  /**
1157
1178
  * @public
1158
1179
  */
1159
- declare type QualitiesEventDetail = QualityDetail[];
1180
+ declare type QualitiesEventDetail = QselOption[];
1160
1181
 
1161
- /**
1162
- * @public
1163
- */
1164
- declare type QualityDetail = {
1165
- level: number;
1166
- text: string;
1167
- width: number;
1168
- height: number;
1169
- videoCodec: string;
1170
- } | BitrateInfo | {
1171
- text: string | number;
1172
- encodingId: string;
1173
- spatialLayerId: number;
1174
- temporalLayerId: number;
1175
- maxSpatialLayerId: number;
1176
- maxTemporalLayerId: number;
1177
- height: number;
1178
- width: number;
1179
- };
1182
+ /* Excluded from this release type: _QualitiesEventDetail */
1183
+
1184
+ /* Excluded from this release type: _QualityDetail */
1180
1185
 
1181
1186
  declare enum QualityOpts {
1182
1187
  LOW = 1,
@@ -1348,20 +1353,14 @@ SEEKING_2 = "seeking";
1348
1353
 
1349
1354
  /**
1350
1355
  * @public
1351
- * allows plugins to listen for forced quality changes
1352
- * it should emit the index of the quality to set
1353
- * -1 is a special idx saying to use ABR if the plugin
1354
- * exposes an ABR implementation
1356
+ * @deprecated please use Qsel.events.SET_QUALITY
1355
1357
  */
1356
1358
  declare const /**
1357
1359
  @public
1358
1360
  * when a new player is inserted into the HTML
1359
1361
  */ /**
1360
1362
  * @public
1361
- * allows plugins to listen for forced quality changes
1362
- * it should emit the index of the quality to set
1363
- * -1 is a special idx saying to use ABR if the plugin
1364
- * exposes an ABR implementation
1363
+ * @deprecated please use Qsel.events.SET_QUALITY
1365
1364
  */
1366
1365
  SET_QUALITY = "quality:set";
1367
1366
 
@@ -1550,16 +1549,6 @@ declare const /**
1550
1549
  */
1551
1550
  VIDEO_TRACKS = "videoTracks";
1552
1551
 
1553
- /**
1554
- * @public
1555
- */
1556
- declare interface VideoTrack {
1557
- name: string;
1558
- /* Excluded from this release type: data */
1559
- default: boolean;
1560
- selected: boolean;
1561
- }
1562
-
1563
1552
  /**
1564
1553
  * @public
1565
1554
  * when a player enters the viewpoint
package/util/loader.d.ts CHANGED
@@ -922,7 +922,6 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
922
922
  disabled: boolean;
923
923
  /* Excluded from this release type: started */
924
924
  /* Excluded from this release type: token */
925
- tracks?: VideoTrack[];
926
925
  /* Excluded from this release type: _customElements */
927
926
  /* Excluded from this release type: _storage */
928
927
  };
@@ -1006,6 +1005,7 @@ declare type PlayerCustomEventsOverloads = {
1006
1005
  */
1007
1006
  on(event: typeof QUALITIES, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITIES]>) => void): Player;
1008
1007
  /* Excluded from this release type: on */
1008
+ /* Excluded from this release type: on */
1009
1009
  /**
1010
1010
  * Listen to this event to create a recommendations grid using the data passed with the event.
1011
1011
  */
@@ -1024,6 +1024,11 @@ declare type PlayerCustomEventsOverloads = {
1024
1024
  /* Excluded from this release type: on */
1025
1025
  /* Excluded from this release type: on */
1026
1026
  /* Excluded from this release type: on */
1027
+ /* Excluded from this release type: on */
1028
+ /**
1029
+ * TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
1030
+ * https://wowzamedia.jira.com/browse/PLAY-653
1031
+ */
1027
1032
  on<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1028
1033
  /* Excluded from this release type: on */
1029
1034
  /**
@@ -1048,9 +1053,12 @@ declare type PlayerCustomEventsOverloads = {
1048
1053
  */
1049
1054
  off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1050
1055
  /* Excluded from this release type: poll */
1056
+ emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1057
+ emit(event: never, data?: never): Player;
1058
+ /* Excluded from this release type: emit */
1059
+ /* Excluded from this release type: emit */
1051
1060
  /* Excluded from this release type: emit */
1052
1061
  /* Excluded from this release type: emit */
1053
- emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1054
1062
  /* Excluded from this release type: emit */
1055
1063
  };
1056
1064
 
@@ -1158,6 +1166,17 @@ declare const /**
1158
1166
  */
1159
1167
  PROGRESS = "progress";
1160
1168
 
1169
+ /**
1170
+ * @public
1171
+ */
1172
+ declare type QselOption = {
1173
+ height: number;
1174
+ level: number;
1175
+ text: string;
1176
+ /* Excluded from this release type: videoCodec */
1177
+ width: number;
1178
+ };
1179
+
1161
1180
  /**
1162
1181
  * @public
1163
1182
  * emitted whenever a list of qualities has been made available
@@ -1176,27 +1195,11 @@ QUALITIES = "qualities";
1176
1195
  /**
1177
1196
  * @public
1178
1197
  */
1179
- declare type QualitiesEventDetail = QualityDetail[];
1198
+ declare type QualitiesEventDetail = QselOption[];
1180
1199
 
1181
- /**
1182
- * @public
1183
- */
1184
- declare type QualityDetail = {
1185
- level: number;
1186
- text: string;
1187
- width: number;
1188
- height: number;
1189
- videoCodec: string;
1190
- } | BitrateInfo | {
1191
- text: string | number;
1192
- encodingId: string;
1193
- spatialLayerId: number;
1194
- temporalLayerId: number;
1195
- maxSpatialLayerId: number;
1196
- maxTemporalLayerId: number;
1197
- height: number;
1198
- width: number;
1199
- };
1200
+ /* Excluded from this release type: _QualitiesEventDetail */
1201
+
1202
+ /* Excluded from this release type: _QualityDetail */
1200
1203
 
1201
1204
  declare enum QualityOpts {
1202
1205
  LOW = 1,
@@ -1373,20 +1376,14 @@ SEEKING_2 = "seeking";
1373
1376
 
1374
1377
  /**
1375
1378
  * @public
1376
- * allows plugins to listen for forced quality changes
1377
- * it should emit the index of the quality to set
1378
- * -1 is a special idx saying to use ABR if the plugin
1379
- * exposes an ABR implementation
1379
+ * @deprecated please use Qsel.events.SET_QUALITY
1380
1380
  */
1381
1381
  declare const /**
1382
1382
  @public
1383
1383
  * when a new player is inserted into the HTML
1384
1384
  */ /**
1385
1385
  * @public
1386
- * allows plugins to listen for forced quality changes
1387
- * it should emit the index of the quality to set
1388
- * -1 is a special idx saying to use ABR if the plugin
1389
- * exposes an ABR implementation
1386
+ * @deprecated please use Qsel.events.SET_QUALITY
1390
1387
  */
1391
1388
  SET_QUALITY = "quality:set";
1392
1389
 
@@ -1575,16 +1572,6 @@ declare const /**
1575
1572
  */
1576
1573
  VIDEO_TRACKS = "videoTracks";
1577
1574
 
1578
- /**
1579
- * @public
1580
- */
1581
- declare interface VideoTrack {
1582
- name: string;
1583
- /* Excluded from this release type: data */
1584
- default: boolean;
1585
- selected: boolean;
1586
- }
1587
-
1588
1575
  /**
1589
1576
  * @public
1590
1577
  * when a player enters the viewpoint