@gcorevideo/player 2.22.21 → 2.22.23
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 +18 -14
- package/dist/core.js +1 -1
- package/dist/index.css +1433 -1425
- package/dist/index.js +4335 -4299
- package/dist/player.d.ts +32 -10
- package/dist/plugins/index.css +632 -624
- package/dist/plugins/index.js +5366 -5334
- package/docs/api/player.extendedevents.md +45 -0
- package/docs/api/player.md +21 -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/index.plugins.d.ts +2 -2
- package/lib/index.plugins.d.ts.map +1 -1
- package/lib/index.plugins.js +2 -2
- package/lib/plugins/audio-selector/AudioTracks.d.ts +67 -0
- package/lib/plugins/audio-selector/AudioTracks.d.ts.map +1 -0
- package/lib/plugins/audio-selector/AudioTracks.js +176 -0
- package/lib/plugins/bottom-gear/BottomGear.d.ts.map +1 -1
- package/lib/plugins/bottom-gear/BottomGear.js +6 -0
- package/lib/plugins/clappr-nerd-stats/NerdStats.d.ts +2 -1
- package/lib/plugins/clappr-nerd-stats/NerdStats.d.ts.map +1 -1
- package/lib/plugins/clappr-nerd-stats/NerdStats.js +19 -3
- 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 +14 -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 +2 -1
- package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
- package/lib/plugins/media-control/MediaControl.js +1 -0
- package/lib/plugins/skip-time/SkipTime.d.ts +2 -2
- package/lib/plugins/skip-time/SkipTime.d.ts.map +1 -1
- package/lib/plugins/skip-time/SkipTime.js +6 -5
- package/lib/plugins/subtitles/ClosedCaptions.d.ts.map +1 -1
- package/lib/plugins/subtitles/ClosedCaptions.js +10 -3
- package/lib/plugins/volume-fade/VolumeFade.d.ts +3 -1
- package/lib/plugins/volume-fade/VolumeFade.d.ts.map +1 -1
- package/lib/plugins/volume-fade/VolumeFade.js +6 -3
- package/package.json +1 -1
- package/src/index.plugins.ts +2 -2
- package/src/plugins/audio-selector/{AudioSelector.ts → AudioTracks.ts} +6 -3
- package/src/plugins/audio-selector/__tests__/{AudioSelector.test.ts → AudioTracks.test.ts} +24 -24
- package/src/plugins/audio-selector/__tests__/__snapshots__/AudioSelector.test.ts.snap +66 -0
- package/src/plugins/audio-selector/__tests__/__snapshots__/AudioTracks.test.ts.snap +67 -0
- package/src/plugins/bottom-gear/BottomGear.ts +10 -0
- package/src/plugins/clappr-nerd-stats/NerdStats.ts +26 -7
- package/src/plugins/clappr-nerd-stats/speedtest/index.ts +1 -1
- package/src/plugins/clappr-nerd-stats/utils.ts +20 -13
- package/src/plugins/clappr-stats/ClapprStats.ts +4 -0
- package/src/plugins/click-to-pause/ClickToPause.ts +6 -6
- package/src/plugins/media-control/MediaControl.ts +1 -0
- package/src/plugins/skip-time/SkipTime.ts +45 -38
- package/src/plugins/subtitles/ClosedCaptions.ts +17 -7
- package/src/plugins/volume-fade/VolumeFade.ts +6 -3
- package/temp/player.api.json +100 -2
- package/tsconfig.tsbuildinfo +1 -1
package/dist/player.d.ts
CHANGED
|
@@ -931,6 +931,10 @@ export declare type ErrorScreenSettings = {
|
|
|
931
931
|
noReload?: boolean;
|
|
932
932
|
};
|
|
933
933
|
|
|
934
|
+
export declare enum ExtendedEvents {
|
|
935
|
+
MEDIACONTROL_VOLUME = "mediacontrol:volume"
|
|
936
|
+
}
|
|
937
|
+
|
|
934
938
|
/**
|
|
935
939
|
* `PLUGIN` that changes the favicon according to the player's state.
|
|
936
940
|
* @beta
|
|
@@ -3051,30 +3055,34 @@ export declare function version(): {
|
|
|
3051
3055
|
};
|
|
3052
3056
|
|
|
3053
3057
|
/**
|
|
3054
|
-
* `PLUGIN` that
|
|
3058
|
+
* `PLUGIN` that mutes the sound and fades it in when the mouse is over the player.
|
|
3055
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}
|
|
3056
3066
|
*/
|
|
3057
3067
|
export declare class VolumeFade extends UICorePlugin {
|
|
3058
|
-
private
|
|
3059
|
-
private
|
|
3060
|
-
private
|
|
3061
|
-
private interval;
|
|
3068
|
+
private activeVolume;
|
|
3069
|
+
private duration;
|
|
3070
|
+
private timerId;
|
|
3062
3071
|
/**
|
|
3063
3072
|
* @internal
|
|
3064
3073
|
*/
|
|
3065
3074
|
get name(): string;
|
|
3075
|
+
constructor(core: Core);
|
|
3066
3076
|
/**
|
|
3067
3077
|
* @internal
|
|
3068
3078
|
*/
|
|
3069
3079
|
bindEvents(): void;
|
|
3070
|
-
private unBindEvents;
|
|
3071
|
-
private _onUserChangeVolume;
|
|
3072
|
-
private _onVolumeConfig;
|
|
3073
3080
|
private onCoreReady;
|
|
3081
|
+
private onVolumeChange;
|
|
3074
3082
|
private onEnter;
|
|
3075
|
-
private numberTo;
|
|
3076
|
-
private clearCurrentInterval;
|
|
3077
3083
|
private onLeave;
|
|
3084
|
+
private fade;
|
|
3085
|
+
private stopFade;
|
|
3078
3086
|
}
|
|
3079
3087
|
|
|
3080
3088
|
/**
|
|
@@ -3085,6 +3093,20 @@ export declare enum VolumeFadeEvents {
|
|
|
3085
3093
|
FADE = "core:volume:fade"
|
|
3086
3094
|
}
|
|
3087
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
|
+
|
|
3088
3110
|
/**
|
|
3089
3111
|
* Telemetry watch event data
|
|
3090
3112
|
* @beta
|