@flowplayer/player 3.15.1-rc → 3.16.0-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/events.d.ts +22 -2
- package/core/events.js +50 -50
- package/core.js +1 -1
- package/default.js +1 -1
- package/embed.js +2 -2
- package/flowplayer.css +1 -1
- package/index.d.ts +78 -35
- package/package.json +1 -1
- package/plugins/ads.d.ts +76 -33
- package/plugins/ads.js +1 -1
- package/plugins/airplay.d.ts +76 -33
- package/plugins/analytics.d.ts +76 -33
- package/plugins/analytics.js +1 -1
- package/plugins/asel.d.ts +221 -36
- package/plugins/asel.js +1 -1
- package/plugins/audio.d.ts +76 -33
- package/plugins/chapters.d.ts +76 -33
- package/plugins/chromecast.d.ts +76 -33
- package/plugins/chromecast.js +1 -1
- package/plugins/comscore.d.ts +76 -33
- package/plugins/consent.d.ts +76 -33
- package/plugins/context-menu.d.ts +76 -33
- package/plugins/cuepoints.d.ts +76 -33
- package/plugins/dash.d.ts +76 -33
- package/plugins/dash.js +1 -1
- package/plugins/drm.d.ts +76 -33
- package/plugins/endscreen.d.ts +76 -33
- package/plugins/fas.d.ts +76 -33
- package/plugins/float-on-scroll.d.ts +76 -33
- package/plugins/ga4.d.ts +76 -33
- package/plugins/gemius.d.ts +76 -33
- package/plugins/google-analytics.d.ts +76 -33
- package/plugins/health.d.ts +76 -33
- package/plugins/health.js +1 -1
- package/plugins/hls.d.ts +76 -33
- package/plugins/hls.js +1 -1
- package/plugins/id3.d.ts +76 -33
- package/plugins/iframe.d.ts +76 -33
- package/plugins/keyboard.d.ts +76 -33
- package/plugins/media-session.d.ts +76 -33
- package/plugins/message.d.ts +76 -33
- package/plugins/ovp.d.ts +76 -33
- package/plugins/playlist.d.ts +107 -33
- package/plugins/playlist.js +1 -1
- package/plugins/preview.d.ts +76 -33
- package/plugins/qsel.d.ts +76 -33
- package/plugins/qul.d.ts +76 -33
- package/plugins/rts.d.ts +76 -33
- package/plugins/share.d.ts +76 -33
- package/plugins/speed.d.ts +76 -33
- package/plugins/ssai.d.ts +76 -33
- package/plugins/ssai.js +1 -1
- package/plugins/subtitles.d.ts +76 -33
- package/plugins/thumbnails.d.ts +76 -33
- package/plugins/tizen.d.ts +76 -33
- package/plugins/vtsel.d.ts +76 -33
- package/plugins/webos.d.ts +76 -33
- package/util/loader.d.ts +76 -33
package/plugins/id3.d.ts
CHANGED
|
@@ -344,6 +344,7 @@ declare type ErrorEventDetail = {
|
|
|
344
344
|
declare namespace events {
|
|
345
345
|
export {
|
|
346
346
|
MOUNT,
|
|
347
|
+
RETRY,
|
|
347
348
|
ERROR,
|
|
348
349
|
CONTEXT_MENU,
|
|
349
350
|
CLICK,
|
|
@@ -395,7 +396,8 @@ declare namespace events {
|
|
|
395
396
|
LANDSCAPE,
|
|
396
397
|
PORTRAIT,
|
|
397
398
|
DVR,
|
|
398
|
-
|
|
399
|
+
LIVE,
|
|
400
|
+
RECOVER
|
|
399
401
|
}
|
|
400
402
|
}
|
|
401
403
|
|
|
@@ -600,8 +602,6 @@ declare const /**
|
|
|
600
602
|
*/
|
|
601
603
|
LANDSCAPE = "landscape";
|
|
602
604
|
|
|
603
|
-
declare const LIVE = "is-live";
|
|
604
|
-
|
|
605
605
|
/**
|
|
606
606
|
* @public
|
|
607
607
|
* when src is a livestream
|
|
@@ -613,7 +613,9 @@ declare const /**
|
|
|
613
613
|
* @public
|
|
614
614
|
* when src is a livestream
|
|
615
615
|
*/
|
|
616
|
-
|
|
616
|
+
LIVE = "live";
|
|
617
|
+
|
|
618
|
+
declare const LIVE_2 = "is-live";
|
|
617
619
|
|
|
618
620
|
declare const LIVE_SEEKED = "is-live-seeked";
|
|
619
621
|
|
|
@@ -913,33 +915,27 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
|
|
|
913
915
|
|
|
914
916
|
declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
|
|
915
917
|
|
|
916
|
-
declare type PlayerCustomEventsDetailMap = {
|
|
917
|
-
[
|
|
918
|
-
[
|
|
919
|
-
[CONTEXT_MENU]: ContextMenuEventDetail;
|
|
920
|
-
/* Excluded from this release type: beforeplay */
|
|
921
|
-
/* Excluded from this release type: beforepause */
|
|
922
|
-
/* Excluded from this release type: state */
|
|
918
|
+
declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
|
|
919
|
+
[REAP]: ReapEventDetail;
|
|
920
|
+
[SOURCE]: SourceEventDetail;
|
|
923
921
|
[CUEPOINT_START]: CuePointStartEventDetail;
|
|
924
922
|
[CUEPOINT_END]: CuePointEndEventDetail;
|
|
925
|
-
[
|
|
926
|
-
[
|
|
927
|
-
[
|
|
928
|
-
|
|
929
|
-
[
|
|
930
|
-
/* Excluded from this release type: config */
|
|
931
|
-
[QUALITIES]: QualitiesEventDetail;
|
|
932
|
-
/* Excluded from this release type: "error:fatal" */
|
|
933
|
-
[RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
|
|
923
|
+
[MOUNT]: MountEventDetail;
|
|
924
|
+
[LIVE]: LiveEventDetail;
|
|
925
|
+
[DVR]: DvrEventDetail;
|
|
926
|
+
[RETRY]: RetryEventDetail;
|
|
927
|
+
[RECOVER]: RecoverEventDetail;
|
|
934
928
|
/* Excluded from this release type: audioonlysource */
|
|
935
929
|
/* Excluded from this release type: renderplugin */
|
|
936
|
-
[DVR]: DvrEventDetail;
|
|
937
|
-
[LIVE_2]: LiveEventDetail;
|
|
938
930
|
/* Excluded from this release type: "seek:queued" */
|
|
939
931
|
/* Excluded from this release type: "seek:cancel" */
|
|
940
932
|
/* Excluded from this release type: "plugin:registered" */
|
|
941
933
|
/* Excluded from this release type: intersectionchange */
|
|
942
|
-
/* Excluded from this release type:
|
|
934
|
+
/* Excluded from this release type: beforeplay */
|
|
935
|
+
/* Excluded from this release type: beforepause */
|
|
936
|
+
/* Excluded from this release type: state */
|
|
937
|
+
/* Excluded from this release type: config */
|
|
938
|
+
/* Excluded from this release type: "error:fatal" */
|
|
943
939
|
};
|
|
944
940
|
|
|
945
941
|
declare type PlayerCustomEventsOverloads = {
|
|
@@ -978,11 +974,18 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
978
974
|
* Sent right before the player src attribute is set. This allows you to change the video URL before playback.
|
|
979
975
|
*/
|
|
980
976
|
on(event: typeof SOURCE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof SOURCE]>) => void): Player;
|
|
981
|
-
|
|
977
|
+
/**
|
|
978
|
+
* Emitted when an Error recovery is attempted
|
|
979
|
+
*/
|
|
980
|
+
on(event: typeof RECOVER, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RECOVER]>) => void): Player;
|
|
982
981
|
/**
|
|
983
982
|
* Sent when a flowplayer instance is about to be removed from the DOM, and any unsafe references are about to be reaped, which allows Single Page Applications to perform the necessary resource cleanups. This is important when working with front-end frameworks like React. This event should never be emitted directly, only listened to.
|
|
984
983
|
*/
|
|
985
984
|
on(event: typeof REAP, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof REAP]>) => void): Player;
|
|
985
|
+
/**
|
|
986
|
+
* Emitted when a player will retry to reload
|
|
987
|
+
*/
|
|
988
|
+
on(event: typeof RETRY, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RETRY]>) => void): Player;
|
|
986
989
|
/* Excluded from this release type: on */
|
|
987
990
|
/**
|
|
988
991
|
* Emitted when the set of underlying qualities has changed.
|
|
@@ -1002,8 +1005,7 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1002
1005
|
/**
|
|
1003
1006
|
* when src is a livestream
|
|
1004
1007
|
*/
|
|
1005
|
-
on(event: typeof
|
|
1006
|
-
/* Excluded from this release type: on */
|
|
1008
|
+
on(event: typeof LIVE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof LIVE]>) => void): Player;
|
|
1007
1009
|
/* Excluded from this release type: on */
|
|
1008
1010
|
/* Excluded from this release type: on */
|
|
1009
1011
|
/* Excluded from this release type: on */
|
|
@@ -1032,11 +1034,26 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1032
1034
|
*/
|
|
1033
1035
|
off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1034
1036
|
/* Excluded from this release type: poll */
|
|
1035
|
-
emit<T extends PlayerCustomEventName>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1036
1037
|
/* Excluded from this release type: emit */
|
|
1037
|
-
|
|
1038
|
+
/* Excluded from this release type: emit */
|
|
1039
|
+
emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1040
|
+
/* Excluded from this release type: emit */
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
declare type PlayerEmittableCustomEventsDetailMap = {
|
|
1044
|
+
[ERROR]: ErrorEventDetail;
|
|
1045
|
+
[CONTEXT_MENU]: ContextMenuEventDetail;
|
|
1046
|
+
[VIEW_ENTER]: ViewEnterEventDetail;
|
|
1047
|
+
[VIEW_LEAVE]: ViewLeaveEventDetail;
|
|
1048
|
+
[QUALITIES]: QualitiesEventDetail;
|
|
1049
|
+
[RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
|
|
1038
1050
|
};
|
|
1039
1051
|
|
|
1052
|
+
declare type PlayerEmittableEventNames = keyof PlayerEmittableCustomEventsDetailMap;
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* @public
|
|
1056
|
+
*/
|
|
1040
1057
|
declare type PlayerEventOverloads = PlayerNativeEventsOverloads & PlayerCustomEventsOverloads;
|
|
1041
1058
|
|
|
1042
1059
|
declare type PlayerNativeEventName = keyof PlayerNativeEventsDetailMap;
|
|
@@ -1230,9 +1247,23 @@ declare type RecommendationsReadyEventDetail = {
|
|
|
1230
1247
|
playlist: RecommendationItem[];
|
|
1231
1248
|
};
|
|
1232
1249
|
|
|
1233
|
-
|
|
1250
|
+
/**
|
|
1251
|
+
* @public
|
|
1252
|
+
* emitted when an Error recovery is attempted
|
|
1253
|
+
*/
|
|
1254
|
+
declare const /**
|
|
1255
|
+
@public
|
|
1256
|
+
* when a new player is inserted into the HTML
|
|
1257
|
+
*/ /**
|
|
1258
|
+
* @public
|
|
1259
|
+
* emitted when an Error recovery is attempted
|
|
1260
|
+
*/
|
|
1261
|
+
RECOVER = "recover";
|
|
1234
1262
|
|
|
1235
|
-
|
|
1263
|
+
/**
|
|
1264
|
+
* @public
|
|
1265
|
+
*/
|
|
1266
|
+
declare type RecoverEventDetail = null;
|
|
1236
1267
|
|
|
1237
1268
|
/* Excluded from this release type: REMOTE_SESSION_ENDED */
|
|
1238
1269
|
|
|
@@ -1256,9 +1287,21 @@ declare const /**
|
|
|
1256
1287
|
*/
|
|
1257
1288
|
RESIZE = "resize";
|
|
1258
1289
|
|
|
1259
|
-
|
|
1290
|
+
/**
|
|
1291
|
+
* @public
|
|
1292
|
+
*/
|
|
1293
|
+
declare const /**
|
|
1294
|
+
@public
|
|
1295
|
+
* when a new player is inserted into the HTML
|
|
1296
|
+
*/ /**
|
|
1297
|
+
* @public
|
|
1298
|
+
*/
|
|
1299
|
+
RETRY = "retry";
|
|
1260
1300
|
|
|
1261
|
-
|
|
1301
|
+
/**
|
|
1302
|
+
* @public
|
|
1303
|
+
*/
|
|
1304
|
+
declare type RetryEventDetail = null;
|
|
1262
1305
|
|
|
1263
1306
|
declare const RTL = "is-rtl";
|
|
1264
1307
|
|
|
@@ -1393,7 +1436,7 @@ declare namespace states {
|
|
|
1393
1436
|
RTL,
|
|
1394
1437
|
TV,
|
|
1395
1438
|
ENDED,
|
|
1396
|
-
LIVE,
|
|
1439
|
+
LIVE_2 as LIVE,
|
|
1397
1440
|
ERRORED,
|
|
1398
1441
|
WAITING,
|
|
1399
1442
|
AUTOPLAY,
|
package/plugins/iframe.d.ts
CHANGED
|
@@ -344,6 +344,7 @@ declare type ErrorEventDetail = {
|
|
|
344
344
|
declare namespace events {
|
|
345
345
|
export {
|
|
346
346
|
MOUNT,
|
|
347
|
+
RETRY,
|
|
347
348
|
ERROR,
|
|
348
349
|
CONTEXT_MENU,
|
|
349
350
|
CLICK,
|
|
@@ -395,7 +396,8 @@ declare namespace events {
|
|
|
395
396
|
LANDSCAPE,
|
|
396
397
|
PORTRAIT,
|
|
397
398
|
DVR,
|
|
398
|
-
|
|
399
|
+
LIVE,
|
|
400
|
+
RECOVER
|
|
399
401
|
}
|
|
400
402
|
}
|
|
401
403
|
|
|
@@ -601,8 +603,6 @@ declare const /**
|
|
|
601
603
|
*/
|
|
602
604
|
LANDSCAPE = "landscape";
|
|
603
605
|
|
|
604
|
-
declare const LIVE = "is-live";
|
|
605
|
-
|
|
606
606
|
/**
|
|
607
607
|
* @public
|
|
608
608
|
* when src is a livestream
|
|
@@ -614,7 +614,9 @@ declare const /**
|
|
|
614
614
|
* @public
|
|
615
615
|
* when src is a livestream
|
|
616
616
|
*/
|
|
617
|
-
|
|
617
|
+
LIVE = "live";
|
|
618
|
+
|
|
619
|
+
declare const LIVE_2 = "is-live";
|
|
618
620
|
|
|
619
621
|
declare const LIVE_SEEKED = "is-live-seeked";
|
|
620
622
|
|
|
@@ -914,33 +916,27 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
|
|
|
914
916
|
|
|
915
917
|
declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
|
|
916
918
|
|
|
917
|
-
declare type PlayerCustomEventsDetailMap = {
|
|
918
|
-
[
|
|
919
|
-
[
|
|
920
|
-
[CONTEXT_MENU]: ContextMenuEventDetail;
|
|
921
|
-
/* Excluded from this release type: beforeplay */
|
|
922
|
-
/* Excluded from this release type: beforepause */
|
|
923
|
-
/* Excluded from this release type: state */
|
|
919
|
+
declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
|
|
920
|
+
[REAP]: ReapEventDetail;
|
|
921
|
+
[SOURCE]: SourceEventDetail;
|
|
924
922
|
[CUEPOINT_START]: CuePointStartEventDetail;
|
|
925
923
|
[CUEPOINT_END]: CuePointEndEventDetail;
|
|
926
|
-
[
|
|
927
|
-
[
|
|
928
|
-
[
|
|
929
|
-
|
|
930
|
-
[
|
|
931
|
-
/* Excluded from this release type: config */
|
|
932
|
-
[QUALITIES]: QualitiesEventDetail;
|
|
933
|
-
/* Excluded from this release type: "error:fatal" */
|
|
934
|
-
[RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
|
|
924
|
+
[MOUNT]: MountEventDetail;
|
|
925
|
+
[LIVE]: LiveEventDetail;
|
|
926
|
+
[DVR]: DvrEventDetail;
|
|
927
|
+
[RETRY]: RetryEventDetail;
|
|
928
|
+
[RECOVER]: RecoverEventDetail;
|
|
935
929
|
/* Excluded from this release type: audioonlysource */
|
|
936
930
|
/* Excluded from this release type: renderplugin */
|
|
937
|
-
[DVR]: DvrEventDetail;
|
|
938
|
-
[LIVE_2]: LiveEventDetail;
|
|
939
931
|
/* Excluded from this release type: "seek:queued" */
|
|
940
932
|
/* Excluded from this release type: "seek:cancel" */
|
|
941
933
|
/* Excluded from this release type: "plugin:registered" */
|
|
942
934
|
/* Excluded from this release type: intersectionchange */
|
|
943
|
-
/* Excluded from this release type:
|
|
935
|
+
/* Excluded from this release type: beforeplay */
|
|
936
|
+
/* Excluded from this release type: beforepause */
|
|
937
|
+
/* Excluded from this release type: state */
|
|
938
|
+
/* Excluded from this release type: config */
|
|
939
|
+
/* Excluded from this release type: "error:fatal" */
|
|
944
940
|
};
|
|
945
941
|
|
|
946
942
|
declare type PlayerCustomEventsOverloads = {
|
|
@@ -979,11 +975,18 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
979
975
|
* Sent right before the player src attribute is set. This allows you to change the video URL before playback.
|
|
980
976
|
*/
|
|
981
977
|
on(event: typeof SOURCE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof SOURCE]>) => void): Player;
|
|
982
|
-
|
|
978
|
+
/**
|
|
979
|
+
* Emitted when an Error recovery is attempted
|
|
980
|
+
*/
|
|
981
|
+
on(event: typeof RECOVER, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RECOVER]>) => void): Player;
|
|
983
982
|
/**
|
|
984
983
|
* Sent when a flowplayer instance is about to be removed from the DOM, and any unsafe references are about to be reaped, which allows Single Page Applications to perform the necessary resource cleanups. This is important when working with front-end frameworks like React. This event should never be emitted directly, only listened to.
|
|
985
984
|
*/
|
|
986
985
|
on(event: typeof REAP, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof REAP]>) => void): Player;
|
|
986
|
+
/**
|
|
987
|
+
* Emitted when a player will retry to reload
|
|
988
|
+
*/
|
|
989
|
+
on(event: typeof RETRY, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RETRY]>) => void): Player;
|
|
987
990
|
/* Excluded from this release type: on */
|
|
988
991
|
/**
|
|
989
992
|
* Emitted when the set of underlying qualities has changed.
|
|
@@ -1003,8 +1006,7 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1003
1006
|
/**
|
|
1004
1007
|
* when src is a livestream
|
|
1005
1008
|
*/
|
|
1006
|
-
on(event: typeof
|
|
1007
|
-
/* Excluded from this release type: on */
|
|
1009
|
+
on(event: typeof LIVE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof LIVE]>) => void): Player;
|
|
1008
1010
|
/* Excluded from this release type: on */
|
|
1009
1011
|
/* Excluded from this release type: on */
|
|
1010
1012
|
/* Excluded from this release type: on */
|
|
@@ -1033,11 +1035,26 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1033
1035
|
*/
|
|
1034
1036
|
off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1035
1037
|
/* Excluded from this release type: poll */
|
|
1036
|
-
emit<T extends PlayerCustomEventName>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1037
1038
|
/* Excluded from this release type: emit */
|
|
1038
|
-
|
|
1039
|
+
/* Excluded from this release type: emit */
|
|
1040
|
+
emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1041
|
+
/* Excluded from this release type: emit */
|
|
1042
|
+
};
|
|
1043
|
+
|
|
1044
|
+
declare type PlayerEmittableCustomEventsDetailMap = {
|
|
1045
|
+
[ERROR]: ErrorEventDetail;
|
|
1046
|
+
[CONTEXT_MENU]: ContextMenuEventDetail;
|
|
1047
|
+
[VIEW_ENTER]: ViewEnterEventDetail;
|
|
1048
|
+
[VIEW_LEAVE]: ViewLeaveEventDetail;
|
|
1049
|
+
[QUALITIES]: QualitiesEventDetail;
|
|
1050
|
+
[RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
|
|
1039
1051
|
};
|
|
1040
1052
|
|
|
1053
|
+
declare type PlayerEmittableEventNames = keyof PlayerEmittableCustomEventsDetailMap;
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* @public
|
|
1057
|
+
*/
|
|
1041
1058
|
declare type PlayerEventOverloads = PlayerNativeEventsOverloads & PlayerCustomEventsOverloads;
|
|
1042
1059
|
|
|
1043
1060
|
declare type PlayerNativeEventName = keyof PlayerNativeEventsDetailMap;
|
|
@@ -1231,9 +1248,23 @@ declare type RecommendationsReadyEventDetail = {
|
|
|
1231
1248
|
playlist: RecommendationItem[];
|
|
1232
1249
|
};
|
|
1233
1250
|
|
|
1234
|
-
|
|
1251
|
+
/**
|
|
1252
|
+
* @public
|
|
1253
|
+
* emitted when an Error recovery is attempted
|
|
1254
|
+
*/
|
|
1255
|
+
declare const /**
|
|
1256
|
+
@public
|
|
1257
|
+
* when a new player is inserted into the HTML
|
|
1258
|
+
*/ /**
|
|
1259
|
+
* @public
|
|
1260
|
+
* emitted when an Error recovery is attempted
|
|
1261
|
+
*/
|
|
1262
|
+
RECOVER = "recover";
|
|
1235
1263
|
|
|
1236
|
-
|
|
1264
|
+
/**
|
|
1265
|
+
* @public
|
|
1266
|
+
*/
|
|
1267
|
+
declare type RecoverEventDetail = null;
|
|
1237
1268
|
|
|
1238
1269
|
/* Excluded from this release type: REMOTE_SESSION_ENDED */
|
|
1239
1270
|
|
|
@@ -1257,9 +1288,21 @@ declare const /**
|
|
|
1257
1288
|
*/
|
|
1258
1289
|
RESIZE = "resize";
|
|
1259
1290
|
|
|
1260
|
-
|
|
1291
|
+
/**
|
|
1292
|
+
* @public
|
|
1293
|
+
*/
|
|
1294
|
+
declare const /**
|
|
1295
|
+
@public
|
|
1296
|
+
* when a new player is inserted into the HTML
|
|
1297
|
+
*/ /**
|
|
1298
|
+
* @public
|
|
1299
|
+
*/
|
|
1300
|
+
RETRY = "retry";
|
|
1261
1301
|
|
|
1262
|
-
|
|
1302
|
+
/**
|
|
1303
|
+
* @public
|
|
1304
|
+
*/
|
|
1305
|
+
declare type RetryEventDetail = null;
|
|
1263
1306
|
|
|
1264
1307
|
declare const RTL = "is-rtl";
|
|
1265
1308
|
|
|
@@ -1394,7 +1437,7 @@ declare namespace states {
|
|
|
1394
1437
|
RTL,
|
|
1395
1438
|
TV,
|
|
1396
1439
|
ENDED,
|
|
1397
|
-
LIVE,
|
|
1440
|
+
LIVE_2 as LIVE,
|
|
1398
1441
|
ERRORED,
|
|
1399
1442
|
WAITING,
|
|
1400
1443
|
AUTOPLAY,
|
package/plugins/keyboard.d.ts
CHANGED
|
@@ -344,6 +344,7 @@ declare type ErrorEventDetail = {
|
|
|
344
344
|
declare namespace events {
|
|
345
345
|
export {
|
|
346
346
|
MOUNT,
|
|
347
|
+
RETRY,
|
|
347
348
|
ERROR,
|
|
348
349
|
CONTEXT_MENU,
|
|
349
350
|
CLICK,
|
|
@@ -395,7 +396,8 @@ declare namespace events {
|
|
|
395
396
|
LANDSCAPE,
|
|
396
397
|
PORTRAIT,
|
|
397
398
|
DVR,
|
|
398
|
-
|
|
399
|
+
LIVE,
|
|
400
|
+
RECOVER
|
|
399
401
|
}
|
|
400
402
|
}
|
|
401
403
|
|
|
@@ -600,8 +602,6 @@ declare const /**
|
|
|
600
602
|
*/
|
|
601
603
|
LANDSCAPE = "landscape";
|
|
602
604
|
|
|
603
|
-
declare const LIVE = "is-live";
|
|
604
|
-
|
|
605
605
|
/**
|
|
606
606
|
* @public
|
|
607
607
|
* when src is a livestream
|
|
@@ -613,7 +613,9 @@ declare const /**
|
|
|
613
613
|
* @public
|
|
614
614
|
* when src is a livestream
|
|
615
615
|
*/
|
|
616
|
-
|
|
616
|
+
LIVE = "live";
|
|
617
|
+
|
|
618
|
+
declare const LIVE_2 = "is-live";
|
|
617
619
|
|
|
618
620
|
declare const LIVE_SEEKED = "is-live-seeked";
|
|
619
621
|
|
|
@@ -913,33 +915,27 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
|
|
|
913
915
|
|
|
914
916
|
declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
|
|
915
917
|
|
|
916
|
-
declare type PlayerCustomEventsDetailMap = {
|
|
917
|
-
[
|
|
918
|
-
[
|
|
919
|
-
[CONTEXT_MENU]: ContextMenuEventDetail;
|
|
920
|
-
/* Excluded from this release type: beforeplay */
|
|
921
|
-
/* Excluded from this release type: beforepause */
|
|
922
|
-
/* Excluded from this release type: state */
|
|
918
|
+
declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
|
|
919
|
+
[REAP]: ReapEventDetail;
|
|
920
|
+
[SOURCE]: SourceEventDetail;
|
|
923
921
|
[CUEPOINT_START]: CuePointStartEventDetail;
|
|
924
922
|
[CUEPOINT_END]: CuePointEndEventDetail;
|
|
925
|
-
[
|
|
926
|
-
[
|
|
927
|
-
[
|
|
928
|
-
|
|
929
|
-
[
|
|
930
|
-
/* Excluded from this release type: config */
|
|
931
|
-
[QUALITIES]: QualitiesEventDetail;
|
|
932
|
-
/* Excluded from this release type: "error:fatal" */
|
|
933
|
-
[RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
|
|
923
|
+
[MOUNT]: MountEventDetail;
|
|
924
|
+
[LIVE]: LiveEventDetail;
|
|
925
|
+
[DVR]: DvrEventDetail;
|
|
926
|
+
[RETRY]: RetryEventDetail;
|
|
927
|
+
[RECOVER]: RecoverEventDetail;
|
|
934
928
|
/* Excluded from this release type: audioonlysource */
|
|
935
929
|
/* Excluded from this release type: renderplugin */
|
|
936
|
-
[DVR]: DvrEventDetail;
|
|
937
|
-
[LIVE_2]: LiveEventDetail;
|
|
938
930
|
/* Excluded from this release type: "seek:queued" */
|
|
939
931
|
/* Excluded from this release type: "seek:cancel" */
|
|
940
932
|
/* Excluded from this release type: "plugin:registered" */
|
|
941
933
|
/* Excluded from this release type: intersectionchange */
|
|
942
|
-
/* Excluded from this release type:
|
|
934
|
+
/* Excluded from this release type: beforeplay */
|
|
935
|
+
/* Excluded from this release type: beforepause */
|
|
936
|
+
/* Excluded from this release type: state */
|
|
937
|
+
/* Excluded from this release type: config */
|
|
938
|
+
/* Excluded from this release type: "error:fatal" */
|
|
943
939
|
};
|
|
944
940
|
|
|
945
941
|
declare type PlayerCustomEventsOverloads = {
|
|
@@ -978,11 +974,18 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
978
974
|
* Sent right before the player src attribute is set. This allows you to change the video URL before playback.
|
|
979
975
|
*/
|
|
980
976
|
on(event: typeof SOURCE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof SOURCE]>) => void): Player;
|
|
981
|
-
|
|
977
|
+
/**
|
|
978
|
+
* Emitted when an Error recovery is attempted
|
|
979
|
+
*/
|
|
980
|
+
on(event: typeof RECOVER, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RECOVER]>) => void): Player;
|
|
982
981
|
/**
|
|
983
982
|
* Sent when a flowplayer instance is about to be removed from the DOM, and any unsafe references are about to be reaped, which allows Single Page Applications to perform the necessary resource cleanups. This is important when working with front-end frameworks like React. This event should never be emitted directly, only listened to.
|
|
984
983
|
*/
|
|
985
984
|
on(event: typeof REAP, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof REAP]>) => void): Player;
|
|
985
|
+
/**
|
|
986
|
+
* Emitted when a player will retry to reload
|
|
987
|
+
*/
|
|
988
|
+
on(event: typeof RETRY, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RETRY]>) => void): Player;
|
|
986
989
|
/* Excluded from this release type: on */
|
|
987
990
|
/**
|
|
988
991
|
* Emitted when the set of underlying qualities has changed.
|
|
@@ -1002,8 +1005,7 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1002
1005
|
/**
|
|
1003
1006
|
* when src is a livestream
|
|
1004
1007
|
*/
|
|
1005
|
-
on(event: typeof
|
|
1006
|
-
/* Excluded from this release type: on */
|
|
1008
|
+
on(event: typeof LIVE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof LIVE]>) => void): Player;
|
|
1007
1009
|
/* Excluded from this release type: on */
|
|
1008
1010
|
/* Excluded from this release type: on */
|
|
1009
1011
|
/* Excluded from this release type: on */
|
|
@@ -1032,11 +1034,26 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1032
1034
|
*/
|
|
1033
1035
|
off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1034
1036
|
/* Excluded from this release type: poll */
|
|
1035
|
-
emit<T extends PlayerCustomEventName>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1036
1037
|
/* Excluded from this release type: emit */
|
|
1037
|
-
|
|
1038
|
+
/* Excluded from this release type: emit */
|
|
1039
|
+
emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1040
|
+
/* Excluded from this release type: emit */
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
declare type PlayerEmittableCustomEventsDetailMap = {
|
|
1044
|
+
[ERROR]: ErrorEventDetail;
|
|
1045
|
+
[CONTEXT_MENU]: ContextMenuEventDetail;
|
|
1046
|
+
[VIEW_ENTER]: ViewEnterEventDetail;
|
|
1047
|
+
[VIEW_LEAVE]: ViewLeaveEventDetail;
|
|
1048
|
+
[QUALITIES]: QualitiesEventDetail;
|
|
1049
|
+
[RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
|
|
1038
1050
|
};
|
|
1039
1051
|
|
|
1052
|
+
declare type PlayerEmittableEventNames = keyof PlayerEmittableCustomEventsDetailMap;
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* @public
|
|
1056
|
+
*/
|
|
1040
1057
|
declare type PlayerEventOverloads = PlayerNativeEventsOverloads & PlayerCustomEventsOverloads;
|
|
1041
1058
|
|
|
1042
1059
|
declare type PlayerNativeEventName = keyof PlayerNativeEventsDetailMap;
|
|
@@ -1230,9 +1247,23 @@ declare type RecommendationsReadyEventDetail = {
|
|
|
1230
1247
|
playlist: RecommendationItem[];
|
|
1231
1248
|
};
|
|
1232
1249
|
|
|
1233
|
-
|
|
1250
|
+
/**
|
|
1251
|
+
* @public
|
|
1252
|
+
* emitted when an Error recovery is attempted
|
|
1253
|
+
*/
|
|
1254
|
+
declare const /**
|
|
1255
|
+
@public
|
|
1256
|
+
* when a new player is inserted into the HTML
|
|
1257
|
+
*/ /**
|
|
1258
|
+
* @public
|
|
1259
|
+
* emitted when an Error recovery is attempted
|
|
1260
|
+
*/
|
|
1261
|
+
RECOVER = "recover";
|
|
1234
1262
|
|
|
1235
|
-
|
|
1263
|
+
/**
|
|
1264
|
+
* @public
|
|
1265
|
+
*/
|
|
1266
|
+
declare type RecoverEventDetail = null;
|
|
1236
1267
|
|
|
1237
1268
|
/* Excluded from this release type: REMOTE_SESSION_ENDED */
|
|
1238
1269
|
|
|
@@ -1256,9 +1287,21 @@ declare const /**
|
|
|
1256
1287
|
*/
|
|
1257
1288
|
RESIZE = "resize";
|
|
1258
1289
|
|
|
1259
|
-
|
|
1290
|
+
/**
|
|
1291
|
+
* @public
|
|
1292
|
+
*/
|
|
1293
|
+
declare const /**
|
|
1294
|
+
@public
|
|
1295
|
+
* when a new player is inserted into the HTML
|
|
1296
|
+
*/ /**
|
|
1297
|
+
* @public
|
|
1298
|
+
*/
|
|
1299
|
+
RETRY = "retry";
|
|
1260
1300
|
|
|
1261
|
-
|
|
1301
|
+
/**
|
|
1302
|
+
* @public
|
|
1303
|
+
*/
|
|
1304
|
+
declare type RetryEventDetail = null;
|
|
1262
1305
|
|
|
1263
1306
|
declare const RTL = "is-rtl";
|
|
1264
1307
|
|
|
@@ -1393,7 +1436,7 @@ declare namespace states {
|
|
|
1393
1436
|
RTL,
|
|
1394
1437
|
TV,
|
|
1395
1438
|
ENDED,
|
|
1396
|
-
LIVE,
|
|
1439
|
+
LIVE_2 as LIVE,
|
|
1397
1440
|
ERRORED,
|
|
1398
1441
|
WAITING,
|
|
1399
1442
|
AUTOPLAY,
|