@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/util/loader.d.ts
CHANGED
|
@@ -352,6 +352,7 @@ declare type ErrorEventDetail = {
|
|
|
352
352
|
declare namespace events {
|
|
353
353
|
export {
|
|
354
354
|
MOUNT,
|
|
355
|
+
RETRY,
|
|
355
356
|
ERROR,
|
|
356
357
|
CONTEXT_MENU,
|
|
357
358
|
CLICK,
|
|
@@ -403,7 +404,8 @@ declare namespace events {
|
|
|
403
404
|
LANDSCAPE,
|
|
404
405
|
PORTRAIT,
|
|
405
406
|
DVR,
|
|
406
|
-
|
|
407
|
+
LIVE,
|
|
408
|
+
RECOVER
|
|
407
409
|
}
|
|
408
410
|
}
|
|
409
411
|
|
|
@@ -607,8 +609,6 @@ declare const /**
|
|
|
607
609
|
*/
|
|
608
610
|
LANDSCAPE = "landscape";
|
|
609
611
|
|
|
610
|
-
declare const LIVE = "is-live";
|
|
611
|
-
|
|
612
612
|
/**
|
|
613
613
|
* @public
|
|
614
614
|
* when src is a livestream
|
|
@@ -620,7 +620,9 @@ declare const /**
|
|
|
620
620
|
* @public
|
|
621
621
|
* when src is a livestream
|
|
622
622
|
*/
|
|
623
|
-
|
|
623
|
+
LIVE = "live";
|
|
624
|
+
|
|
625
|
+
declare const LIVE_2 = "is-live";
|
|
624
626
|
|
|
625
627
|
declare const LIVE_SEEKED = "is-live-seeked";
|
|
626
628
|
|
|
@@ -927,33 +929,27 @@ declare type Player = HTMLVideoElement & PlayerEventOverloads & {
|
|
|
927
929
|
|
|
928
930
|
declare type PlayerCustomEventName = keyof PlayerCustomEventsDetailMap;
|
|
929
931
|
|
|
930
|
-
declare type PlayerCustomEventsDetailMap = {
|
|
931
|
-
[
|
|
932
|
-
[
|
|
933
|
-
[CONTEXT_MENU]: ContextMenuEventDetail;
|
|
934
|
-
/* Excluded from this release type: beforeplay */
|
|
935
|
-
/* Excluded from this release type: beforepause */
|
|
936
|
-
/* Excluded from this release type: state */
|
|
932
|
+
declare type PlayerCustomEventsDetailMap = PlayerEmittableCustomEventsDetailMap & {
|
|
933
|
+
[REAP]: ReapEventDetail;
|
|
934
|
+
[SOURCE]: SourceEventDetail;
|
|
937
935
|
[CUEPOINT_START]: CuePointStartEventDetail;
|
|
938
936
|
[CUEPOINT_END]: CuePointEndEventDetail;
|
|
939
|
-
[
|
|
940
|
-
[
|
|
941
|
-
[
|
|
942
|
-
|
|
943
|
-
[
|
|
944
|
-
/* Excluded from this release type: config */
|
|
945
|
-
[QUALITIES]: QualitiesEventDetail;
|
|
946
|
-
/* Excluded from this release type: "error:fatal" */
|
|
947
|
-
[RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
|
|
937
|
+
[MOUNT]: MountEventDetail;
|
|
938
|
+
[LIVE]: LiveEventDetail;
|
|
939
|
+
[DVR]: DvrEventDetail;
|
|
940
|
+
[RETRY]: RetryEventDetail;
|
|
941
|
+
[RECOVER]: RecoverEventDetail;
|
|
948
942
|
/* Excluded from this release type: audioonlysource */
|
|
949
943
|
/* Excluded from this release type: renderplugin */
|
|
950
|
-
[DVR]: DvrEventDetail;
|
|
951
|
-
[LIVE_2]: LiveEventDetail;
|
|
952
944
|
/* Excluded from this release type: "seek:queued" */
|
|
953
945
|
/* Excluded from this release type: "seek:cancel" */
|
|
954
946
|
/* Excluded from this release type: "plugin:registered" */
|
|
955
947
|
/* Excluded from this release type: intersectionchange */
|
|
956
|
-
/* Excluded from this release type:
|
|
948
|
+
/* Excluded from this release type: beforeplay */
|
|
949
|
+
/* Excluded from this release type: beforepause */
|
|
950
|
+
/* Excluded from this release type: state */
|
|
951
|
+
/* Excluded from this release type: config */
|
|
952
|
+
/* Excluded from this release type: "error:fatal" */
|
|
957
953
|
};
|
|
958
954
|
|
|
959
955
|
declare type PlayerCustomEventsOverloads = {
|
|
@@ -992,11 +988,18 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
992
988
|
* Sent right before the player src attribute is set. This allows you to change the video URL before playback.
|
|
993
989
|
*/
|
|
994
990
|
on(event: typeof SOURCE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof SOURCE]>) => void): Player;
|
|
995
|
-
|
|
991
|
+
/**
|
|
992
|
+
* Emitted when an Error recovery is attempted
|
|
993
|
+
*/
|
|
994
|
+
on(event: typeof RECOVER, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RECOVER]>) => void): Player;
|
|
996
995
|
/**
|
|
997
996
|
* 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.
|
|
998
997
|
*/
|
|
999
998
|
on(event: typeof REAP, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof REAP]>) => void): Player;
|
|
999
|
+
/**
|
|
1000
|
+
* Emitted when a player will retry to reload
|
|
1001
|
+
*/
|
|
1002
|
+
on(event: typeof RETRY, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof RETRY]>) => void): Player;
|
|
1000
1003
|
/* Excluded from this release type: on */
|
|
1001
1004
|
/**
|
|
1002
1005
|
* Emitted when the set of underlying qualities has changed.
|
|
@@ -1016,8 +1019,7 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1016
1019
|
/**
|
|
1017
1020
|
* when src is a livestream
|
|
1018
1021
|
*/
|
|
1019
|
-
on(event: typeof
|
|
1020
|
-
/* Excluded from this release type: on */
|
|
1022
|
+
on(event: typeof LIVE, handler: (e: FPEvent<PlayerCustomEventsDetailMap[typeof LIVE]>) => void): Player;
|
|
1021
1023
|
/* Excluded from this release type: on */
|
|
1022
1024
|
/* Excluded from this release type: on */
|
|
1023
1025
|
/* Excluded from this release type: on */
|
|
@@ -1046,11 +1048,26 @@ declare type PlayerCustomEventsOverloads = {
|
|
|
1046
1048
|
*/
|
|
1047
1049
|
off<T>(event: string, handler: (e: FPEvent<T>) => void): Player;
|
|
1048
1050
|
/* Excluded from this release type: poll */
|
|
1049
|
-
emit<T extends PlayerCustomEventName>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1050
1051
|
/* Excluded from this release type: emit */
|
|
1051
|
-
|
|
1052
|
+
/* Excluded from this release type: emit */
|
|
1053
|
+
emit<T extends PlayerEmittableEventNames>(event: T, data?: PlayerCustomEventsDetailMap[T]): Player;
|
|
1054
|
+
/* Excluded from this release type: emit */
|
|
1055
|
+
};
|
|
1056
|
+
|
|
1057
|
+
declare type PlayerEmittableCustomEventsDetailMap = {
|
|
1058
|
+
[ERROR]: ErrorEventDetail;
|
|
1059
|
+
[CONTEXT_MENU]: ContextMenuEventDetail;
|
|
1060
|
+
[VIEW_ENTER]: ViewEnterEventDetail;
|
|
1061
|
+
[VIEW_LEAVE]: ViewLeaveEventDetail;
|
|
1062
|
+
[QUALITIES]: QualitiesEventDetail;
|
|
1063
|
+
[RECOMMENDATIONS_READY]: RecommendationsReadyEventDetail;
|
|
1052
1064
|
};
|
|
1053
1065
|
|
|
1066
|
+
declare type PlayerEmittableEventNames = keyof PlayerEmittableCustomEventsDetailMap;
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* @public
|
|
1070
|
+
*/
|
|
1054
1071
|
declare type PlayerEventOverloads = PlayerNativeEventsOverloads & PlayerCustomEventsOverloads;
|
|
1055
1072
|
|
|
1056
1073
|
declare type PlayerNativeEventName = keyof PlayerNativeEventsDetailMap;
|
|
@@ -1244,9 +1261,23 @@ declare type RecommendationsReadyEventDetail = {
|
|
|
1244
1261
|
playlist: RecommendationItem[];
|
|
1245
1262
|
};
|
|
1246
1263
|
|
|
1247
|
-
|
|
1264
|
+
/**
|
|
1265
|
+
* @public
|
|
1266
|
+
* emitted when an Error recovery is attempted
|
|
1267
|
+
*/
|
|
1268
|
+
declare const /**
|
|
1269
|
+
@public
|
|
1270
|
+
* when a new player is inserted into the HTML
|
|
1271
|
+
*/ /**
|
|
1272
|
+
* @public
|
|
1273
|
+
* emitted when an Error recovery is attempted
|
|
1274
|
+
*/
|
|
1275
|
+
RECOVER = "recover";
|
|
1248
1276
|
|
|
1249
|
-
|
|
1277
|
+
/**
|
|
1278
|
+
* @public
|
|
1279
|
+
*/
|
|
1280
|
+
declare type RecoverEventDetail = null;
|
|
1250
1281
|
|
|
1251
1282
|
/* Excluded from this release type: REMOTE_SESSION_ENDED */
|
|
1252
1283
|
|
|
@@ -1270,9 +1301,21 @@ declare const /**
|
|
|
1270
1301
|
*/
|
|
1271
1302
|
RESIZE = "resize";
|
|
1272
1303
|
|
|
1273
|
-
|
|
1304
|
+
/**
|
|
1305
|
+
* @public
|
|
1306
|
+
*/
|
|
1307
|
+
declare const /**
|
|
1308
|
+
@public
|
|
1309
|
+
* when a new player is inserted into the HTML
|
|
1310
|
+
*/ /**
|
|
1311
|
+
* @public
|
|
1312
|
+
*/
|
|
1313
|
+
RETRY = "retry";
|
|
1274
1314
|
|
|
1275
|
-
|
|
1315
|
+
/**
|
|
1316
|
+
* @public
|
|
1317
|
+
*/
|
|
1318
|
+
declare type RetryEventDetail = null;
|
|
1276
1319
|
|
|
1277
1320
|
/**
|
|
1278
1321
|
* @public
|
|
@@ -1412,7 +1455,7 @@ declare namespace states {
|
|
|
1412
1455
|
RTL,
|
|
1413
1456
|
TV,
|
|
1414
1457
|
ENDED,
|
|
1415
|
-
LIVE,
|
|
1458
|
+
LIVE_2 as LIVE,
|
|
1416
1459
|
ERRORED,
|
|
1417
1460
|
WAITING,
|
|
1418
1461
|
AUTOPLAY,
|