@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
|
@@ -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
|
|
|
@@ -594,8 +596,6 @@ declare const /**
|
|
|
594
596
|
*/
|
|
595
597
|
LANDSCAPE = "landscape";
|
|
596
598
|
|
|
597
|
-
declare const LIVE = "is-live";
|
|
598
|
-
|
|
599
599
|
/**
|
|
600
600
|
* @public
|
|
601
601
|
* when src is a livestream
|
|
@@ -607,7 +607,9 @@ declare const /**
|
|
|
607
607
|
* @public
|
|
608
608
|
* when src is a livestream
|
|
609
609
|
*/
|
|
610
|
-
|
|
610
|
+
LIVE = "live";
|
|
611
|
+
|
|
612
|
+
declare const LIVE_2 = "is-live";
|
|
611
613
|
|
|
612
614
|
declare const LIVE_SEEKED = "is-live-seeked";
|
|
613
615
|
|
|
@@ -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/message.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
|
|
|
@@ -594,8 +596,6 @@ declare const /**
|
|
|
594
596
|
*/
|
|
595
597
|
LANDSCAPE = "landscape";
|
|
596
598
|
|
|
597
|
-
declare const LIVE = "is-live";
|
|
598
|
-
|
|
599
599
|
/**
|
|
600
600
|
* @public
|
|
601
601
|
* when src is a livestream
|
|
@@ -607,7 +607,9 @@ declare const /**
|
|
|
607
607
|
* @public
|
|
608
608
|
* when src is a livestream
|
|
609
609
|
*/
|
|
610
|
-
|
|
610
|
+
LIVE = "live";
|
|
611
|
+
|
|
612
|
+
declare const LIVE_2 = "is-live";
|
|
611
613
|
|
|
612
614
|
declare const LIVE_SEEKED = "is-live-seeked";
|
|
613
615
|
|
|
@@ -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/ovp.d.ts
CHANGED
|
@@ -361,6 +361,7 @@ declare namespace events {
|
|
|
361
361
|
declare namespace events_2 {
|
|
362
362
|
export {
|
|
363
363
|
MOUNT,
|
|
364
|
+
RETRY,
|
|
364
365
|
ERROR,
|
|
365
366
|
CONTEXT_MENU,
|
|
366
367
|
CLICK,
|
|
@@ -412,7 +413,8 @@ declare namespace events_2 {
|
|
|
412
413
|
LANDSCAPE,
|
|
413
414
|
PORTRAIT,
|
|
414
415
|
DVR,
|
|
415
|
-
|
|
416
|
+
LIVE,
|
|
417
|
+
RECOVER
|
|
416
418
|
}
|
|
417
419
|
}
|
|
418
420
|
|
|
@@ -611,8 +613,6 @@ declare const /**
|
|
|
611
613
|
*/
|
|
612
614
|
LANDSCAPE = "landscape";
|
|
613
615
|
|
|
614
|
-
declare const LIVE = "is-live";
|
|
615
|
-
|
|
616
616
|
/**
|
|
617
617
|
* @public
|
|
618
618
|
* when src is a livestream
|
|
@@ -624,7 +624,9 @@ declare const /**
|
|
|
624
624
|
* @public
|
|
625
625
|
* when src is a livestream
|
|
626
626
|
*/
|
|
627
|
-
|
|
627
|
+
LIVE = "live";
|
|
628
|
+
|
|
629
|
+
declare const LIVE_2 = "is-live";
|
|
628
630
|
|
|
629
631
|
declare const LIVE_SEEKED = "is-live-seeked";
|
|
630
632
|
|
|
@@ -947,33 +949,27 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
|
|
|
947
949
|
|
|
948
950
|
declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
|
|
949
951
|
|
|
950
|
-
declare type PlayerCustomEventsDetailMap = {
|
|
951
|
-
[
|
|
952
|
-
[
|
|
953
|
-
[CONTEXT_MENU]: ContextMenuEventDetail;
|
|
954
|
-
/* Excluded from this release type: beforeplay */
|
|
955
|
-
/* Excluded from this release type: beforepause */
|
|
956
|
-
/* Excluded from this release type: state */
|
|
952
|
+
declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
|
|
953
|
+
[REAP]: ReapEventDetail;
|
|
954
|
+
[SOURCE]: SourceEventDetail;
|
|
957
955
|
[CUEPOINT_START]: CuePointStartEventDetail;
|
|
958
956
|
[CUEPOINT_END]: CuePointEndEventDetail;
|
|
959
|
-
[
|
|
960
|
-
[
|
|
961
|
-
[
|
|
962
|
-
|
|
963
|
-
[
|
|
964
|
-
/* Excluded from this release type: config */
|
|
965
|
-
[QUALITIES]: QualitiesEventDetail;
|
|
966
|
-
/* Excluded from this release type: "error:fatal" */
|
|
967
|
-
[RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
|
|
957
|
+
[MOUNT]: MountEventDetail;
|
|
958
|
+
[LIVE]: LiveEventDetail;
|
|
959
|
+
[DVR]: DvrEventDetail;
|
|
960
|
+
[RETRY]: RetryEventDetail;
|
|
961
|
+
[RECOVER]: RecoverEventDetail;
|
|
968
962
|
/* Excluded from this release type: audioonlysource */
|
|
969
963
|
/* Excluded from this release type: renderplugin */
|
|
970
|
-
[DVR]: DvrEventDetail;
|
|
971
|
-
[LIVE_2]: LiveEventDetail;
|
|
972
964
|
/* Excluded from this release type: "seek:queued" */
|
|
973
965
|
/* Excluded from this release type: "seek:cancel" */
|
|
974
966
|
/* Excluded from this release type: "plugin:registered" */
|
|
975
967
|
/* Excluded from this release type: intersectionchange */
|
|
976
|
-
/* Excluded from this release type:
|
|
968
|
+
/* Excluded from this release type: beforeplay */
|
|
969
|
+
/* Excluded from this release type: beforepause */
|
|
970
|
+
/* Excluded from this release type: state */
|
|
971
|
+
/* Excluded from this release type: config */
|
|
972
|
+
/* Excluded from this release type: "error:fatal" */
|
|
977
973
|
};
|
|
978
974
|
|
|
979
975
|
declare type PlayerCustomEventsOverloads = {
|
|
@@ -1012,11 +1008,18 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1012
1008
|
* Sent right before the player src attribute is set. This allows you to change the video URL before playback.
|
|
1013
1009
|
*/
|
|
1014
1010
|
on(event: typeof SOURCE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof SOURCE]>) => void): Player;
|
|
1015
|
-
|
|
1011
|
+
/**
|
|
1012
|
+
* Emitted when an Error recovery is attempted
|
|
1013
|
+
*/
|
|
1014
|
+
on(event: typeof RECOVER, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RECOVER]>) => void): Player;
|
|
1016
1015
|
/**
|
|
1017
1016
|
* 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.
|
|
1018
1017
|
*/
|
|
1019
1018
|
on(event: typeof REAP, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof REAP]>) => void): Player;
|
|
1019
|
+
/**
|
|
1020
|
+
* Emitted when a player will retry to reload
|
|
1021
|
+
*/
|
|
1022
|
+
on(event: typeof RETRY, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RETRY]>) => void): Player;
|
|
1020
1023
|
/* Excluded from this release type: on */
|
|
1021
1024
|
/**
|
|
1022
1025
|
* Emitted when the set of underlying qualities has changed.
|
|
@@ -1036,8 +1039,7 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1036
1039
|
/**
|
|
1037
1040
|
* when src is a livestream
|
|
1038
1041
|
*/
|
|
1039
|
-
on(event: typeof
|
|
1040
|
-
/* Excluded from this release type: on */
|
|
1042
|
+
on(event: typeof LIVE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof LIVE]>) => void): Player;
|
|
1041
1043
|
/* Excluded from this release type: on */
|
|
1042
1044
|
/* Excluded from this release type: on */
|
|
1043
1045
|
/* Excluded from this release type: on */
|
|
@@ -1066,11 +1068,26 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1066
1068
|
*/
|
|
1067
1069
|
off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1068
1070
|
/* Excluded from this release type: poll */
|
|
1069
|
-
emit<T extends PlayerCustomEventName>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1070
1071
|
/* Excluded from this release type: emit */
|
|
1071
|
-
|
|
1072
|
+
/* Excluded from this release type: emit */
|
|
1073
|
+
emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1074
|
+
/* Excluded from this release type: emit */
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
declare type PlayerEmittableCustomEventsDetailMap = {
|
|
1078
|
+
[ERROR]: ErrorEventDetail;
|
|
1079
|
+
[CONTEXT_MENU]: ContextMenuEventDetail;
|
|
1080
|
+
[VIEW_ENTER]: ViewEnterEventDetail;
|
|
1081
|
+
[VIEW_LEAVE]: ViewLeaveEventDetail;
|
|
1082
|
+
[QUALITIES]: QualitiesEventDetail;
|
|
1083
|
+
[RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
|
|
1072
1084
|
};
|
|
1073
1085
|
|
|
1086
|
+
declare type PlayerEmittableEventNames = keyof PlayerEmittableCustomEventsDetailMap;
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* @public
|
|
1090
|
+
*/
|
|
1074
1091
|
declare type PlayerEventOverloads = PlayerNativeEventsOverloads & PlayerCustomEventsOverloads;
|
|
1075
1092
|
|
|
1076
1093
|
declare type PlayerNativeEventName = keyof PlayerNativeEventsDetailMap;
|
|
@@ -1286,9 +1303,23 @@ declare type RecommendationsReadyEventDetail = {
|
|
|
1286
1303
|
playlist: RecommendationItem[];
|
|
1287
1304
|
};
|
|
1288
1305
|
|
|
1289
|
-
|
|
1306
|
+
/**
|
|
1307
|
+
* @public
|
|
1308
|
+
* emitted when an Error recovery is attempted
|
|
1309
|
+
*/
|
|
1310
|
+
declare const /**
|
|
1311
|
+
@public
|
|
1312
|
+
* when a new player is inserted into the HTML
|
|
1313
|
+
*/ /**
|
|
1314
|
+
* @public
|
|
1315
|
+
* emitted when an Error recovery is attempted
|
|
1316
|
+
*/
|
|
1317
|
+
RECOVER = "recover";
|
|
1290
1318
|
|
|
1291
|
-
|
|
1319
|
+
/**
|
|
1320
|
+
* @public
|
|
1321
|
+
*/
|
|
1322
|
+
declare type RecoverEventDetail = null;
|
|
1292
1323
|
|
|
1293
1324
|
/* Excluded from this release type: REMOTE_SESSION_ENDED */
|
|
1294
1325
|
|
|
@@ -1312,9 +1343,21 @@ declare const /**
|
|
|
1312
1343
|
*/
|
|
1313
1344
|
RESIZE = "resize";
|
|
1314
1345
|
|
|
1315
|
-
|
|
1346
|
+
/**
|
|
1347
|
+
* @public
|
|
1348
|
+
*/
|
|
1349
|
+
declare const /**
|
|
1350
|
+
@public
|
|
1351
|
+
* when a new player is inserted into the HTML
|
|
1352
|
+
*/ /**
|
|
1353
|
+
* @public
|
|
1354
|
+
*/
|
|
1355
|
+
RETRY = "retry";
|
|
1316
1356
|
|
|
1317
|
-
|
|
1357
|
+
/**
|
|
1358
|
+
* @public
|
|
1359
|
+
*/
|
|
1360
|
+
declare type RetryEventDetail = null;
|
|
1318
1361
|
|
|
1319
1362
|
declare const RTL = "is-rtl";
|
|
1320
1363
|
|
|
@@ -1449,7 +1492,7 @@ declare namespace states {
|
|
|
1449
1492
|
RTL,
|
|
1450
1493
|
TV,
|
|
1451
1494
|
ENDED,
|
|
1452
|
-
LIVE,
|
|
1495
|
+
LIVE_2 as LIVE,
|
|
1453
1496
|
ERRORED,
|
|
1454
1497
|
WAITING,
|
|
1455
1498
|
AUTOPLAY,
|