@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.
- package/core/events.d.ts +2 -8
- package/core/events.js +1 -4
- package/core.js +1 -1
- package/default.js +1 -1
- package/embed.js +2 -2
- package/flowplayer.css +1 -1
- package/index.d.ts +29 -40
- package/package.json +1 -1
- package/plugins/ads.d.ts +29 -40
- package/plugins/ads.js +1 -1
- package/plugins/airplay.d.ts +29 -40
- package/plugins/analytics.d.ts +29 -40
- package/plugins/analytics.js +1 -1
- package/plugins/asel.d.ts +29 -40
- package/plugins/audio.d.ts +29 -40
- package/plugins/chapters.d.ts +29 -40
- package/plugins/chromecast.d.ts +29 -40
- package/plugins/comscore.d.ts +29 -40
- package/plugins/consent.d.ts +78 -41
- package/plugins/consent.js +1 -1
- package/plugins/context-menu.d.ts +29 -40
- package/plugins/cuepoints.d.ts +29 -40
- package/plugins/dash.d.ts +29 -40
- package/plugins/drm.d.ts +29 -40
- package/plugins/endscreen.d.ts +29 -40
- package/plugins/fas.d.ts +29 -40
- package/plugins/float-on-scroll.d.ts +29 -40
- package/plugins/ga4.d.ts +29 -40
- package/plugins/gemius.d.ts +29 -40
- package/plugins/google-analytics.d.ts +29 -40
- package/plugins/health.d.ts +37 -41
- package/plugins/health.js +1 -1
- package/plugins/hls.d.ts +29 -40
- package/plugins/hls.js +1 -1
- package/plugins/id3.d.ts +96 -41
- package/plugins/iframe.d.ts +29 -40
- package/plugins/keyboard.d.ts +29 -40
- package/plugins/media-session.d.ts +29 -40
- package/plugins/message.d.ts +29 -40
- package/plugins/ovp.d.ts +29 -40
- package/plugins/playlist.d.ts +29 -71
- package/plugins/playlist.js +1 -1
- package/plugins/preview.d.ts +29 -40
- package/plugins/qsel.d.ts +102 -38
- package/plugins/qsel.js +1 -1
- package/plugins/qul.d.ts +29 -40
- package/plugins/rts.d.ts +29 -40
- package/plugins/share.d.ts +29 -40
- package/plugins/speed.d.ts +29 -40
- package/plugins/ssai.d.ts +29 -40
- package/plugins/ssai.js +1 -1
- package/plugins/subtitles.d.ts +29 -40
- package/plugins/thumbnails.d.ts +29 -40
- package/plugins/tizen.d.ts +29 -40
- package/plugins/vtsel.d.ts +122 -33
- package/plugins/vtsel.js +1 -1
- package/plugins/webos.d.ts +29 -40
- package/util/loader.d.ts +27 -40
package/plugins/asel.d.ts
CHANGED
|
@@ -885,6 +885,8 @@ declare const NO_CONTROLS = "no-controls";
|
|
|
885
885
|
|
|
886
886
|
declare const NO_DVR = "no-timeline";
|
|
887
887
|
|
|
888
|
+
declare type NoInfer_2<T> = [T][T extends any ? 0 : never];
|
|
889
|
+
|
|
888
890
|
/* Excluded from this release type: NON_RECOVERABLE_ERROR */
|
|
889
891
|
|
|
890
892
|
/* Excluded from this release type: NonRecoverableErrorEventDetail */
|
|
@@ -1025,7 +1027,6 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
|
|
|
1025
1027
|
disabled: boolean;
|
|
1026
1028
|
/* Excluded from this release type: started */
|
|
1027
1029
|
/* Excluded from this release type: token */
|
|
1028
|
-
tracks?: VideoTrack[];
|
|
1029
1030
|
/* Excluded from this release type: _customElements */
|
|
1030
1031
|
/* Excluded from this release type: _storage */
|
|
1031
1032
|
};
|
|
@@ -1109,6 +1110,7 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1109
1110
|
*/
|
|
1110
1111
|
on(event: typeof QUALITIES, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITIES]>) => void): Player;
|
|
1111
1112
|
/* Excluded from this release type: on */
|
|
1113
|
+
/* Excluded from this release type: on */
|
|
1112
1114
|
/**
|
|
1113
1115
|
* Listen to this event to create a recommendations grid using the data passed with the event.
|
|
1114
1116
|
*/
|
|
@@ -1127,6 +1129,11 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1127
1129
|
/* Excluded from this release type: on */
|
|
1128
1130
|
/* Excluded from this release type: on */
|
|
1129
1131
|
/* Excluded from this release type: on */
|
|
1132
|
+
/* Excluded from this release type: on */
|
|
1133
|
+
/**
|
|
1134
|
+
* TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
|
|
1135
|
+
* https://wowzamedia.jira.com/browse/PLAY-653
|
|
1136
|
+
*/
|
|
1130
1137
|
on<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1131
1138
|
/* Excluded from this release type: on */
|
|
1132
1139
|
/**
|
|
@@ -1151,9 +1158,12 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1151
1158
|
*/
|
|
1152
1159
|
off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1153
1160
|
/* Excluded from this release type: poll */
|
|
1161
|
+
emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1162
|
+
emit(event: never, data?: never): Player;
|
|
1163
|
+
/* Excluded from this release type: emit */
|
|
1164
|
+
/* Excluded from this release type: emit */
|
|
1154
1165
|
/* Excluded from this release type: emit */
|
|
1155
1166
|
/* Excluded from this release type: emit */
|
|
1156
|
-
emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1157
1167
|
/* Excluded from this release type: emit */
|
|
1158
1168
|
};
|
|
1159
1169
|
|
|
@@ -1261,6 +1271,17 @@ declare const /**
|
|
|
1261
1271
|
*/
|
|
1262
1272
|
PROGRESS = "progress";
|
|
1263
1273
|
|
|
1274
|
+
/**
|
|
1275
|
+
* @public
|
|
1276
|
+
*/
|
|
1277
|
+
declare type QselOption = {
|
|
1278
|
+
height: number;
|
|
1279
|
+
level: number;
|
|
1280
|
+
text: string;
|
|
1281
|
+
/* Excluded from this release type: videoCodec */
|
|
1282
|
+
width: number;
|
|
1283
|
+
};
|
|
1284
|
+
|
|
1264
1285
|
/**
|
|
1265
1286
|
* @public
|
|
1266
1287
|
* emitted whenever a list of qualities has been made available
|
|
@@ -1279,27 +1300,11 @@ QUALITIES = "qualities";
|
|
|
1279
1300
|
/**
|
|
1280
1301
|
* @public
|
|
1281
1302
|
*/
|
|
1282
|
-
declare type QualitiesEventDetail =
|
|
1303
|
+
declare type QualitiesEventDetail = QselOption[];
|
|
1283
1304
|
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
*/
|
|
1287
|
-
declare type QualityDetail = {
|
|
1288
|
-
level: number;
|
|
1289
|
-
text: string;
|
|
1290
|
-
width: number;
|
|
1291
|
-
height: number;
|
|
1292
|
-
videoCodec: string;
|
|
1293
|
-
} | BitrateInfo | {
|
|
1294
|
-
text: string | number;
|
|
1295
|
-
encodingId: string;
|
|
1296
|
-
spatialLayerId: number;
|
|
1297
|
-
temporalLayerId: number;
|
|
1298
|
-
maxSpatialLayerId: number;
|
|
1299
|
-
maxTemporalLayerId: number;
|
|
1300
|
-
height: number;
|
|
1301
|
-
width: number;
|
|
1302
|
-
};
|
|
1305
|
+
/* Excluded from this release type: _QualitiesEventDetail */
|
|
1306
|
+
|
|
1307
|
+
/* Excluded from this release type: _QualityDetail */
|
|
1303
1308
|
|
|
1304
1309
|
declare enum QualityOpts {
|
|
1305
1310
|
LOW = 1,
|
|
@@ -1476,20 +1481,14 @@ declare const SET = "audio:set";
|
|
|
1476
1481
|
|
|
1477
1482
|
/**
|
|
1478
1483
|
* @public
|
|
1479
|
-
*
|
|
1480
|
-
* it should emit the index of the quality to set
|
|
1481
|
-
* -1 is a special idx saying to use ABR if the plugin
|
|
1482
|
-
* exposes an ABR implementation
|
|
1484
|
+
* @deprecated please use Qsel.events.SET_QUALITY
|
|
1483
1485
|
*/
|
|
1484
1486
|
declare const /**
|
|
1485
1487
|
@public
|
|
1486
1488
|
* when a new player is inserted into the HTML
|
|
1487
1489
|
*/ /**
|
|
1488
1490
|
* @public
|
|
1489
|
-
*
|
|
1490
|
-
* it should emit the index of the quality to set
|
|
1491
|
-
* -1 is a special idx saying to use ABR if the plugin
|
|
1492
|
-
* exposes an ABR implementation
|
|
1491
|
+
* @deprecated please use Qsel.events.SET_QUALITY
|
|
1493
1492
|
*/
|
|
1494
1493
|
SET_QUALITY = "quality:set";
|
|
1495
1494
|
|
|
@@ -1703,16 +1702,6 @@ declare const /**
|
|
|
1703
1702
|
*/
|
|
1704
1703
|
VIDEO_TRACKS = "videoTracks";
|
|
1705
1704
|
|
|
1706
|
-
/**
|
|
1707
|
-
* @public
|
|
1708
|
-
*/
|
|
1709
|
-
declare interface VideoTrack {
|
|
1710
|
-
name: string;
|
|
1711
|
-
/* Excluded from this release type: data */
|
|
1712
|
-
default: boolean;
|
|
1713
|
-
selected: boolean;
|
|
1714
|
-
}
|
|
1715
|
-
|
|
1716
1705
|
/**
|
|
1717
1706
|
* @public
|
|
1718
1707
|
* when a player enters the viewpoint
|
package/plugins/audio.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 =
|
|
1186
|
+
declare type QualitiesEventDetail = QselOption[];
|
|
1166
1187
|
|
|
1167
|
-
|
|
1168
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
package/plugins/chapters.d.ts
CHANGED
|
@@ -777,6 +777,8 @@ declare const NO_CONTROLS = "no-controls";
|
|
|
777
777
|
|
|
778
778
|
declare const NO_DVR = "no-timeline";
|
|
779
779
|
|
|
780
|
+
declare type NoInfer_2<T> = [T][T extends any ? 0 : never];
|
|
781
|
+
|
|
780
782
|
/* Excluded from this release type: NON_RECOVERABLE_ERROR */
|
|
781
783
|
|
|
782
784
|
/* Excluded from this release type: NonRecoverableErrorEventDetail */
|
|
@@ -917,7 +919,6 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
|
|
|
917
919
|
disabled: boolean;
|
|
918
920
|
/* Excluded from this release type: started */
|
|
919
921
|
/* Excluded from this release type: token */
|
|
920
|
-
tracks?: VideoTrack[];
|
|
921
922
|
/* Excluded from this release type: _customElements */
|
|
922
923
|
/* Excluded from this release type: _storage */
|
|
923
924
|
};
|
|
@@ -1001,6 +1002,7 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1001
1002
|
*/
|
|
1002
1003
|
on(event: typeof QUALITIES, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITIES]>) => void): Player;
|
|
1003
1004
|
/* Excluded from this release type: on */
|
|
1005
|
+
/* Excluded from this release type: on */
|
|
1004
1006
|
/**
|
|
1005
1007
|
* Listen to this event to create a recommendations grid using the data passed with the event.
|
|
1006
1008
|
*/
|
|
@@ -1019,6 +1021,11 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1019
1021
|
/* Excluded from this release type: on */
|
|
1020
1022
|
/* Excluded from this release type: on */
|
|
1021
1023
|
/* Excluded from this release type: on */
|
|
1024
|
+
/* Excluded from this release type: on */
|
|
1025
|
+
/**
|
|
1026
|
+
* TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
|
|
1027
|
+
* https://wowzamedia.jira.com/browse/PLAY-653
|
|
1028
|
+
*/
|
|
1022
1029
|
on<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1023
1030
|
/* Excluded from this release type: on */
|
|
1024
1031
|
/**
|
|
@@ -1043,9 +1050,12 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1043
1050
|
*/
|
|
1044
1051
|
off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1045
1052
|
/* Excluded from this release type: poll */
|
|
1053
|
+
emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1054
|
+
emit(event: never, data?: never): Player;
|
|
1055
|
+
/* Excluded from this release type: emit */
|
|
1056
|
+
/* Excluded from this release type: emit */
|
|
1046
1057
|
/* Excluded from this release type: emit */
|
|
1047
1058
|
/* Excluded from this release type: emit */
|
|
1048
|
-
emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1049
1059
|
/* Excluded from this release type: emit */
|
|
1050
1060
|
};
|
|
1051
1061
|
|
|
@@ -1153,6 +1163,17 @@ declare const /**
|
|
|
1153
1163
|
*/
|
|
1154
1164
|
PROGRESS = "progress";
|
|
1155
1165
|
|
|
1166
|
+
/**
|
|
1167
|
+
* @public
|
|
1168
|
+
*/
|
|
1169
|
+
declare type QselOption = {
|
|
1170
|
+
height: number;
|
|
1171
|
+
level: number;
|
|
1172
|
+
text: string;
|
|
1173
|
+
/* Excluded from this release type: videoCodec */
|
|
1174
|
+
width: number;
|
|
1175
|
+
};
|
|
1176
|
+
|
|
1156
1177
|
/**
|
|
1157
1178
|
* @public
|
|
1158
1179
|
* emitted whenever a list of qualities has been made available
|
|
@@ -1171,27 +1192,11 @@ QUALITIES = "qualities";
|
|
|
1171
1192
|
/**
|
|
1172
1193
|
* @public
|
|
1173
1194
|
*/
|
|
1174
|
-
declare type QualitiesEventDetail =
|
|
1195
|
+
declare type QualitiesEventDetail = QselOption[];
|
|
1175
1196
|
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
*/
|
|
1179
|
-
declare type QualityDetail = {
|
|
1180
|
-
level: number;
|
|
1181
|
-
text: string;
|
|
1182
|
-
width: number;
|
|
1183
|
-
height: number;
|
|
1184
|
-
videoCodec: string;
|
|
1185
|
-
} | BitrateInfo | {
|
|
1186
|
-
text: string | number;
|
|
1187
|
-
encodingId: string;
|
|
1188
|
-
spatialLayerId: number;
|
|
1189
|
-
temporalLayerId: number;
|
|
1190
|
-
maxSpatialLayerId: number;
|
|
1191
|
-
maxTemporalLayerId: number;
|
|
1192
|
-
height: number;
|
|
1193
|
-
width: number;
|
|
1194
|
-
};
|
|
1197
|
+
/* Excluded from this release type: _QualitiesEventDetail */
|
|
1198
|
+
|
|
1199
|
+
/* Excluded from this release type: _QualityDetail */
|
|
1195
1200
|
|
|
1196
1201
|
declare enum QualityOpts {
|
|
1197
1202
|
LOW = 1,
|
|
@@ -1363,20 +1368,14 @@ SEEKING_2 = "seeking";
|
|
|
1363
1368
|
|
|
1364
1369
|
/**
|
|
1365
1370
|
* @public
|
|
1366
|
-
*
|
|
1367
|
-
* it should emit the index of the quality to set
|
|
1368
|
-
* -1 is a special idx saying to use ABR if the plugin
|
|
1369
|
-
* exposes an ABR implementation
|
|
1371
|
+
* @deprecated please use Qsel.events.SET_QUALITY
|
|
1370
1372
|
*/
|
|
1371
1373
|
declare const /**
|
|
1372
1374
|
@public
|
|
1373
1375
|
* when a new player is inserted into the HTML
|
|
1374
1376
|
*/ /**
|
|
1375
1377
|
* @public
|
|
1376
|
-
*
|
|
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
|
|
1378
|
+
* @deprecated please use Qsel.events.SET_QUALITY
|
|
1380
1379
|
*/
|
|
1381
1380
|
SET_QUALITY = "quality:set";
|
|
1382
1381
|
|
|
@@ -1565,16 +1564,6 @@ declare const /**
|
|
|
1565
1564
|
*/
|
|
1566
1565
|
VIDEO_TRACKS = "videoTracks";
|
|
1567
1566
|
|
|
1568
|
-
/**
|
|
1569
|
-
* @public
|
|
1570
|
-
*/
|
|
1571
|
-
declare interface VideoTrack {
|
|
1572
|
-
name: string;
|
|
1573
|
-
/* Excluded from this release type: data */
|
|
1574
|
-
default: boolean;
|
|
1575
|
-
selected: boolean;
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
1567
|
/**
|
|
1579
1568
|
* @public
|
|
1580
1569
|
* when a player enters the viewpoint
|
package/plugins/chromecast.d.ts
CHANGED
|
@@ -820,6 +820,8 @@ declare const NO_CONTROLS = "no-controls";
|
|
|
820
820
|
|
|
821
821
|
declare const NO_DVR = "no-timeline";
|
|
822
822
|
|
|
823
|
+
declare type NoInfer_2<T> = [T][T extends any ? 0 : never];
|
|
824
|
+
|
|
823
825
|
/* Excluded from this release type: NON_RECOVERABLE_ERROR */
|
|
824
826
|
|
|
825
827
|
/* Excluded from this release type: NonRecoverableErrorEventDetail */
|
|
@@ -960,7 +962,6 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
|
|
|
960
962
|
disabled: boolean;
|
|
961
963
|
/* Excluded from this release type: started */
|
|
962
964
|
/* Excluded from this release type: token */
|
|
963
|
-
tracks?: VideoTrack[];
|
|
964
965
|
/* Excluded from this release type: _customElements */
|
|
965
966
|
/* Excluded from this release type: _storage */
|
|
966
967
|
};
|
|
@@ -1044,6 +1045,7 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1044
1045
|
*/
|
|
1045
1046
|
on(event: typeof QUALITIES, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITIES]>) => void): Player;
|
|
1046
1047
|
/* Excluded from this release type: on */
|
|
1048
|
+
/* Excluded from this release type: on */
|
|
1047
1049
|
/**
|
|
1048
1050
|
* Listen to this event to create a recommendations grid using the data passed with the event.
|
|
1049
1051
|
*/
|
|
@@ -1062,6 +1064,11 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1062
1064
|
/* Excluded from this release type: on */
|
|
1063
1065
|
/* Excluded from this release type: on */
|
|
1064
1066
|
/* Excluded from this release type: on */
|
|
1067
|
+
/* Excluded from this release type: on */
|
|
1068
|
+
/**
|
|
1069
|
+
* TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
|
|
1070
|
+
* https://wowzamedia.jira.com/browse/PLAY-653
|
|
1071
|
+
*/
|
|
1065
1072
|
on<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1066
1073
|
/* Excluded from this release type: on */
|
|
1067
1074
|
/**
|
|
@@ -1086,9 +1093,12 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1086
1093
|
*/
|
|
1087
1094
|
off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1088
1095
|
/* Excluded from this release type: poll */
|
|
1096
|
+
emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1097
|
+
emit(event: never, data?: never): Player;
|
|
1098
|
+
/* Excluded from this release type: emit */
|
|
1099
|
+
/* Excluded from this release type: emit */
|
|
1089
1100
|
/* Excluded from this release type: emit */
|
|
1090
1101
|
/* Excluded from this release type: emit */
|
|
1091
|
-
emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1092
1102
|
/* Excluded from this release type: emit */
|
|
1093
1103
|
};
|
|
1094
1104
|
|
|
@@ -1196,6 +1206,17 @@ declare const /**
|
|
|
1196
1206
|
*/
|
|
1197
1207
|
PROGRESS = "progress";
|
|
1198
1208
|
|
|
1209
|
+
/**
|
|
1210
|
+
* @public
|
|
1211
|
+
*/
|
|
1212
|
+
declare type QselOption = {
|
|
1213
|
+
height: number;
|
|
1214
|
+
level: number;
|
|
1215
|
+
text: string;
|
|
1216
|
+
/* Excluded from this release type: videoCodec */
|
|
1217
|
+
width: number;
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1199
1220
|
/**
|
|
1200
1221
|
* @public
|
|
1201
1222
|
* emitted whenever a list of qualities has been made available
|
|
@@ -1214,27 +1235,11 @@ QUALITIES = "qualities";
|
|
|
1214
1235
|
/**
|
|
1215
1236
|
* @public
|
|
1216
1237
|
*/
|
|
1217
|
-
declare type QualitiesEventDetail =
|
|
1238
|
+
declare type QualitiesEventDetail = QselOption[];
|
|
1218
1239
|
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
*/
|
|
1222
|
-
declare type QualityDetail = {
|
|
1223
|
-
level: number;
|
|
1224
|
-
text: string;
|
|
1225
|
-
width: number;
|
|
1226
|
-
height: number;
|
|
1227
|
-
videoCodec: string;
|
|
1228
|
-
} | BitrateInfo | {
|
|
1229
|
-
text: string | number;
|
|
1230
|
-
encodingId: string;
|
|
1231
|
-
spatialLayerId: number;
|
|
1232
|
-
temporalLayerId: number;
|
|
1233
|
-
maxSpatialLayerId: number;
|
|
1234
|
-
maxTemporalLayerId: number;
|
|
1235
|
-
height: number;
|
|
1236
|
-
width: number;
|
|
1237
|
-
};
|
|
1240
|
+
/* Excluded from this release type: _QualitiesEventDetail */
|
|
1241
|
+
|
|
1242
|
+
/* Excluded from this release type: _QualityDetail */
|
|
1238
1243
|
|
|
1239
1244
|
declare enum QualityOpts {
|
|
1240
1245
|
LOW = 1,
|
|
@@ -1406,20 +1411,14 @@ SEEKING_2 = "seeking";
|
|
|
1406
1411
|
|
|
1407
1412
|
/**
|
|
1408
1413
|
* @public
|
|
1409
|
-
*
|
|
1410
|
-
* it should emit the index of the quality to set
|
|
1411
|
-
* -1 is a special idx saying to use ABR if the plugin
|
|
1412
|
-
* exposes an ABR implementation
|
|
1414
|
+
* @deprecated please use Qsel.events.SET_QUALITY
|
|
1413
1415
|
*/
|
|
1414
1416
|
declare const /**
|
|
1415
1417
|
@public
|
|
1416
1418
|
* when a new player is inserted into the HTML
|
|
1417
1419
|
*/ /**
|
|
1418
1420
|
* @public
|
|
1419
|
-
*
|
|
1420
|
-
* it should emit the index of the quality to set
|
|
1421
|
-
* -1 is a special idx saying to use ABR if the plugin
|
|
1422
|
-
* exposes an ABR implementation
|
|
1421
|
+
* @deprecated please use Qsel.events.SET_QUALITY
|
|
1423
1422
|
*/
|
|
1424
1423
|
SET_QUALITY = "quality:set";
|
|
1425
1424
|
|
|
@@ -1613,16 +1612,6 @@ declare const /**
|
|
|
1613
1612
|
*/
|
|
1614
1613
|
VIDEO_TRACKS = "videoTracks";
|
|
1615
1614
|
|
|
1616
|
-
/**
|
|
1617
|
-
* @public
|
|
1618
|
-
*/
|
|
1619
|
-
declare interface VideoTrack {
|
|
1620
|
-
name: string;
|
|
1621
|
-
/* Excluded from this release type: data */
|
|
1622
|
-
default: boolean;
|
|
1623
|
-
selected: boolean;
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
1615
|
/**
|
|
1627
1616
|
* @public
|
|
1628
1617
|
* when a player enters the viewpoint
|
package/plugins/comscore.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 =
|
|
1186
|
+
declare type QualitiesEventDetail = QselOption[];
|
|
1166
1187
|
|
|
1167
|
-
|
|
1168
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|