@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/id3.d.ts
CHANGED
|
@@ -401,6 +401,12 @@ declare namespace events {
|
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
+
declare namespace events_2 {
|
|
405
|
+
export {
|
|
406
|
+
ID3_2 as ID3
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
404
410
|
declare type ExtractPureAPI<T> = T extends PlayerWith<infer PureAPI> ? PureAPI : never;
|
|
405
411
|
|
|
406
412
|
/**
|
|
@@ -550,10 +556,70 @@ declare const HOVERED = "is-hovered";
|
|
|
550
556
|
|
|
551
557
|
/**
|
|
552
558
|
* @public
|
|
559
|
+
* This plugin adds support for ID3 metadata tags.
|
|
560
|
+
* See {@link https://developer.wowza.com/docs/wowza-flowplayer/plugins/id3-metadata/ | Official documentation}
|
|
553
561
|
*/
|
|
554
|
-
declare const ID3: PluginCtor<Config,
|
|
562
|
+
declare const ID3: PluginCtor<Config, ID3Player> & ID3API;
|
|
555
563
|
export default ID3;
|
|
556
564
|
|
|
565
|
+
declare const ID3_2 = "ID3";
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* @public
|
|
569
|
+
*/
|
|
570
|
+
export declare type ID3API = {
|
|
571
|
+
events: ID3Events;
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* @public
|
|
576
|
+
*/
|
|
577
|
+
export declare type ID3Cue = TextTrackCue & {
|
|
578
|
+
/**
|
|
579
|
+
* ID3 Metadata
|
|
580
|
+
*/
|
|
581
|
+
value: ID3Info;
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* @public
|
|
586
|
+
**/
|
|
587
|
+
export declare type ID3EventDetail = {
|
|
588
|
+
/**
|
|
589
|
+
* ID3 cue
|
|
590
|
+
**/
|
|
591
|
+
cue: ID3Cue;
|
|
592
|
+
};
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* @public
|
|
596
|
+
*/
|
|
597
|
+
export declare type ID3Events = typeof events_2;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* @public
|
|
601
|
+
*/
|
|
602
|
+
export declare type ID3Info = {
|
|
603
|
+
info: string;
|
|
604
|
+
key: string;
|
|
605
|
+
/**
|
|
606
|
+
* Raw ID3 data
|
|
607
|
+
*/
|
|
608
|
+
data: ArrayBuffer;
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* @public
|
|
613
|
+
*/
|
|
614
|
+
export declare type ID3Player = PlayerWith<{
|
|
615
|
+
/**
|
|
616
|
+
* Event that is fired every time new ID3 metadata is available
|
|
617
|
+
* @param event - "ID3"
|
|
618
|
+
* @param handler - Event with ID3 metadata
|
|
619
|
+
*/
|
|
620
|
+
on(event: ID3Events["ID3"], handler: (e: FPEvent<ID3EventDetail>) => void): Player;
|
|
621
|
+
}>;
|
|
622
|
+
|
|
557
623
|
declare const IN_VIEWPORT = "is-in-viewport";
|
|
558
624
|
|
|
559
625
|
/* Excluded from this release type: INTERSECTIONCHANGE */
|
|
@@ -768,6 +834,8 @@ declare const NO_CONTROLS = "no-controls";
|
|
|
768
834
|
|
|
769
835
|
declare const NO_DVR = "no-timeline";
|
|
770
836
|
|
|
837
|
+
declare type NoInfer_2<T> = [T][T extends any ? 0 : never];
|
|
838
|
+
|
|
771
839
|
/* Excluded from this release type: NON_RECOVERABLE_ERROR */
|
|
772
840
|
|
|
773
841
|
/* Excluded from this release type: NonRecoverableErrorEventDetail */
|
|
@@ -908,7 +976,6 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
|
|
|
908
976
|
disabled: boolean;
|
|
909
977
|
/* Excluded from this release type: started */
|
|
910
978
|
/* Excluded from this release type: token */
|
|
911
|
-
tracks?: VideoTrack[];
|
|
912
979
|
/* Excluded from this release type: _customElements */
|
|
913
980
|
/* Excluded from this release type: _storage */
|
|
914
981
|
};
|
|
@@ -992,6 +1059,7 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
992
1059
|
*/
|
|
993
1060
|
on(event: typeof QUALITIES, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITIES]>) => void): Player;
|
|
994
1061
|
/* Excluded from this release type: on */
|
|
1062
|
+
/* Excluded from this release type: on */
|
|
995
1063
|
/**
|
|
996
1064
|
* Listen to this event to create a recommendations grid using the data passed with the event.
|
|
997
1065
|
*/
|
|
@@ -1010,6 +1078,11 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1010
1078
|
/* Excluded from this release type: on */
|
|
1011
1079
|
/* Excluded from this release type: on */
|
|
1012
1080
|
/* Excluded from this release type: on */
|
|
1081
|
+
/* Excluded from this release type: on */
|
|
1082
|
+
/**
|
|
1083
|
+
* TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
|
|
1084
|
+
* https://wowzamedia.jira.com/browse/PLAY-653
|
|
1085
|
+
*/
|
|
1013
1086
|
on<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1014
1087
|
/* Excluded from this release type: on */
|
|
1015
1088
|
/**
|
|
@@ -1034,9 +1107,12 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1034
1107
|
*/
|
|
1035
1108
|
off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1036
1109
|
/* Excluded from this release type: poll */
|
|
1110
|
+
emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1111
|
+
emit(event: never, data?: never): Player;
|
|
1112
|
+
/* Excluded from this release type: emit */
|
|
1113
|
+
/* Excluded from this release type: emit */
|
|
1037
1114
|
/* Excluded from this release type: emit */
|
|
1038
1115
|
/* Excluded from this release type: emit */
|
|
1039
|
-
emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1040
1116
|
/* Excluded from this release type: emit */
|
|
1041
1117
|
};
|
|
1042
1118
|
|
|
@@ -1144,6 +1220,17 @@ declare const /**
|
|
|
1144
1220
|
*/
|
|
1145
1221
|
PROGRESS = "progress";
|
|
1146
1222
|
|
|
1223
|
+
/**
|
|
1224
|
+
* @public
|
|
1225
|
+
*/
|
|
1226
|
+
declare type QselOption = {
|
|
1227
|
+
height: number;
|
|
1228
|
+
level: number;
|
|
1229
|
+
text: string;
|
|
1230
|
+
/* Excluded from this release type: videoCodec */
|
|
1231
|
+
width: number;
|
|
1232
|
+
};
|
|
1233
|
+
|
|
1147
1234
|
/**
|
|
1148
1235
|
* @public
|
|
1149
1236
|
* emitted whenever a list of qualities has been made available
|
|
@@ -1162,27 +1249,11 @@ QUALITIES = "qualities";
|
|
|
1162
1249
|
/**
|
|
1163
1250
|
* @public
|
|
1164
1251
|
*/
|
|
1165
|
-
declare type QualitiesEventDetail =
|
|
1252
|
+
declare type QualitiesEventDetail = QselOption[];
|
|
1166
1253
|
|
|
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
|
-
};
|
|
1254
|
+
/* Excluded from this release type: _QualitiesEventDetail */
|
|
1255
|
+
|
|
1256
|
+
/* Excluded from this release type: _QualityDetail */
|
|
1186
1257
|
|
|
1187
1258
|
declare enum QualityOpts {
|
|
1188
1259
|
LOW = 1,
|
|
@@ -1354,20 +1425,14 @@ SEEKING_2 = "seeking";
|
|
|
1354
1425
|
|
|
1355
1426
|
/**
|
|
1356
1427
|
* @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
|
|
1428
|
+
* @deprecated please use Qsel.events.SET_QUALITY
|
|
1361
1429
|
*/
|
|
1362
1430
|
declare const /**
|
|
1363
1431
|
@public
|
|
1364
1432
|
* when a new player is inserted into the HTML
|
|
1365
1433
|
*/ /**
|
|
1366
1434
|
* @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
|
|
1435
|
+
* @deprecated please use Qsel.events.SET_QUALITY
|
|
1371
1436
|
*/
|
|
1372
1437
|
SET_QUALITY = "quality:set";
|
|
1373
1438
|
|
|
@@ -1556,16 +1621,6 @@ declare const /**
|
|
|
1556
1621
|
*/
|
|
1557
1622
|
VIDEO_TRACKS = "videoTracks";
|
|
1558
1623
|
|
|
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
1624
|
/**
|
|
1570
1625
|
* @public
|
|
1571
1626
|
* when a player enters the viewpoint
|
package/plugins/iframe.d.ts
CHANGED
|
@@ -769,6 +769,8 @@ declare const NO_CONTROLS = "no-controls";
|
|
|
769
769
|
|
|
770
770
|
declare const NO_DVR = "no-timeline";
|
|
771
771
|
|
|
772
|
+
declare type NoInfer_2<T> = [T][T extends any ? 0 : never];
|
|
773
|
+
|
|
772
774
|
/* Excluded from this release type: NON_RECOVERABLE_ERROR */
|
|
773
775
|
|
|
774
776
|
/* Excluded from this release type: NonRecoverableErrorEventDetail */
|
|
@@ -909,7 +911,6 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
|
|
|
909
911
|
disabled: boolean;
|
|
910
912
|
/* Excluded from this release type: started */
|
|
911
913
|
/* Excluded from this release type: token */
|
|
912
|
-
tracks?: VideoTrack[];
|
|
913
914
|
/* Excluded from this release type: _customElements */
|
|
914
915
|
/* Excluded from this release type: _storage */
|
|
915
916
|
};
|
|
@@ -993,6 +994,7 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
993
994
|
*/
|
|
994
995
|
on(event: typeof QUALITIES, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof QUALITIES]>) => void): Player;
|
|
995
996
|
/* Excluded from this release type: on */
|
|
997
|
+
/* Excluded from this release type: on */
|
|
996
998
|
/**
|
|
997
999
|
* Listen to this event to create a recommendations grid using the data passed with the event.
|
|
998
1000
|
*/
|
|
@@ -1011,6 +1013,11 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1011
1013
|
/* Excluded from this release type: on */
|
|
1012
1014
|
/* Excluded from this release type: on */
|
|
1013
1015
|
/* Excluded from this release type: on */
|
|
1016
|
+
/* Excluded from this release type: on */
|
|
1017
|
+
/**
|
|
1018
|
+
* TODO: this is a workaround, since not all event overloads are typed. when all plugin work is finished, remove this
|
|
1019
|
+
* https://wowzamedia.jira.com/browse/PLAY-653
|
|
1020
|
+
*/
|
|
1014
1021
|
on<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1015
1022
|
/* Excluded from this release type: on */
|
|
1016
1023
|
/**
|
|
@@ -1035,9 +1042,12 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1035
1042
|
*/
|
|
1036
1043
|
off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1037
1044
|
/* Excluded from this release type: poll */
|
|
1045
|
+
emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1046
|
+
emit(event: never, data?: never): Player;
|
|
1047
|
+
/* Excluded from this release type: emit */
|
|
1048
|
+
/* Excluded from this release type: emit */
|
|
1038
1049
|
/* Excluded from this release type: emit */
|
|
1039
1050
|
/* Excluded from this release type: emit */
|
|
1040
|
-
emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1041
1051
|
/* Excluded from this release type: emit */
|
|
1042
1052
|
};
|
|
1043
1053
|
|
|
@@ -1145,6 +1155,17 @@ declare const /**
|
|
|
1145
1155
|
*/
|
|
1146
1156
|
PROGRESS = "progress";
|
|
1147
1157
|
|
|
1158
|
+
/**
|
|
1159
|
+
* @public
|
|
1160
|
+
*/
|
|
1161
|
+
declare type QselOption = {
|
|
1162
|
+
height: number;
|
|
1163
|
+
level: number;
|
|
1164
|
+
text: string;
|
|
1165
|
+
/* Excluded from this release type: videoCodec */
|
|
1166
|
+
width: number;
|
|
1167
|
+
};
|
|
1168
|
+
|
|
1148
1169
|
/**
|
|
1149
1170
|
* @public
|
|
1150
1171
|
* emitted whenever a list of qualities has been made available
|
|
@@ -1163,27 +1184,11 @@ QUALITIES = "qualities";
|
|
|
1163
1184
|
/**
|
|
1164
1185
|
* @public
|
|
1165
1186
|
*/
|
|
1166
|
-
declare type QualitiesEventDetail =
|
|
1187
|
+
declare type QualitiesEventDetail = QselOption[];
|
|
1167
1188
|
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
*/
|
|
1171
|
-
declare type QualityDetail = {
|
|
1172
|
-
level: number;
|
|
1173
|
-
text: string;
|
|
1174
|
-
width: number;
|
|
1175
|
-
height: number;
|
|
1176
|
-
videoCodec: string;
|
|
1177
|
-
} | BitrateInfo | {
|
|
1178
|
-
text: string | number;
|
|
1179
|
-
encodingId: string;
|
|
1180
|
-
spatialLayerId: number;
|
|
1181
|
-
temporalLayerId: number;
|
|
1182
|
-
maxSpatialLayerId: number;
|
|
1183
|
-
maxTemporalLayerId: number;
|
|
1184
|
-
height: number;
|
|
1185
|
-
width: number;
|
|
1186
|
-
};
|
|
1189
|
+
/* Excluded from this release type: _QualitiesEventDetail */
|
|
1190
|
+
|
|
1191
|
+
/* Excluded from this release type: _QualityDetail */
|
|
1187
1192
|
|
|
1188
1193
|
declare enum QualityOpts {
|
|
1189
1194
|
LOW = 1,
|
|
@@ -1355,20 +1360,14 @@ SEEKING_2 = "seeking";
|
|
|
1355
1360
|
|
|
1356
1361
|
/**
|
|
1357
1362
|
* @public
|
|
1358
|
-
*
|
|
1359
|
-
* it should emit the index of the quality to set
|
|
1360
|
-
* -1 is a special idx saying to use ABR if the plugin
|
|
1361
|
-
* exposes an ABR implementation
|
|
1363
|
+
* @deprecated please use Qsel.events.SET_QUALITY
|
|
1362
1364
|
*/
|
|
1363
1365
|
declare const /**
|
|
1364
1366
|
@public
|
|
1365
1367
|
* when a new player is inserted into the HTML
|
|
1366
1368
|
*/ /**
|
|
1367
1369
|
* @public
|
|
1368
|
-
*
|
|
1369
|
-
* it should emit the index of the quality to set
|
|
1370
|
-
* -1 is a special idx saying to use ABR if the plugin
|
|
1371
|
-
* exposes an ABR implementation
|
|
1370
|
+
* @deprecated please use Qsel.events.SET_QUALITY
|
|
1372
1371
|
*/
|
|
1373
1372
|
SET_QUALITY = "quality:set";
|
|
1374
1373
|
|
|
@@ -1557,16 +1556,6 @@ declare const /**
|
|
|
1557
1556
|
*/
|
|
1558
1557
|
VIDEO_TRACKS = "videoTracks";
|
|
1559
1558
|
|
|
1560
|
-
/**
|
|
1561
|
-
* @public
|
|
1562
|
-
*/
|
|
1563
|
-
declare interface VideoTrack {
|
|
1564
|
-
name: string;
|
|
1565
|
-
/* Excluded from this release type: data */
|
|
1566
|
-
default: boolean;
|
|
1567
|
-
selected: boolean;
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
1559
|
/**
|
|
1571
1560
|
* @public
|
|
1572
1561
|
* when a player enters the viewpoint
|
package/plugins/keyboard.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
|
|
@@ -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
|