@gcorevideo/player 2.22.20 → 2.22.22
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/assets/clappr-nerd-stats/clappr-nerd-stats.ejs +30 -30
- package/assets/clappr-nerd-stats/clappr-nerd-stats.scss +21 -14
- package/assets/level-selector/button.ejs +1 -1
- package/dist/core.js +1 -1
- package/dist/index.css +696 -688
- package/dist/index.js +271 -247
- package/dist/player.d.ts +57 -27
- package/dist/plugins/index.css +335 -327
- package/dist/plugins/index.js +109 -89
- package/docs/api/{player.bitratetrackrecord.md → player.clapprstatsbitratetrack.md} +3 -3
- package/docs/api/player.clapprstatsmetrics.md +2 -2
- package/docs/api/player.extendedevents.md +45 -0
- package/docs/api/player.gearevents.md +1 -1
- package/docs/api/player.md +22 -2
- package/docs/api/player.mediacontrol.mount.md +0 -5
- package/docs/api/player.mediacontrol.putelement.md +5 -0
- package/docs/api/player.mediacontrol.toggleelement.md +1 -1
- package/docs/api/player.volumefade._constructor_.md +50 -0
- package/docs/api/player.volumefade.md +40 -1
- package/docs/api/player.volumefadesettings.md +18 -0
- package/lib/plugins/clappr-nerd-stats/NerdStats.d.ts +1 -0
- package/lib/plugins/clappr-nerd-stats/NerdStats.d.ts.map +1 -1
- package/lib/plugins/clappr-nerd-stats/NerdStats.js +13 -3
- package/lib/plugins/clappr-nerd-stats/speedtest/Speedtest.d.ts.map +1 -1
- package/lib/plugins/clappr-nerd-stats/speedtest/Speedtest.js +1 -0
- package/lib/plugins/clappr-nerd-stats/speedtest/index.js +1 -1
- package/lib/plugins/clappr-nerd-stats/utils.d.ts.map +1 -1
- package/lib/plugins/clappr-nerd-stats/utils.js +17 -15
- package/lib/plugins/clappr-stats/ClapprStats.d.ts +1 -0
- package/lib/plugins/clappr-stats/ClapprStats.d.ts.map +1 -1
- package/lib/plugins/clappr-stats/ClapprStats.js +3 -0
- package/lib/plugins/click-to-pause/ClickToPause.js +6 -7
- package/lib/plugins/media-control/MediaControl.d.ts +3 -0
- package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
- package/lib/plugins/media-control/MediaControl.js +6 -1
- package/lib/plugins/volume-fade/VolumeFade.d.ts +28 -11
- package/lib/plugins/volume-fade/VolumeFade.d.ts.map +1 -1
- package/lib/plugins/volume-fade/VolumeFade.js +66 -61
- package/package.json +1 -1
- package/src/plugins/clappr-nerd-stats/NerdStats.ts +21 -8
- package/src/plugins/clappr-nerd-stats/speedtest/Speedtest.ts +1 -0
- package/src/plugins/clappr-nerd-stats/speedtest/index.ts +1 -1
- package/src/plugins/clappr-nerd-stats/utils.ts +23 -13
- package/src/plugins/clappr-stats/ClapprStats.ts +4 -0
- package/src/plugins/click-to-pause/ClickToPause.ts +6 -6
- package/src/plugins/level-selector/__tests__/__snapshots__/QualityLevels.test.ts.snap +1 -1
- package/src/plugins/media-control/MediaControl.ts +6 -1
- package/src/plugins/volume-fade/VolumeFade.ts +96 -76
- package/temp/player.api.json +132 -34
- package/tsconfig.tsbuildinfo +1 -1
package/dist/player.d.ts
CHANGED
|
@@ -101,7 +101,7 @@ declare class AudioTracks extends UICorePlugin {
|
|
|
101
101
|
private buttonElementText;
|
|
102
102
|
private trackElement;
|
|
103
103
|
private getTitle;
|
|
104
|
-
private
|
|
104
|
+
private startTrackSwitching;
|
|
105
105
|
private updateText;
|
|
106
106
|
private highlightCurrentTrack;
|
|
107
107
|
}
|
|
@@ -158,16 +158,6 @@ export declare class BigMuteButton extends UICorePlugin {
|
|
|
158
158
|
private handleBigMuteBtnClick;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
/**
|
|
162
|
-
* @beta
|
|
163
|
-
*/
|
|
164
|
-
export declare type BitrateTrackRecord = {
|
|
165
|
-
start: number;
|
|
166
|
-
end?: number;
|
|
167
|
-
time?: number;
|
|
168
|
-
bitrate: number;
|
|
169
|
-
};
|
|
170
|
-
|
|
171
161
|
/**
|
|
172
162
|
* `PLUGIN` that adds a button to extend the media controls UI with extra options.
|
|
173
163
|
* @beta
|
|
@@ -380,6 +370,16 @@ export declare class ClapprStats extends ContainerPlugin {
|
|
|
380
370
|
private html5FetchFPS;
|
|
381
371
|
}
|
|
382
372
|
|
|
373
|
+
/**
|
|
374
|
+
* @beta
|
|
375
|
+
*/
|
|
376
|
+
export declare type ClapprStatsBitrateTrack = {
|
|
377
|
+
start: number;
|
|
378
|
+
end?: number;
|
|
379
|
+
time?: number;
|
|
380
|
+
bitrate: number;
|
|
381
|
+
};
|
|
382
|
+
|
|
383
383
|
/**
|
|
384
384
|
* @beta
|
|
385
385
|
*/
|
|
@@ -463,7 +463,7 @@ export declare type ClapprStatsMetrics = {
|
|
|
463
463
|
extra: {
|
|
464
464
|
playbackName: string;
|
|
465
465
|
playbackType: string;
|
|
466
|
-
bitratesHistory:
|
|
466
|
+
bitratesHistory: ClapprStatsBitrateTrack[];
|
|
467
467
|
bitrateWeightedMean: number;
|
|
468
468
|
bitrateMostUsed: number;
|
|
469
469
|
buffersize: number;
|
|
@@ -830,13 +830,17 @@ export declare class DvrControls extends UICorePlugin {
|
|
|
830
830
|
*/
|
|
831
831
|
bindEvents(): void;
|
|
832
832
|
private onCoreReady;
|
|
833
|
-
private
|
|
833
|
+
private onActiveContainerChanged;
|
|
834
834
|
private click;
|
|
835
|
-
private shouldRender;
|
|
836
835
|
/**
|
|
837
836
|
* @internal
|
|
838
837
|
*/
|
|
839
838
|
render(): this;
|
|
839
|
+
private onMediacontrolRendered;
|
|
840
|
+
private onMetadataLoaded;
|
|
841
|
+
private mount;
|
|
842
|
+
private onDvrStateChanged;
|
|
843
|
+
private toggleState;
|
|
840
844
|
}
|
|
841
845
|
|
|
842
846
|
/**
|
|
@@ -927,6 +931,10 @@ export declare type ErrorScreenSettings = {
|
|
|
927
931
|
noReload?: boolean;
|
|
928
932
|
};
|
|
929
933
|
|
|
934
|
+
export declare enum ExtendedEvents {
|
|
935
|
+
MEDIACONTROL_VOLUME = "mediacontrol:volume"
|
|
936
|
+
}
|
|
937
|
+
|
|
930
938
|
/**
|
|
931
939
|
* `PLUGIN` that changes the favicon according to the player's state.
|
|
932
940
|
* @beta
|
|
@@ -988,7 +996,7 @@ export declare interface FaviconPluginSettings {
|
|
|
988
996
|
*/
|
|
989
997
|
export declare enum GearEvents {
|
|
990
998
|
/**
|
|
991
|
-
*
|
|
999
|
+
* Subscribe to this event to accurately attach an item to the gear menu
|
|
992
1000
|
*/
|
|
993
1001
|
RENDERED = "rendered"
|
|
994
1002
|
}
|
|
@@ -1276,7 +1284,6 @@ export declare class MediaControl extends UICorePlugin {
|
|
|
1276
1284
|
* Get a media control element DOM node
|
|
1277
1285
|
* @param name - The name of the media control element
|
|
1278
1286
|
* @returns The DOM node to render to or extend
|
|
1279
|
-
* @deprecated Use {@link MediaControl.putElement} instead
|
|
1280
1287
|
* @remarks
|
|
1281
1288
|
* Use this method to render custom media control UI in a plugin
|
|
1282
1289
|
* @example
|
|
@@ -1291,11 +1298,16 @@ export declare class MediaControl extends UICorePlugin {
|
|
|
1291
1298
|
* ```
|
|
1292
1299
|
*/
|
|
1293
1300
|
mount(name: MediaControlElement, element: ZeptoResult): void;
|
|
1301
|
+
/**
|
|
1302
|
+
* @deprecated Use {@link MediaControl.mount} instead
|
|
1303
|
+
* @param name
|
|
1304
|
+
* @param element
|
|
1305
|
+
*/
|
|
1294
1306
|
putElement(name: MediaControlElement, element: ZeptoResult): void;
|
|
1295
1307
|
/**
|
|
1296
1308
|
* Toggle the visibility of a media control element
|
|
1297
1309
|
* @param name - The name of the media control element
|
|
1298
|
-
* @param show -
|
|
1310
|
+
* @param show - Visibility state
|
|
1299
1311
|
*/
|
|
1300
1312
|
toggleElement(area: MediaControlElement, show: boolean): void;
|
|
1301
1313
|
private getRightPanel;
|
|
@@ -3043,30 +3055,34 @@ export declare function version(): {
|
|
|
3043
3055
|
};
|
|
3044
3056
|
|
|
3045
3057
|
/**
|
|
3046
|
-
* `PLUGIN` that
|
|
3058
|
+
* `PLUGIN` that mutes the sound and fades it in when the mouse is over the player.
|
|
3047
3059
|
* @beta
|
|
3060
|
+
*
|
|
3061
|
+
* @remarks
|
|
3062
|
+
* When the user moves the mouse over and away from the player, the sound is unmuted and unmuted with a fade effect.
|
|
3063
|
+
*
|
|
3064
|
+
* Depends on {@link MediaControl} plugin.
|
|
3065
|
+
* Configuration options - {@link VolumeFadeSettings}
|
|
3048
3066
|
*/
|
|
3049
3067
|
export declare class VolumeFade extends UICorePlugin {
|
|
3050
|
-
private
|
|
3051
|
-
private
|
|
3052
|
-
private
|
|
3053
|
-
private interval;
|
|
3068
|
+
private activeVolume;
|
|
3069
|
+
private duration;
|
|
3070
|
+
private timerId;
|
|
3054
3071
|
/**
|
|
3055
3072
|
* @internal
|
|
3056
3073
|
*/
|
|
3057
3074
|
get name(): string;
|
|
3075
|
+
constructor(core: Core);
|
|
3058
3076
|
/**
|
|
3059
3077
|
* @internal
|
|
3060
3078
|
*/
|
|
3061
3079
|
bindEvents(): void;
|
|
3062
|
-
private unBindEvents;
|
|
3063
|
-
private _onUserChangeVolume;
|
|
3064
|
-
private _onVolumeConfig;
|
|
3065
3080
|
private onCoreReady;
|
|
3081
|
+
private onVolumeChange;
|
|
3066
3082
|
private onEnter;
|
|
3067
|
-
private numberTo;
|
|
3068
|
-
private clearCurrentInterval;
|
|
3069
3083
|
private onLeave;
|
|
3084
|
+
private fade;
|
|
3085
|
+
private stopFade;
|
|
3070
3086
|
}
|
|
3071
3087
|
|
|
3072
3088
|
/**
|
|
@@ -3077,6 +3093,20 @@ export declare enum VolumeFadeEvents {
|
|
|
3077
3093
|
FADE = "core:volume:fade"
|
|
3078
3094
|
}
|
|
3079
3095
|
|
|
3096
|
+
/**
|
|
3097
|
+
* @beta
|
|
3098
|
+
*/
|
|
3099
|
+
export declare type VolumeFadeSettings = {
|
|
3100
|
+
/**
|
|
3101
|
+
* Initial active volume level, effective until volume is changed via media control
|
|
3102
|
+
*/
|
|
3103
|
+
level?: number;
|
|
3104
|
+
/**
|
|
3105
|
+
* Fade duration, ms
|
|
3106
|
+
*/
|
|
3107
|
+
duration?: number;
|
|
3108
|
+
};
|
|
3109
|
+
|
|
3080
3110
|
/**
|
|
3081
3111
|
* Telemetry watch event data
|
|
3082
3112
|
* @beta
|