@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
package/plugins/drm.d.ts CHANGED
@@ -768,6 +768,8 @@ declare const NO_CONTROLS = "no-controls";
768
768
 
769
769
  declare const NO_DVR = "no-timeline";
770
770
 
771
+ declare type NoInfer_2<T> = [T][T extends any ? 0 : never];
772
+
771
773
  /* Excluded from this release type: NON_RECOVERABLE_ERROR */
772
774
 
773
775
  /* Excluded from this release type: NonRecoverableErrorEventDetail */
@@ -908,7 +910,6 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
908
910
  disabled: boolean;
909
911
  /* Excluded from this release type: started */
910
912
  /* Excluded from this release type: token */
911
- tracks?: VideoTrack[];
912
913
  /* Excluded from this release type: _customElements */
913
914
  /* Excluded from this release type: _storage */
914
915
  };
@@ -992,6 +993,7 @@ declare type PlayerCustomEventsOverloads = {
992
993
  */
993
994
  on(event: typeof QUALITIES, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITIES]>) => void): Player;
994
995
  /* Excluded from this release type: on */
996
+ /* Excluded from this release type: on */
995
997
  /**
996
998
  * Listen to this event to create a recommendations grid using the data passed with the event.
997
999
  */
@@ -1010,6 +1012,11 @@ declare type PlayerCustomEventsOverloads = {
1010
1012
  /* Excluded from this release type: on */
1011
1013
  /* Excluded from this release type: on */
1012
1014
  /* Excluded from this release type: on */
1015
+ /* Excluded from this release type: on */
1016
+ /**
1017
+ * TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
1018
+ * https://wowzamedia.jira.com/browse/PLAY-653
1019
+ */
1013
1020
  on<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1014
1021
  /* Excluded from this release type: on */
1015
1022
  /**
@@ -1034,9 +1041,12 @@ declare type PlayerCustomEventsOverloads = {
1034
1041
  */
1035
1042
  off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1036
1043
  /* Excluded from this release type: poll */
1044
+ emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1045
+ emit(event: never, data?: never): Player;
1046
+ /* Excluded from this release type: emit */
1047
+ /* Excluded from this release type: emit */
1037
1048
  /* Excluded from this release type: emit */
1038
1049
  /* Excluded from this release type: emit */
1039
- emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1040
1050
  /* Excluded from this release type: emit */
1041
1051
  };
1042
1052
 
@@ -1144,6 +1154,17 @@ declare const /**
1144
1154
  */
1145
1155
  PROGRESS = "progress";
1146
1156
 
1157
+ /**
1158
+ * @public
1159
+ */
1160
+ declare type QselOption = {
1161
+ height: number;
1162
+ level: number;
1163
+ text: string;
1164
+ /* Excluded from this release type: videoCodec */
1165
+ width: number;
1166
+ };
1167
+
1147
1168
  /**
1148
1169
  * @public
1149
1170
  * emitted whenever a list of qualities has been made available
@@ -1162,27 +1183,11 @@ QUALITIES = "qualities";
1162
1183
  /**
1163
1184
  * @public
1164
1185
  */
1165
- declare type QualitiesEventDetail = QualityDetail[];
1186
+ declare type QualitiesEventDetail = QselOption[];
1166
1187
 
1167
- /**
1168
- * @public
1169
- */
1170
- declare type QualityDetail = {
1171
- level: number;
1172
- text: string;
1173
- width: number;
1174
- height: number;
1175
- videoCodec: string;
1176
- } | BitrateInfo | {
1177
- text: string | number;
1178
- encodingId: string;
1179
- spatialLayerId: number;
1180
- temporalLayerId: number;
1181
- maxSpatialLayerId: number;
1182
- maxTemporalLayerId: number;
1183
- height: number;
1184
- width: number;
1185
- };
1188
+ /* Excluded from this release type: _QualitiesEventDetail */
1189
+
1190
+ /* Excluded from this release type: _QualityDetail */
1186
1191
 
1187
1192
  declare enum QualityOpts {
1188
1193
  LOW = 1,
@@ -1354,20 +1359,14 @@ SEEKING_2 = "seeking";
1354
1359
 
1355
1360
  /**
1356
1361
  * @public
1357
- * allows plugins to listen for forced quality changes
1358
- * it should emit the index of the quality to set
1359
- * -1 is a special idx saying to use ABR if the plugin
1360
- * exposes an ABR implementation
1362
+ * @deprecated please use Qsel.events.SET_QUALITY
1361
1363
  */
1362
1364
  declare const /**
1363
1365
  @public
1364
1366
  * when a new player is inserted into the HTML
1365
1367
  */ /**
1366
1368
  * @public
1367
- * allows plugins to listen for forced quality changes
1368
- * it should emit the index of the quality to set
1369
- * -1 is a special idx saying to use ABR if the plugin
1370
- * exposes an ABR implementation
1369
+ * @deprecated please use Qsel.events.SET_QUALITY
1371
1370
  */
1372
1371
  SET_QUALITY = "quality:set";
1373
1372
 
@@ -1556,16 +1555,6 @@ declare const /**
1556
1555
  */
1557
1556
  VIDEO_TRACKS = "videoTracks";
1558
1557
 
1559
- /**
1560
- * @public
1561
- */
1562
- declare interface VideoTrack {
1563
- name: string;
1564
- /* Excluded from this release type: data */
1565
- default: boolean;
1566
- selected: boolean;
1567
- }
1568
-
1569
1558
  /**
1570
1559
  * @public
1571
1560
  * when a player enters the viewpoint
@@ -775,6 +775,8 @@ declare const NO_CONTROLS = "no-controls";
775
775
 
776
776
  declare const NO_DVR = "no-timeline";
777
777
 
778
+ declare type NoInfer_2<T> = [T][T extends any ? 0 : never];
779
+
778
780
  /* Excluded from this release type: NON_RECOVERABLE_ERROR */
779
781
 
780
782
  /* Excluded from this release type: NonRecoverableErrorEventDetail */
@@ -915,7 +917,6 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
915
917
  disabled: boolean;
916
918
  /* Excluded from this release type: started */
917
919
  /* Excluded from this release type: token */
918
- tracks?: VideoTrack[];
919
920
  /* Excluded from this release type: _customElements */
920
921
  /* Excluded from this release type: _storage */
921
922
  };
@@ -999,6 +1000,7 @@ declare type PlayerCustomEventsOverloads = {
999
1000
  */
1000
1001
  on(event: typeof QUALITIES, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITIES]>) => void): Player;
1001
1002
  /* Excluded from this release type: on */
1003
+ /* Excluded from this release type: on */
1002
1004
  /**
1003
1005
  * Listen to this event to create a recommendations grid using the data passed with the event.
1004
1006
  */
@@ -1017,6 +1019,11 @@ declare type PlayerCustomEventsOverloads = {
1017
1019
  /* Excluded from this release type: on */
1018
1020
  /* Excluded from this release type: on */
1019
1021
  /* Excluded from this release type: on */
1022
+ /* Excluded from this release type: on */
1023
+ /**
1024
+ * TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
1025
+ * https://wowzamedia.jira.com/browse/PLAY-653
1026
+ */
1020
1027
  on<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1021
1028
  /* Excluded from this release type: on */
1022
1029
  /**
@@ -1041,9 +1048,12 @@ declare type PlayerCustomEventsOverloads = {
1041
1048
  */
1042
1049
  off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1043
1050
  /* Excluded from this release type: poll */
1051
+ emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1052
+ emit(event: never, data?: never): Player;
1053
+ /* Excluded from this release type: emit */
1054
+ /* Excluded from this release type: emit */
1044
1055
  /* Excluded from this release type: emit */
1045
1056
  /* Excluded from this release type: emit */
1046
- emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1047
1057
  /* Excluded from this release type: emit */
1048
1058
  };
1049
1059
 
@@ -1158,6 +1168,17 @@ declare const /**
1158
1168
  */
1159
1169
  PROGRESS = "progress";
1160
1170
 
1171
+ /**
1172
+ * @public
1173
+ */
1174
+ declare type QselOption = {
1175
+ height: number;
1176
+ level: number;
1177
+ text: string;
1178
+ /* Excluded from this release type: videoCodec */
1179
+ width: number;
1180
+ };
1181
+
1161
1182
  /**
1162
1183
  * @public
1163
1184
  * emitted whenever a list of qualities has been made available
@@ -1176,27 +1197,11 @@ QUALITIES = "qualities";
1176
1197
  /**
1177
1198
  * @public
1178
1199
  */
1179
- declare type QualitiesEventDetail = QualityDetail[];
1200
+ declare type QualitiesEventDetail = QselOption[];
1180
1201
 
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
- };
1202
+ /* Excluded from this release type: _QualitiesEventDetail */
1203
+
1204
+ /* Excluded from this release type: _QualityDetail */
1200
1205
 
1201
1206
  declare enum QualityOpts {
1202
1207
  LOW = 1,
@@ -1373,20 +1378,14 @@ SEEKING_2 = "seeking";
1373
1378
 
1374
1379
  /**
1375
1380
  * @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
1381
+ * @deprecated please use Qsel.events.SET_QUALITY
1380
1382
  */
1381
1383
  declare const /**
1382
1384
  @public
1383
1385
  * when a new player is inserted into the HTML
1384
1386
  */ /**
1385
1387
  * @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
1388
+ * @deprecated please use Qsel.events.SET_QUALITY
1390
1389
  */
1391
1390
  SET_QUALITY = "quality:set";
1392
1391
 
@@ -1575,16 +1574,6 @@ declare const /**
1575
1574
  */
1576
1575
  VIDEO_TRACKS = "videoTracks";
1577
1576
 
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
1577
  /**
1589
1578
  * @public
1590
1579
  * when a player enters the viewpoint
package/plugins/fas.d.ts CHANGED
@@ -778,6 +778,8 @@ declare const NO_CONTROLS = "no-controls";
778
778
 
779
779
  declare const NO_DVR = "no-timeline";
780
780
 
781
+ declare type NoInfer_2<T> = [T][T extends any ? 0 : never];
782
+
781
783
  /* Excluded from this release type: NON_RECOVERABLE_ERROR */
782
784
 
783
785
  /* Excluded from this release type: NonRecoverableErrorEventDetail */
@@ -918,7 +920,6 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
918
920
  disabled: boolean;
919
921
  /* Excluded from this release type: started */
920
922
  /* Excluded from this release type: token */
921
- tracks?: VideoTrack[];
922
923
  /* Excluded from this release type: _customElements */
923
924
  /* Excluded from this release type: _storage */
924
925
  };
@@ -1002,6 +1003,7 @@ declare type PlayerCustomEventsOverloads = {
1002
1003
  */
1003
1004
  on(event: typeof QUALITIES, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITIES]>) => void): Player;
1004
1005
  /* Excluded from this release type: on */
1006
+ /* Excluded from this release type: on */
1005
1007
  /**
1006
1008
  * Listen to this event to create a recommendations grid using the data passed with the event.
1007
1009
  */
@@ -1020,6 +1022,11 @@ declare type PlayerCustomEventsOverloads = {
1020
1022
  /* Excluded from this release type: on */
1021
1023
  /* Excluded from this release type: on */
1022
1024
  /* Excluded from this release type: on */
1025
+ /* Excluded from this release type: on */
1026
+ /**
1027
+ * TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
1028
+ * https://wowzamedia.jira.com/browse/PLAY-653
1029
+ */
1023
1030
  on<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1024
1031
  /* Excluded from this release type: on */
1025
1032
  /**
@@ -1044,9 +1051,12 @@ declare type PlayerCustomEventsOverloads = {
1044
1051
  */
1045
1052
  off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1046
1053
  /* Excluded from this release type: poll */
1054
+ emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1055
+ emit(event: never, data?: never): Player;
1056
+ /* Excluded from this release type: emit */
1057
+ /* Excluded from this release type: emit */
1047
1058
  /* Excluded from this release type: emit */
1048
1059
  /* Excluded from this release type: emit */
1049
- emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1050
1060
  /* Excluded from this release type: emit */
1051
1061
  };
1052
1062
 
@@ -1154,6 +1164,17 @@ declare const /**
1154
1164
  */
1155
1165
  PROGRESS = "progress";
1156
1166
 
1167
+ /**
1168
+ * @public
1169
+ */
1170
+ declare type QselOption = {
1171
+ height: number;
1172
+ level: number;
1173
+ text: string;
1174
+ /* Excluded from this release type: videoCodec */
1175
+ width: number;
1176
+ };
1177
+
1157
1178
  /**
1158
1179
  * @public
1159
1180
  * emitted whenever a list of qualities has been made available
@@ -1172,27 +1193,11 @@ QUALITIES = "qualities";
1172
1193
  /**
1173
1194
  * @public
1174
1195
  */
1175
- declare type QualitiesEventDetail = QualityDetail[];
1196
+ declare type QualitiesEventDetail = QselOption[];
1176
1197
 
1177
- /**
1178
- * @public
1179
- */
1180
- declare type QualityDetail = {
1181
- level: number;
1182
- text: string;
1183
- width: number;
1184
- height: number;
1185
- videoCodec: string;
1186
- } | BitrateInfo | {
1187
- text: string | number;
1188
- encodingId: string;
1189
- spatialLayerId: number;
1190
- temporalLayerId: number;
1191
- maxSpatialLayerId: number;
1192
- maxTemporalLayerId: number;
1193
- height: number;
1194
- width: number;
1195
- };
1198
+ /* Excluded from this release type: _QualitiesEventDetail */
1199
+
1200
+ /* Excluded from this release type: _QualityDetail */
1196
1201
 
1197
1202
  declare enum QualityOpts {
1198
1203
  LOW = 1,
@@ -1364,20 +1369,14 @@ SEEKING_2 = "seeking";
1364
1369
 
1365
1370
  /**
1366
1371
  * @public
1367
- * allows plugins to listen for forced quality changes
1368
- * it should emit the index of the quality to set
1369
- * -1 is a special idx saying to use ABR if the plugin
1370
- * exposes an ABR implementation
1372
+ * @deprecated please use Qsel.events.SET_QUALITY
1371
1373
  */
1372
1374
  declare const /**
1373
1375
  @public
1374
1376
  * when a new player is inserted into the HTML
1375
1377
  */ /**
1376
1378
  * @public
1377
- * allows plugins to listen for forced quality changes
1378
- * it should emit the index of the quality to set
1379
- * -1 is a special idx saying to use ABR if the plugin
1380
- * exposes an ABR implementation
1379
+ * @deprecated please use Qsel.events.SET_QUALITY
1381
1380
  */
1382
1381
  SET_QUALITY = "quality:set";
1383
1382
 
@@ -1566,16 +1565,6 @@ declare const /**
1566
1565
  */
1567
1566
  VIDEO_TRACKS = "videoTracks";
1568
1567
 
1569
- /**
1570
- * @public
1571
- */
1572
- declare interface VideoTrack {
1573
- name: string;
1574
- /* Excluded from this release type: data */
1575
- default: boolean;
1576
- selected: boolean;
1577
- }
1578
-
1579
1568
  /**
1580
1569
  * @public
1581
1570
  * when a player enters the viewpoint
@@ -780,6 +780,8 @@ declare const NO_CONTROLS = "no-controls";
780
780
 
781
781
  declare const NO_DVR = "no-timeline";
782
782
 
783
+ declare type NoInfer_2<T> = [T][T extends any ? 0 : never];
784
+
783
785
  /* Excluded from this release type: NON_RECOVERABLE_ERROR */
784
786
 
785
787
  /* Excluded from this release type: NonRecoverableErrorEventDetail */
@@ -920,7 +922,6 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
920
922
  disabled: boolean;
921
923
  /* Excluded from this release type: started */
922
924
  /* Excluded from this release type: token */
923
- tracks?: VideoTrack[];
924
925
  /* Excluded from this release type: _customElements */
925
926
  /* Excluded from this release type: _storage */
926
927
  };
@@ -1004,6 +1005,7 @@ declare type PlayerCustomEventsOverloads = {
1004
1005
  */
1005
1006
  on(event: typeof QUALITIES, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITIES]>) => void): Player;
1006
1007
  /* Excluded from this release type: on */
1008
+ /* Excluded from this release type: on */
1007
1009
  /**
1008
1010
  * Listen to this event to create a recommendations grid using the data passed with the event.
1009
1011
  */
@@ -1022,6 +1024,11 @@ declare type PlayerCustomEventsOverloads = {
1022
1024
  /* Excluded from this release type: on */
1023
1025
  /* Excluded from this release type: on */
1024
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
+ */
1025
1032
  on<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1026
1033
  /* Excluded from this release type: on */
1027
1034
  /**
@@ -1046,9 +1053,12 @@ declare type PlayerCustomEventsOverloads = {
1046
1053
  */
1047
1054
  off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1048
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 */
1049
1060
  /* Excluded from this release type: emit */
1050
1061
  /* Excluded from this release type: emit */
1051
- emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1052
1062
  /* Excluded from this release type: emit */
1053
1063
  };
1054
1064
 
@@ -1156,6 +1166,17 @@ declare const /**
1156
1166
  */
1157
1167
  PROGRESS = "progress";
1158
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
+
1159
1180
  /**
1160
1181
  * @public
1161
1182
  * emitted whenever a list of qualities has been made available
@@ -1174,27 +1195,11 @@ QUALITIES = "qualities";
1174
1195
  /**
1175
1196
  * @public
1176
1197
  */
1177
- declare type QualitiesEventDetail = QualityDetail[];
1198
+ declare type QualitiesEventDetail = QselOption[];
1178
1199
 
1179
- /**
1180
- * @public
1181
- */
1182
- declare type QualityDetail = {
1183
- level: number;
1184
- text: string;
1185
- width: number;
1186
- height: number;
1187
- videoCodec: string;
1188
- } | BitrateInfo | {
1189
- text: string | number;
1190
- encodingId: string;
1191
- spatialLayerId: number;
1192
- temporalLayerId: number;
1193
- maxSpatialLayerId: number;
1194
- maxTemporalLayerId: number;
1195
- height: number;
1196
- width: number;
1197
- };
1200
+ /* Excluded from this release type: _QualitiesEventDetail */
1201
+
1202
+ /* Excluded from this release type: _QualityDetail */
1198
1203
 
1199
1204
  declare enum QualityOpts {
1200
1205
  LOW = 1,
@@ -1366,20 +1371,14 @@ SEEKING_2 = "seeking";
1366
1371
 
1367
1372
  /**
1368
1373
  * @public
1369
- * allows plugins to listen for forced quality changes
1370
- * it should emit the index of the quality to set
1371
- * -1 is a special idx saying to use ABR if the plugin
1372
- * exposes an ABR implementation
1374
+ * @deprecated please use Qsel.events.SET_QUALITY
1373
1375
  */
1374
1376
  declare const /**
1375
1377
  @public
1376
1378
  * when a new player is inserted into the HTML
1377
1379
  */ /**
1378
1380
  * @public
1379
- * allows plugins to listen for forced quality changes
1380
- * it should emit the index of the quality to set
1381
- * -1 is a special idx saying to use ABR if the plugin
1382
- * exposes an ABR implementation
1381
+ * @deprecated please use Qsel.events.SET_QUALITY
1383
1382
  */
1384
1383
  SET_QUALITY = "quality:set";
1385
1384
 
@@ -1568,16 +1567,6 @@ declare const /**
1568
1567
  */
1569
1568
  VIDEO_TRACKS = "videoTracks";
1570
1569
 
1571
- /**
1572
- * @public
1573
- */
1574
- declare interface VideoTrack {
1575
- name: string;
1576
- /* Excluded from this release type: data */
1577
- default: boolean;
1578
- selected: boolean;
1579
- }
1580
-
1581
1570
  /**
1582
1571
  * @public
1583
1572
  * when a player enters the viewpoint
package/plugins/ga4.d.ts CHANGED
@@ -768,6 +768,8 @@ declare const NO_CONTROLS = "no-controls";
768
768
 
769
769
  declare const NO_DVR = "no-timeline";
770
770
 
771
+ declare type NoInfer_2<T> = [T][T extends any ? 0 : never];
772
+
771
773
  /* Excluded from this release type: NON_RECOVERABLE_ERROR */
772
774
 
773
775
  /* Excluded from this release type: NonRecoverableErrorEventDetail */
@@ -908,7 +910,6 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
908
910
  disabled: boolean;
909
911
  /* Excluded from this release type: started */
910
912
  /* Excluded from this release type: token */
911
- tracks?: VideoTrack[];
912
913
  /* Excluded from this release type: _customElements */
913
914
  /* Excluded from this release type: _storage */
914
915
  };
@@ -992,6 +993,7 @@ declare type PlayerCustomEventsOverloads = {
992
993
  */
993
994
  on(event: typeof QUALITIES, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITIES]>) => void): Player;
994
995
  /* Excluded from this release type: on */
996
+ /* Excluded from this release type: on */
995
997
  /**
996
998
  * Listen to this event to create a recommendations grid using the data passed with the event.
997
999
  */
@@ -1010,6 +1012,11 @@ declare type PlayerCustomEventsOverloads = {
1010
1012
  /* Excluded from this release type: on */
1011
1013
  /* Excluded from this release type: on */
1012
1014
  /* Excluded from this release type: on */
1015
+ /* Excluded from this release type: on */
1016
+ /**
1017
+ * TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
1018
+ * https://wowzamedia.jira.com/browse/PLAY-653
1019
+ */
1013
1020
  on<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1014
1021
  /* Excluded from this release type: on */
1015
1022
  /**
@@ -1034,9 +1041,12 @@ declare type PlayerCustomEventsOverloads = {
1034
1041
  */
1035
1042
  off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
1036
1043
  /* Excluded from this release type: poll */
1044
+ emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1045
+ emit(event: never, data?: never): Player;
1046
+ /* Excluded from this release type: emit */
1047
+ /* Excluded from this release type: emit */
1037
1048
  /* Excluded from this release type: emit */
1038
1049
  /* Excluded from this release type: emit */
1039
- emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
1040
1050
  /* Excluded from this release type: emit */
1041
1051
  };
1042
1052
 
@@ -1144,6 +1154,17 @@ declare const /**
1144
1154
  */
1145
1155
  PROGRESS = "progress";
1146
1156
 
1157
+ /**
1158
+ * @public
1159
+ */
1160
+ declare type QselOption = {
1161
+ height: number;
1162
+ level: number;
1163
+ text: string;
1164
+ /* Excluded from this release type: videoCodec */
1165
+ width: number;
1166
+ };
1167
+
1147
1168
  /**
1148
1169
  * @public
1149
1170
  * emitted whenever a list of qualities has been made available
@@ -1162,27 +1183,11 @@ QUALITIES = "qualities";
1162
1183
  /**
1163
1184
  * @public
1164
1185
  */
1165
- declare type QualitiesEventDetail = QualityDetail[];
1186
+ declare type QualitiesEventDetail = QselOption[];
1166
1187
 
1167
- /**
1168
- * @public
1169
- */
1170
- declare type QualityDetail = {
1171
- level: number;
1172
- text: string;
1173
- width: number;
1174
- height: number;
1175
- videoCodec: string;
1176
- } | BitrateInfo | {
1177
- text: string | number;
1178
- encodingId: string;
1179
- spatialLayerId: number;
1180
- temporalLayerId: number;
1181
- maxSpatialLayerId: number;
1182
- maxTemporalLayerId: number;
1183
- height: number;
1184
- width: number;
1185
- };
1188
+ /* Excluded from this release type: _QualitiesEventDetail */
1189
+
1190
+ /* Excluded from this release type: _QualityDetail */
1186
1191
 
1187
1192
  declare enum QualityOpts {
1188
1193
  LOW = 1,
@@ -1354,20 +1359,14 @@ SEEKING_2 = "seeking";
1354
1359
 
1355
1360
  /**
1356
1361
  * @public
1357
- * allows plugins to listen for forced quality changes
1358
- * it should emit the index of the quality to set
1359
- * -1 is a special idx saying to use ABR if the plugin
1360
- * exposes an ABR implementation
1362
+ * @deprecated please use Qsel.events.SET_QUALITY
1361
1363
  */
1362
1364
  declare const /**
1363
1365
  @public
1364
1366
  * when a new player is inserted into the HTML
1365
1367
  */ /**
1366
1368
  * @public
1367
- * allows plugins to listen for forced quality changes
1368
- * it should emit the index of the quality to set
1369
- * -1 is a special idx saying to use ABR if the plugin
1370
- * exposes an ABR implementation
1369
+ * @deprecated please use Qsel.events.SET_QUALITY
1371
1370
  */
1372
1371
  SET_QUALITY = "quality:set";
1373
1372
 
@@ -1556,16 +1555,6 @@ declare const /**
1556
1555
  */
1557
1556
  VIDEO_TRACKS = "videoTracks";
1558
1557
 
1559
- /**
1560
- * @public
1561
- */
1562
- declare interface VideoTrack {
1563
- name: string;
1564
- /* Excluded from this release type: data */
1565
- default: boolean;
1566
- selected: boolean;
1567
- }
1568
-
1569
1558
  /**
1570
1559
  * @public
1571
1560
  * when a player enters the viewpoint