@gcorevideo/player 2.20.1 → 2.20.3
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/dist/core.js +1 -1
- package/dist/index.css +1328 -1328
- package/dist/index.js +305 -217
- package/dist/player.d.ts +270 -52
- package/dist/plugins/index.css +612 -612
- package/dist/plugins/index.js +1459 -1347
- package/docs/api/player.audioselector.md +1 -251
- package/docs/api/player.bigmutebutton.md +1 -156
- package/docs/api/player.clapprstats.exportmetrics.md +4 -0
- package/docs/api/player.clapprstats.md +7 -223
- package/docs/api/player.clapprstats.setupdatemetrics.md +2 -0
- package/docs/api/player.clicktopause.md +5 -113
- package/docs/api/player.clipsplugin.gettext.md +9 -0
- package/docs/api/player.clipsplugin.md +10 -94
- package/docs/api/player.clipspluginsettings.md +57 -0
- package/docs/api/player.clipspluginsettings.text.md +13 -0
- package/docs/api/player.contextmenu._constructor_.md +6 -3
- package/docs/api/player.contextmenu.md +13 -256
- package/docs/api/player.contextmenupluginsettings.label.md +11 -0
- package/docs/api/player.contextmenupluginsettings.md +93 -0
- package/docs/api/player.contextmenupluginsettings.preventshowcontextmenu.md +11 -0
- package/docs/api/player.contextmenupluginsettings.url.md +11 -0
- package/docs/api/player.dvrcontrols.md +1 -1
- package/docs/api/player.errorscreen.md +0 -2
- package/docs/api/player.favicon._constructor_.md +3 -0
- package/docs/api/player.favicon.bindevents.md +3 -0
- package/docs/api/player.favicon.configure.md +3 -0
- package/docs/api/player.favicon.destroy.md +3 -0
- package/docs/api/player.favicon.disable.md +3 -0
- package/docs/api/player.favicon.md +18 -1
- package/docs/api/player.favicon.name.md +3 -0
- package/docs/api/player.favicon.supportedversion.md +3 -0
- package/docs/api/player.gearevents.md +4 -1
- package/docs/api/player.googleanalytics._constructor_.md +3 -0
- package/docs/api/player.googleanalytics.addeventlisteners.md +3 -0
- package/docs/api/player.googleanalytics.embedscript.md +3 -0
- package/docs/api/player.googleanalytics.md +42 -1
- package/docs/api/player.googleanalytics.name.md +3 -0
- package/docs/api/player.googleanalytics.onbufferfull.md +3 -0
- package/docs/api/player.googleanalytics.onbuffering.md +3 -0
- package/docs/api/player.googleanalytics.ondvr.md +3 -0
- package/docs/api/player.googleanalytics.onended.md +3 -0
- package/docs/api/player.googleanalytics.onerror.md +3 -0
- package/docs/api/player.googleanalytics.onfullscreen.md +3 -0
- package/docs/api/player.googleanalytics.onhd.md +3 -0
- package/docs/api/player.googleanalytics.onpause.md +3 -0
- package/docs/api/player.googleanalytics.onplay.md +3 -0
- package/docs/api/player.googleanalytics.onready.md +3 -0
- package/docs/api/player.googleanalytics.onseek.md +3 -0
- package/docs/api/player.googleanalytics.onstop.md +3 -0
- package/docs/api/player.googleanalytics.onvolumechanged.md +3 -0
- package/docs/api/player.googleanalytics.push.md +3 -0
- package/docs/api/player.googleanalytics.supportedversion.md +3 -0
- package/docs/api/player.initeventdata.event.md +3 -0
- package/docs/api/player.initeventdata.md +7 -0
- package/docs/api/player.logo._constructor_.md +3 -0
- package/docs/api/player.logo.attributes.md +3 -0
- package/docs/api/player.logo.bindevents.md +3 -0
- package/docs/api/player.logo.md +20 -1
- package/docs/api/player.logo.name.md +3 -0
- package/docs/api/player.logo.render.md +3 -0
- package/docs/api/player.logo.stoplistening.md +3 -0
- package/docs/api/player.logo.supportedversion.md +3 -0
- package/docs/api/player.logo.template.md +3 -0
- package/docs/api/player.md +68 -20
- package/docs/api/player.mediacontrolelement.md +1 -1
- package/docs/api/player.multicamera.md +2 -0
- package/docs/api/player.seektime.attributes.md +3 -0
- package/docs/api/player.seektime.bindevents.md +3 -0
- package/docs/api/player.seektime.durationshown.md +3 -0
- package/docs/api/player.seektime.getseektime.md +3 -0
- package/docs/api/player.seektime.islivestreamwithdvr.md +3 -0
- package/docs/api/player.seektime.md +31 -0
- package/docs/api/player.seektime.mediacontrol.md +3 -0
- package/docs/api/player.seektime.mediacontrolcontainer.md +3 -0
- package/docs/api/player.seektime.name.md +3 -0
- package/docs/api/player.seektime.render.md +3 -0
- package/docs/api/player.seektime.shouldbevisible.md +3 -0
- package/docs/api/player.seektime.supportedversion.md +3 -0
- package/docs/api/player.seektime.template.md +3 -0
- package/docs/api/player.seektime.update.md +3 -0
- package/docs/api/player.share.md +2 -0
- package/docs/api/player.skiptime.md +2 -0
- package/docs/api/player.stalleventdata.count.md +3 -0
- package/docs/api/player.stalleventdata.event.md +3 -0
- package/docs/api/player.stalleventdata.md +8 -3
- package/docs/api/player.stalleventdata.time.md +3 -0
- package/docs/api/player.stalleventdata.total_ms.md +3 -0
- package/docs/api/player.starteventdata.event.md +3 -0
- package/docs/api/player.starteventdata.md +7 -0
- package/docs/api/player.telemetryevent.md +11 -0
- package/docs/api/player.telemetryeventdata.md +3 -0
- package/docs/api/player.telemetrypluginsettings.md +4 -1
- package/docs/api/player.telemetrypluginsettings.send.md +3 -0
- package/docs/api/player.telemetryrecord.md +3 -0
- package/docs/api/player.thumbnails.md +21 -139
- package/docs/api/player.thumbnailspluginsettings.md +23 -0
- package/docs/api/player.volumefade.md +1 -0
- package/docs/api/player.watcheventdata.event.md +3 -0
- package/docs/api/player.watcheventdata.md +7 -0
- package/lib/index.plugins.d.ts +0 -1
- package/lib/index.plugins.d.ts.map +1 -1
- package/lib/index.plugins.js +0 -1
- package/lib/plugins/audio-selector/AudioSelector.d.ts +28 -6
- package/lib/plugins/audio-selector/AudioSelector.d.ts.map +1 -1
- package/lib/plugins/audio-selector/AudioSelector.js +52 -22
- package/lib/plugins/big-mute-button/BigMuteButton.d.ts +18 -2
- package/lib/plugins/big-mute-button/BigMuteButton.d.ts.map +1 -1
- package/lib/plugins/big-mute-button/BigMuteButton.js +21 -16
- package/lib/plugins/bottom-gear/BottomGear.d.ts +1 -0
- package/lib/plugins/bottom-gear/BottomGear.d.ts.map +1 -1
- package/lib/plugins/bottom-gear/BottomGear.js +1 -0
- package/lib/plugins/clappr-stats/ClapprStats.d.ts +31 -8
- package/lib/plugins/clappr-stats/ClapprStats.d.ts.map +1 -1
- package/lib/plugins/clappr-stats/ClapprStats.js +24 -0
- package/lib/plugins/clappr-stats/types.d.ts +12 -0
- package/lib/plugins/clappr-stats/types.d.ts.map +1 -1
- package/lib/plugins/clappr-stats/types.js +3 -0
- package/lib/plugins/click-to-pause/ClickToPause.d.ts +13 -1
- package/lib/plugins/click-to-pause/ClickToPause.d.ts.map +1 -1
- package/lib/plugins/click-to-pause/ClickToPause.js +14 -4
- package/lib/plugins/clips/Clips.d.ts +34 -2
- package/lib/plugins/clips/Clips.d.ts.map +1 -1
- package/lib/plugins/clips/Clips.js +51 -22
- package/lib/plugins/context-menu/ContextMenu.d.ts +40 -13
- package/lib/plugins/context-menu/ContextMenu.d.ts.map +1 -1
- package/lib/plugins/context-menu/ContextMenu.js +48 -36
- package/lib/plugins/dvr-controls/DvrControls.d.ts +1 -3
- package/lib/plugins/dvr-controls/DvrControls.d.ts.map +1 -1
- package/lib/plugins/dvr-controls/DvrControls.js +11 -28
- package/lib/plugins/error-screen/ErrorScreen.d.ts +0 -1
- package/lib/plugins/error-screen/ErrorScreen.d.ts.map +1 -1
- package/lib/plugins/error-screen/ErrorScreen.js +0 -1
- package/lib/plugins/favicon/Favicon.d.ts +4 -0
- package/lib/plugins/favicon/Favicon.d.ts.map +1 -1
- package/lib/plugins/favicon/Favicon.js +4 -0
- package/lib/plugins/google-analytics/GoogleAnalytics.d.ts +4 -0
- package/lib/plugins/google-analytics/GoogleAnalytics.d.ts.map +1 -1
- package/lib/plugins/google-analytics/GoogleAnalytics.js +5 -1
- package/lib/plugins/index.d.ts +0 -1
- package/lib/plugins/index.d.ts.map +1 -1
- package/lib/plugins/index.js +0 -1
- package/lib/plugins/logo/Logo.d.ts +4 -0
- package/lib/plugins/logo/Logo.d.ts.map +1 -1
- package/lib/plugins/logo/Logo.js +4 -0
- package/lib/plugins/media-control/MediaControl.d.ts +1 -1
- package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
- package/lib/plugins/media-control/MediaControl.js +3 -1
- package/lib/plugins/multi-camera/MultiCamera.d.ts +3 -0
- package/lib/plugins/multi-camera/MultiCamera.d.ts.map +1 -1
- package/lib/plugins/multi-camera/MultiCamera.js +3 -0
- package/lib/plugins/seek-time/SeekTime.d.ts +4 -0
- package/lib/plugins/seek-time/SeekTime.d.ts.map +1 -1
- package/lib/plugins/seek-time/SeekTime.js +5 -1
- package/lib/plugins/share/Share.d.ts +3 -0
- package/lib/plugins/share/Share.d.ts.map +1 -1
- package/lib/plugins/share/Share.js +3 -0
- package/lib/plugins/skip-time/SkipTime.d.ts +3 -0
- package/lib/plugins/skip-time/SkipTime.d.ts.map +1 -1
- package/lib/plugins/skip-time/SkipTime.js +3 -0
- package/lib/plugins/telemetry/Telemetry.d.ts +18 -0
- package/lib/plugins/telemetry/Telemetry.d.ts.map +1 -1
- package/lib/plugins/telemetry/Telemetry.js +1 -0
- package/lib/plugins/thumbnails/Thumbnails.d.ts +48 -3
- package/lib/plugins/thumbnails/Thumbnails.d.ts.map +1 -1
- package/lib/plugins/thumbnails/Thumbnails.js +52 -18
- package/lib/plugins/volume-fade/VolumeFade.d.ts +1 -0
- package/lib/plugins/volume-fade/VolumeFade.d.ts.map +1 -1
- package/lib/plugins/volume-fade/VolumeFade.js +1 -0
- package/package.json +1 -1
- package/src/index.plugins.ts +0 -1
- package/src/plugins/audio-selector/AudioSelector.ts +227 -154
- package/src/plugins/big-mute-button/BigMuteButton.ts +100 -79
- package/src/plugins/bottom-gear/BottomGear.ts +1 -0
- package/src/plugins/clappr-stats/ClapprStats.ts +32 -8
- package/src/plugins/clappr-stats/types.ts +13 -0
- package/src/plugins/click-to-pause/ClickToPause.ts +47 -36
- package/src/plugins/clips/Clips.ts +127 -71
- package/src/plugins/context-menu/ContextMenu.ts +105 -76
- package/src/plugins/dvr-controls/DvrControls.ts +11 -30
- package/src/plugins/error-screen/ErrorScreen.ts +0 -1
- package/src/plugins/favicon/Favicon.ts +4 -0
- package/src/plugins/google-analytics/GoogleAnalytics.ts +5 -1
- package/src/plugins/index.ts +0 -1
- package/src/plugins/logo/Logo.ts +4 -0
- package/src/plugins/media-control/MediaControl.ts +4 -1
- package/src/plugins/multi-camera/MultiCamera.ts +3 -0
- package/src/plugins/seek-time/SeekTime.ts +5 -1
- package/src/plugins/share/Share.ts +3 -0
- package/src/plugins/skip-time/SkipTime.ts +3 -0
- package/src/plugins/telemetry/Telemetry.ts +18 -0
- package/src/plugins/thumbnails/Thumbnails.ts +268 -194
- package/src/plugins/volume-fade/VolumeFade.ts +1 -0
- package/temp/player.api.json +622 -2463
- package/tsconfig.tsbuildinfo +1 -1
- package/docs/api/player.audioselector.attributes.md +0 -17
- package/docs/api/player.audioselector.bindevents.md +0 -18
- package/docs/api/player.audioselector.events.md +0 -17
- package/docs/api/player.audioselector.hideselecttrackmenu.md +0 -18
- package/docs/api/player.audioselector.name.md +0 -14
- package/docs/api/player.audioselector.onshowlevelselectmenu.md +0 -18
- package/docs/api/player.audioselector.reload.md +0 -18
- package/docs/api/player.audioselector.render.md +0 -18
- package/docs/api/player.audioselector.supportedversion.md +0 -16
- package/docs/api/player.audioselector.template.md +0 -14
- package/docs/api/player.audioselector.togglecontextmenu.md +0 -18
- package/docs/api/player.audioselector.unbindevents.md +0 -18
- package/docs/api/player.audioselector.version.md +0 -14
- package/docs/api/player.bigmutebutton.bindevents.md +0 -18
- package/docs/api/player.bigmutebutton.events.md +0 -17
- package/docs/api/player.bigmutebutton.name.md +0 -14
- package/docs/api/player.bigmutebutton.render.md +0 -18
- package/docs/api/player.bigmutebutton.supportedversion.md +0 -16
- package/docs/api/player.bigmutebutton.template.md +0 -14
- package/docs/api/player.clapprstats._buildreport.md +0 -18
- package/docs/api/player.clapprstats._defaultreport.md +0 -52
- package/docs/api/player.clapprstats._playbackname.md +0 -14
- package/docs/api/player.clapprstats._playbacktype.md +0 -14
- package/docs/api/player.clapprstats.bindevents.md +0 -18
- package/docs/api/player.clapprstats.destroy.md +0 -18
- package/docs/api/player.clapprstats.name.md +0 -14
- package/docs/api/player.clapprstats.onfirstplaying.md +0 -18
- package/docs/api/player.clapprstats.playafterpause.md +0 -18
- package/docs/api/player.clapprstats.starttimers.md +0 -18
- package/docs/api/player.clapprstats.stopreporting.md +0 -18
- package/docs/api/player.clapprstats.supportedversion.md +0 -16
- package/docs/api/player.clicktopause.bindevents.md +0 -15
- package/docs/api/player.clicktopause.config.md +0 -11
- package/docs/api/player.clicktopause.name.md +0 -11
- package/docs/api/player.clicktopause.supportedversion.md +0 -13
- package/docs/api/player.clipsplugin.attributes.md +0 -13
- package/docs/api/player.clipsplugin.bindevents.md +0 -15
- package/docs/api/player.clipsplugin.makesvg.md +0 -49
- package/docs/api/player.clipsplugin.name.md +0 -11
- package/docs/api/player.clipsplugin.unbindevents.md +0 -15
- package/docs/api/player.contextmenu.attributes.md +0 -13
- package/docs/api/player.contextmenu.bindevents.md +0 -15
- package/docs/api/player.contextmenu.destroy.md +0 -15
- package/docs/api/player.contextmenu.events.md +0 -13
- package/docs/api/player.contextmenu.exposeversion.md +0 -14
- package/docs/api/player.contextmenu.label.md +0 -11
- package/docs/api/player.contextmenu.mediacontrol.md +0 -11
- package/docs/api/player.contextmenu.name.md +0 -11
- package/docs/api/player.contextmenu.render.md +0 -15
- package/docs/api/player.contextmenu.supportedversion.md +0 -13
- package/docs/api/player.contextmenu.template.md +0 -11
- package/docs/api/player.contextmenu.url.md +0 -11
- package/docs/api/player.disablecontrols.bindevents.md +0 -15
- package/docs/api/player.disablecontrols.container.md +0 -11
- package/docs/api/player.disablecontrols.md +0 -138
- package/docs/api/player.disablecontrols.name.md +0 -11
- package/docs/api/player.disablecontrols.supportedversion.md +0 -13
- package/docs/api/player.disablecontrols.unbindevents.md +0 -15
- package/docs/api/player.thumbnails.attributes.md +0 -13
- package/docs/api/player.thumbnails.bindevents.md +0 -15
- package/docs/api/player.thumbnails.name.md +0 -11
- package/docs/api/player.thumbnails.settext.md +0 -49
- package/docs/api/player.thumbnails.supportedversion.md +0 -13
- package/docs/api/player.thumbnails.template.md +0 -11
- package/src/plugins/disable-controls/DisableControls.ts +0 -81
- package/src/plugins/ga-events/GaEvents.js +0 -395
- package/src/plugins/ga-events/ga-tracking.js +0 -46
package/dist/player.d.ts
CHANGED
|
@@ -28,41 +28,63 @@ import { UICorePlugin } from '@clappr/core';
|
|
|
28
28
|
import { UIObject } from '@clappr/core';
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
+
* Adds an audio track selector to the media control UI.
|
|
31
32
|
* @beta
|
|
32
33
|
*/
|
|
33
34
|
export declare class AudioSelector extends UICorePlugin {
|
|
34
35
|
private selectedTrackId;
|
|
35
36
|
private currentTrack;
|
|
36
37
|
private tracks;
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
37
41
|
get name(): string;
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
38
45
|
get supportedVersion(): {
|
|
39
46
|
min: string;
|
|
40
47
|
};
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
41
51
|
static get version(): string;
|
|
42
|
-
|
|
52
|
+
private static readonly template;
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
43
56
|
get attributes(): {
|
|
44
57
|
class: string;
|
|
45
58
|
'data-track-selector': string;
|
|
46
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
47
63
|
get events(): {
|
|
48
64
|
'click [data-track-selector-select]': string;
|
|
49
65
|
'click [data-track-selector-button]': string;
|
|
50
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
51
70
|
bindEvents(): void;
|
|
52
|
-
unBindEvents
|
|
71
|
+
private unBindEvents;
|
|
53
72
|
private bindPlaybackEvents;
|
|
54
73
|
private setupAudioTrackListeners;
|
|
55
74
|
private onStop;
|
|
56
|
-
reload
|
|
75
|
+
private reload;
|
|
57
76
|
private shouldRender;
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
58
80
|
render(): this;
|
|
59
81
|
private fillTracks;
|
|
60
82
|
private findTrackBy;
|
|
61
83
|
private onTrackSelect;
|
|
62
84
|
private setIndexTrack;
|
|
63
|
-
onShowLevelSelectMenu
|
|
64
|
-
hideSelectTrackMenu
|
|
65
|
-
toggleContextMenu
|
|
85
|
+
private onShowLevelSelectMenu;
|
|
86
|
+
private hideSelectTrackMenu;
|
|
87
|
+
private toggleContextMenu;
|
|
66
88
|
private buttonElement;
|
|
67
89
|
private buttonElementText;
|
|
68
90
|
private trackElement;
|
|
@@ -76,6 +98,8 @@ export declare class AudioSelector extends UICorePlugin {
|
|
|
76
98
|
}
|
|
77
99
|
|
|
78
100
|
/**
|
|
101
|
+
* Displays a big mute button over the video when it's muted.
|
|
102
|
+
* Once pressed, it unmutes the video.
|
|
79
103
|
* @beta
|
|
80
104
|
*/
|
|
81
105
|
export declare class BigMuteButton extends UICorePlugin {
|
|
@@ -83,17 +107,28 @@ export declare class BigMuteButton extends UICorePlugin {
|
|
|
83
107
|
private _adIsPlaying;
|
|
84
108
|
private $bigMuteBtnContainer;
|
|
85
109
|
private $bigMuteButton;
|
|
110
|
+
/**
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
86
113
|
get name(): string;
|
|
114
|
+
/**
|
|
115
|
+
* @internal
|
|
116
|
+
*/
|
|
87
117
|
get supportedVersion(): {
|
|
88
118
|
min: string;
|
|
89
119
|
};
|
|
90
|
-
|
|
120
|
+
private static readonly template;
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
91
124
|
get events(): {
|
|
92
125
|
'click .big-mute-icon': string;
|
|
93
126
|
'click .big-mute-icon-wrapper': string;
|
|
94
127
|
};
|
|
128
|
+
/**
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
95
131
|
bindEvents(): void;
|
|
96
|
-
private unBindEvents;
|
|
97
132
|
private onCoreReady;
|
|
98
133
|
private onContainerVolume;
|
|
99
134
|
private onContainerStart;
|
|
@@ -102,6 +137,9 @@ export declare class BigMuteButton extends UICorePlugin {
|
|
|
102
137
|
private onStartAd;
|
|
103
138
|
private onFinishAd;
|
|
104
139
|
private shouldRender;
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
105
143
|
render(): this;
|
|
106
144
|
private hideBigMuteBtn;
|
|
107
145
|
private showBigMuteBtn;
|
|
@@ -109,6 +147,9 @@ export declare class BigMuteButton extends UICorePlugin {
|
|
|
109
147
|
private handleBigMuteBtnClick;
|
|
110
148
|
}
|
|
111
149
|
|
|
150
|
+
/**
|
|
151
|
+
* @beta
|
|
152
|
+
*/
|
|
112
153
|
declare type BitrateTrackRecord = {
|
|
113
154
|
start: number;
|
|
114
155
|
end?: number;
|
|
@@ -261,7 +302,10 @@ export declare class ClapprNerdStats extends UICorePlugin {
|
|
|
261
302
|
}
|
|
262
303
|
|
|
263
304
|
/**
|
|
305
|
+
* Collects useful statistics about playback performance.
|
|
264
306
|
* @beta
|
|
307
|
+
* @remarks
|
|
308
|
+
* This plugin does not render anything and is supposed to be extended or used together with other plugins that actually render something.
|
|
265
309
|
*/
|
|
266
310
|
export declare class ClapprStats extends ContainerPlugin {
|
|
267
311
|
private bwMeasureCount;
|
|
@@ -276,27 +320,47 @@ export declare class ClapprStats extends ContainerPlugin {
|
|
|
276
320
|
private updateFn;
|
|
277
321
|
private urisToMeasureBandwidth;
|
|
278
322
|
private uriToMeasureLatency;
|
|
323
|
+
/**
|
|
324
|
+
* @internal
|
|
325
|
+
*/
|
|
279
326
|
get name(): string;
|
|
327
|
+
/**
|
|
328
|
+
* @internal
|
|
329
|
+
*/
|
|
280
330
|
get supportedVersion(): {
|
|
281
331
|
min: string;
|
|
282
332
|
};
|
|
283
|
-
get _playbackName()
|
|
284
|
-
get _playbackType()
|
|
333
|
+
private get _playbackName();
|
|
334
|
+
private get _playbackType();
|
|
285
335
|
private _now;
|
|
286
336
|
private _inc;
|
|
287
337
|
private start;
|
|
288
338
|
private _stop;
|
|
339
|
+
/**
|
|
340
|
+
* Registers a callback to receive the metrics.
|
|
341
|
+
* @param updateMetricsFn
|
|
342
|
+
*/
|
|
289
343
|
setUpdateMetrics(updateMetricsFn: MetricsUpdateFn): void;
|
|
290
|
-
_defaultReport
|
|
344
|
+
private _defaultReport;
|
|
291
345
|
constructor(container: Container);
|
|
346
|
+
/**
|
|
347
|
+
* @internal
|
|
348
|
+
*/
|
|
292
349
|
bindEvents(): void;
|
|
350
|
+
/**
|
|
351
|
+
* @internal
|
|
352
|
+
*/
|
|
293
353
|
destroy(): void;
|
|
354
|
+
/**
|
|
355
|
+
* Returns the collected metrics.
|
|
356
|
+
* @returns The collected metrics
|
|
357
|
+
*/
|
|
294
358
|
exportMetrics(): Metrics;
|
|
295
359
|
onBitrate(newBitrate: QualityLevel): void;
|
|
296
|
-
stopReporting
|
|
297
|
-
startTimers
|
|
298
|
-
onFirstPlaying
|
|
299
|
-
playAfterPause
|
|
360
|
+
private stopReporting;
|
|
361
|
+
private startTimers;
|
|
362
|
+
private onFirstPlaying;
|
|
363
|
+
private playAfterPause;
|
|
300
364
|
private onPlay;
|
|
301
365
|
private onPause;
|
|
302
366
|
private onSeek;
|
|
@@ -307,7 +371,7 @@ export declare class ClapprStats extends ContainerPlugin {
|
|
|
307
371
|
private onProgress;
|
|
308
372
|
private _newMetrics;
|
|
309
373
|
private _onCompletion;
|
|
310
|
-
_buildReport
|
|
374
|
+
private _buildReport;
|
|
311
375
|
private _fetchFPS;
|
|
312
376
|
private _calculateBitrates;
|
|
313
377
|
private _calculatePercentages;
|
|
@@ -316,14 +380,26 @@ export declare class ClapprStats extends ContainerPlugin {
|
|
|
316
380
|
private _measureBandwidth;
|
|
317
381
|
}
|
|
318
382
|
|
|
383
|
+
/**
|
|
384
|
+
* Adds a behavior of toggling the playback state on click over the container
|
|
385
|
+
* @beta
|
|
386
|
+
*/
|
|
319
387
|
export declare class ClickToPause extends ContainerPlugin {
|
|
320
388
|
private pointerEnabled;
|
|
321
389
|
private timer;
|
|
390
|
+
/**
|
|
391
|
+
* @internal
|
|
392
|
+
*/
|
|
322
393
|
get name(): string;
|
|
394
|
+
/**
|
|
395
|
+
* @internal
|
|
396
|
+
*/
|
|
323
397
|
get supportedVersion(): {
|
|
324
398
|
min: string;
|
|
325
399
|
};
|
|
326
|
-
|
|
400
|
+
/**
|
|
401
|
+
* @internal
|
|
402
|
+
*/
|
|
327
403
|
bindEvents(): void;
|
|
328
404
|
private click;
|
|
329
405
|
private settingsUpdate;
|
|
@@ -331,30 +407,63 @@ export declare class ClickToPause extends ContainerPlugin {
|
|
|
331
407
|
private clearTimer;
|
|
332
408
|
}
|
|
333
409
|
|
|
410
|
+
/**
|
|
411
|
+
* Adds a behavior of showing a text over the seekbar to indicate the current clip.
|
|
412
|
+
* @beta
|
|
413
|
+
* @remarks
|
|
414
|
+
* Depends on:
|
|
415
|
+
*
|
|
416
|
+
* - {@link MediaControl}
|
|
417
|
+
*
|
|
418
|
+
* Configuration options - {@link ClipsPluginSettings}
|
|
419
|
+
*/
|
|
334
420
|
export declare class ClipsPlugin extends UICorePlugin {
|
|
335
421
|
private clips;
|
|
336
422
|
private duration;
|
|
337
423
|
private durationGetting;
|
|
338
424
|
private _oldContainer;
|
|
339
425
|
private svgMask;
|
|
426
|
+
/**
|
|
427
|
+
* @internal
|
|
428
|
+
*/
|
|
340
429
|
get name(): string;
|
|
430
|
+
/**
|
|
431
|
+
* @internal
|
|
432
|
+
*/
|
|
341
433
|
get attributes(): {
|
|
342
434
|
class: string;
|
|
343
435
|
};
|
|
436
|
+
/**
|
|
437
|
+
* @internal
|
|
438
|
+
*/
|
|
344
439
|
bindEvents(): void;
|
|
345
440
|
private _onCoreReady;
|
|
346
|
-
unbindEvents(): void;
|
|
347
441
|
private _onMediaControlContainerChanged;
|
|
348
442
|
private playerResize;
|
|
349
443
|
private _bindContainerEvents;
|
|
350
444
|
private onTimeUpdate;
|
|
351
445
|
private parseClips;
|
|
446
|
+
/**
|
|
447
|
+
* Returns the text of the current clip.
|
|
448
|
+
* @param time - The current time of the player.
|
|
449
|
+
* @returns The text of the current clip.
|
|
450
|
+
*/
|
|
352
451
|
getText(time: number): string;
|
|
353
|
-
makeSvg
|
|
452
|
+
private makeSvg;
|
|
354
453
|
private setSVGMask;
|
|
355
454
|
private setClipText;
|
|
356
455
|
}
|
|
357
456
|
|
|
457
|
+
/**
|
|
458
|
+
* Configuration options
|
|
459
|
+
*/
|
|
460
|
+
export declare interface ClipsPluginSettings {
|
|
461
|
+
/**
|
|
462
|
+
* The text to display over the seekbar.
|
|
463
|
+
*/
|
|
464
|
+
text: string;
|
|
465
|
+
}
|
|
466
|
+
|
|
358
467
|
/**
|
|
359
468
|
* Dimensions of the player container DOM element.
|
|
360
469
|
* @beta
|
|
@@ -364,38 +473,66 @@ export declare type ContainerSize = {
|
|
|
364
473
|
height: number;
|
|
365
474
|
};
|
|
366
475
|
|
|
367
|
-
|
|
476
|
+
/**
|
|
477
|
+
* Displays a small context menu when clicked on the player container.
|
|
478
|
+
* @beta
|
|
479
|
+
* @remarks
|
|
480
|
+
* Configuration options - {@link ContextMenuPluginSettings}
|
|
481
|
+
*/
|
|
482
|
+
export declare class ContextMenu extends UIContainerPlugin {
|
|
368
483
|
private _label;
|
|
369
484
|
private _url;
|
|
370
|
-
private container;
|
|
371
485
|
private menuOptions;
|
|
486
|
+
/**
|
|
487
|
+
* @internal
|
|
488
|
+
*/
|
|
372
489
|
get name(): string;
|
|
490
|
+
/**
|
|
491
|
+
* @internal
|
|
492
|
+
*/
|
|
373
493
|
get supportedVersion(): {
|
|
374
494
|
min: string;
|
|
375
495
|
};
|
|
496
|
+
/**
|
|
497
|
+
* @internal
|
|
498
|
+
*/
|
|
376
499
|
get attributes(): {
|
|
377
500
|
class: string;
|
|
378
501
|
};
|
|
379
|
-
|
|
380
|
-
get
|
|
381
|
-
get
|
|
382
|
-
get
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
};
|
|
502
|
+
private static readonly template;
|
|
503
|
+
private get label();
|
|
504
|
+
private get url();
|
|
505
|
+
private get exposeVersion();
|
|
506
|
+
/**
|
|
507
|
+
* @internal
|
|
508
|
+
*/
|
|
387
509
|
get events(): {
|
|
388
510
|
'click [data-version]': string;
|
|
389
511
|
};
|
|
390
|
-
constructor(
|
|
512
|
+
constructor(container: Container);
|
|
513
|
+
/**
|
|
514
|
+
* @internal
|
|
515
|
+
*/
|
|
391
516
|
bindEvents(): void;
|
|
517
|
+
/**
|
|
518
|
+
* @internal
|
|
519
|
+
*/
|
|
392
520
|
destroy(): UIObject;
|
|
393
|
-
private containerChanged;
|
|
394
521
|
private toggleContextMenu;
|
|
395
522
|
private show;
|
|
396
523
|
private hide;
|
|
397
524
|
private onOpenMainPage;
|
|
525
|
+
/**
|
|
526
|
+
* @internal
|
|
527
|
+
*/
|
|
398
528
|
render(): this;
|
|
529
|
+
private hideOnBodyClick;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export declare interface ContextMenuPluginSettings {
|
|
533
|
+
label?: string;
|
|
534
|
+
url?: string;
|
|
535
|
+
preventShowContextMenu?: boolean;
|
|
399
536
|
}
|
|
400
537
|
|
|
401
538
|
/**
|
|
@@ -405,20 +542,6 @@ export declare class ContextMenu extends UICorePlugin {
|
|
|
405
542
|
*/
|
|
406
543
|
export declare type DashSettings = Record<string, unknown>;
|
|
407
544
|
|
|
408
|
-
export declare class DisableControls extends UICorePlugin {
|
|
409
|
-
get name(): string;
|
|
410
|
-
get container(): any;
|
|
411
|
-
get supportedVersion(): {
|
|
412
|
-
min: string;
|
|
413
|
-
};
|
|
414
|
-
bindEvents(): void;
|
|
415
|
-
unbindEvents(): void;
|
|
416
|
-
private setDisableStyles;
|
|
417
|
-
private onCoreReady;
|
|
418
|
-
private enableControls;
|
|
419
|
-
private disableAllControls;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
545
|
/**
|
|
423
546
|
* Adds the DVR controls to the media control UI
|
|
424
547
|
* @beta
|
|
@@ -426,7 +549,7 @@ export declare class DisableControls extends UICorePlugin {
|
|
|
426
549
|
* @remarks
|
|
427
550
|
* Depends on:
|
|
428
551
|
*
|
|
429
|
-
* - {@link MediaControl
|
|
552
|
+
* - {@link MediaControl}
|
|
430
553
|
*
|
|
431
554
|
* The plugin renders the live stream indicator and the DVR seek bar, if DVR is enabled, in the media control UI.
|
|
432
555
|
*/
|
|
@@ -460,9 +583,7 @@ export declare class DvrControls extends UICorePlugin {
|
|
|
460
583
|
* @internal
|
|
461
584
|
*/
|
|
462
585
|
bindEvents(): void;
|
|
463
|
-
private bindCoreEvents;
|
|
464
586
|
private bindContainerEvents;
|
|
465
|
-
private containerChanged;
|
|
466
587
|
private dvrChanged;
|
|
467
588
|
private click;
|
|
468
589
|
private settingsUpdate;
|
|
@@ -482,7 +603,6 @@ export declare type ErrorLevel = 'FATAL' | 'WARN' | 'INFO';
|
|
|
482
603
|
/**
|
|
483
604
|
* Displays a descriptive error in the overlay on top of the player.
|
|
484
605
|
* @beta
|
|
485
|
-
* TODO
|
|
486
606
|
*/
|
|
487
607
|
export declare class ErrorScreen extends UICorePlugin {
|
|
488
608
|
private _retry;
|
|
@@ -518,6 +638,10 @@ export declare class ErrorScreen extends UICorePlugin {
|
|
|
518
638
|
render(): this;
|
|
519
639
|
}
|
|
520
640
|
|
|
641
|
+
/**
|
|
642
|
+
* The plugin adds custom favicon to the player's tab.
|
|
643
|
+
* @beta
|
|
644
|
+
*/
|
|
521
645
|
export declare class Favicon extends CorePlugin {
|
|
522
646
|
private _container;
|
|
523
647
|
private oldIcon;
|
|
@@ -543,6 +667,7 @@ export declare class Favicon extends CorePlugin {
|
|
|
543
667
|
|
|
544
668
|
/**
|
|
545
669
|
* Custom events emitted by the plugin
|
|
670
|
+
* @beta
|
|
546
671
|
*/
|
|
547
672
|
export declare enum GearEvents {
|
|
548
673
|
/**
|
|
@@ -557,6 +682,10 @@ export declare enum GearEvents {
|
|
|
557
682
|
*/
|
|
558
683
|
export declare type GearItemElement = 'quality' | 'rate' | 'nerd';
|
|
559
684
|
|
|
685
|
+
/**
|
|
686
|
+
* An example Google Analytics integration plugin
|
|
687
|
+
* @beta
|
|
688
|
+
*/
|
|
560
689
|
export declare class GoogleAnalytics extends ContainerPlugin {
|
|
561
690
|
private account;
|
|
562
691
|
private trackerName;
|
|
@@ -586,6 +715,10 @@ export declare class GoogleAnalytics extends ContainerPlugin {
|
|
|
586
715
|
push(array: string[]): void;
|
|
587
716
|
}
|
|
588
717
|
|
|
718
|
+
/**
|
|
719
|
+
* Telemetry init event data
|
|
720
|
+
* @beta
|
|
721
|
+
*/
|
|
589
722
|
export declare interface InitEventData {
|
|
590
723
|
event: TelemetryEvent.Init;
|
|
591
724
|
}
|
|
@@ -722,6 +855,10 @@ export declare class LevelSelector extends UICorePlugin {
|
|
|
722
855
|
|
|
723
856
|
export { Logger }
|
|
724
857
|
|
|
858
|
+
/**
|
|
859
|
+
* The plugin adds custom logo to the player.
|
|
860
|
+
* @beta
|
|
861
|
+
*/
|
|
725
862
|
export declare class Logo extends UIContainerPlugin {
|
|
726
863
|
private hasStartedPlaying;
|
|
727
864
|
private $logoContainer;
|
|
@@ -1016,7 +1153,7 @@ export declare class MediaControl extends UICorePlugin {
|
|
|
1016
1153
|
* Media control elements, mount points for additional plugins
|
|
1017
1154
|
* @beta
|
|
1018
1155
|
*/
|
|
1019
|
-
export declare type MediaControlElement = 'bottomGear' | 'clipText' | 'gear' | 'pip' | 'playbackRate' | 'seekBarContainer' | 'subtitlesSelector';
|
|
1156
|
+
export declare type MediaControlElement = 'audioTracksSelector' | 'bottomGear' | 'clipText' | 'gear' | 'pip' | 'playbackRate' | 'seekBarContainer' | 'subtitlesSelector';
|
|
1020
1157
|
|
|
1021
1158
|
declare type MediaSourceInfo = {
|
|
1022
1159
|
live: boolean;
|
|
@@ -1032,6 +1169,9 @@ declare type MediaSourceInfo = {
|
|
|
1032
1169
|
*/
|
|
1033
1170
|
export declare type MediaTransport = 'dash' | 'hls';
|
|
1034
1171
|
|
|
1172
|
+
/**
|
|
1173
|
+
* @beta
|
|
1174
|
+
*/
|
|
1035
1175
|
declare type Metrics = {
|
|
1036
1176
|
counters: {
|
|
1037
1177
|
play: number;
|
|
@@ -1071,8 +1211,14 @@ declare type Metrics = {
|
|
|
1071
1211
|
custom: Record<string, unknown>;
|
|
1072
1212
|
};
|
|
1073
1213
|
|
|
1214
|
+
/**
|
|
1215
|
+
* @beta
|
|
1216
|
+
*/
|
|
1074
1217
|
declare type MetricsUpdateFn = (metrics: Metrics) => void;
|
|
1075
1218
|
|
|
1219
|
+
/**
|
|
1220
|
+
* The plugin adds support for loading multiple streams and switching between them using the media control UI.
|
|
1221
|
+
*/
|
|
1076
1222
|
export declare class MultiCamera extends UICorePlugin {
|
|
1077
1223
|
private currentCamera;
|
|
1078
1224
|
private currentTime;
|
|
@@ -1840,6 +1986,10 @@ export declare interface QualityLevel {
|
|
|
1840
1986
|
|
|
1841
1987
|
export { reportError_2 as reportError }
|
|
1842
1988
|
|
|
1989
|
+
/**
|
|
1990
|
+
* The plugin adds a seek time indicator to the media control UI.
|
|
1991
|
+
* @beta
|
|
1992
|
+
*/
|
|
1843
1993
|
export declare class SeekTime extends UICorePlugin {
|
|
1844
1994
|
get name(): string;
|
|
1845
1995
|
get supportedVersion(): {
|
|
@@ -1880,6 +2030,9 @@ export { SentryTracer }
|
|
|
1880
2030
|
|
|
1881
2031
|
export { setTracer }
|
|
1882
2032
|
|
|
2033
|
+
/**
|
|
2034
|
+
* The plugin adds a share button to the media control UI.
|
|
2035
|
+
*/
|
|
1883
2036
|
export declare class Share extends UICorePlugin {
|
|
1884
2037
|
private hide;
|
|
1885
2038
|
private container;
|
|
@@ -1916,6 +2069,9 @@ export declare class Share extends UICorePlugin {
|
|
|
1916
2069
|
onShareEmbedClick(): void;
|
|
1917
2070
|
}
|
|
1918
2071
|
|
|
2072
|
+
/**
|
|
2073
|
+
* The plugin adds skip controls to the media control UI.
|
|
2074
|
+
*/
|
|
1919
2075
|
export declare class SkipTime extends UICorePlugin {
|
|
1920
2076
|
get name(): string;
|
|
1921
2077
|
get supportedVersion(): {
|
|
@@ -2052,6 +2208,7 @@ export declare class SpinnerThreeBounce extends UIContainerPlugin {
|
|
|
2052
2208
|
|
|
2053
2209
|
/**
|
|
2054
2210
|
* Playback stall event data
|
|
2211
|
+
* @beta
|
|
2055
2212
|
*/
|
|
2056
2213
|
export declare interface StallEventData {
|
|
2057
2214
|
event: TelemetryEvent.Stall;
|
|
@@ -2069,6 +2226,10 @@ export declare interface StallEventData {
|
|
|
2069
2226
|
time: number;
|
|
2070
2227
|
}
|
|
2071
2228
|
|
|
2229
|
+
/**
|
|
2230
|
+
* Telemetry start event data
|
|
2231
|
+
* @beta
|
|
2232
|
+
*/
|
|
2072
2233
|
export declare interface StartEventData {
|
|
2073
2234
|
event: TelemetryEvent.Start;
|
|
2074
2235
|
}
|
|
@@ -2254,6 +2415,7 @@ export declare class Telemetry extends ContainerPlugin {
|
|
|
2254
2415
|
|
|
2255
2416
|
/**
|
|
2256
2417
|
* Telemetry event type
|
|
2418
|
+
* @beta
|
|
2257
2419
|
*/
|
|
2258
2420
|
export declare enum TelemetryEvent {
|
|
2259
2421
|
Init = 1,
|
|
@@ -2264,11 +2426,13 @@ export declare enum TelemetryEvent {
|
|
|
2264
2426
|
|
|
2265
2427
|
/**
|
|
2266
2428
|
* Telemetry event data
|
|
2429
|
+
* @beta
|
|
2267
2430
|
*/
|
|
2268
2431
|
export declare type TelemetryEventData = StallEventData | InitEventData | StartEventData | WatchEventData;
|
|
2269
2432
|
|
|
2270
2433
|
/**
|
|
2271
2434
|
* Plugin settings
|
|
2435
|
+
* @beta
|
|
2272
2436
|
*/
|
|
2273
2437
|
export declare interface TelemetryPluginSettings {
|
|
2274
2438
|
/**
|
|
@@ -2280,6 +2444,7 @@ export declare interface TelemetryPluginSettings {
|
|
|
2280
2444
|
|
|
2281
2445
|
/**
|
|
2282
2446
|
* Telemetry record
|
|
2447
|
+
* @beta
|
|
2283
2448
|
*/
|
|
2284
2449
|
export declare type TelemetryRecord = {
|
|
2285
2450
|
type: PlaybackType;
|
|
@@ -2288,9 +2453,32 @@ export declare type TelemetryRecord = {
|
|
|
2288
2453
|
/**
|
|
2289
2454
|
* Callback to send the telemetry record to the storage.
|
|
2290
2455
|
* @param data - The telemetry record to send.
|
|
2456
|
+
* @beta
|
|
2291
2457
|
*/
|
|
2292
2458
|
declare type TelemetrySendFn = (data: TelemetryRecord) => void;
|
|
2293
2459
|
|
|
2460
|
+
/**
|
|
2461
|
+
* Displays the thumbnails of the video when available.
|
|
2462
|
+
* @beta
|
|
2463
|
+
* @example
|
|
2464
|
+
* ```ts
|
|
2465
|
+
* import { Thumbnails } from '@gcorevideo/player'
|
|
2466
|
+
*
|
|
2467
|
+
* Player.registerPlugin(Thumbnails)
|
|
2468
|
+
*
|
|
2469
|
+
* new Player({
|
|
2470
|
+
* thumbnails: {
|
|
2471
|
+
* backdropHeight: 200,
|
|
2472
|
+
* backdropMinOpacity: 0.9,
|
|
2473
|
+
* backdropMaxOpacity: 0.99,
|
|
2474
|
+
* spotlightHeight: 100,
|
|
2475
|
+
* vtt: '1\n00:00:00,000 --> 00:00:10,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=0,0,100,56\n\n2\n00:00:10,000 --> 00:00:20,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=100,0,100,56\n\n3\n00:00:20,000 --> 00:00:30,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=200,0,100,56\n\n4\n00:00:30,000 --> 00:00:40,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=300,0,100,56\n\n5\n00:00:40,000 --> 00:00:50,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=400,0,100,56\n\n6\n00:00:50,000 --> 00:01:00,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=500,0,100,56\n\n7\n00:01:00,000 --> 00:01:10,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=600,0,100,56\n\n8\n00:01:10,000 --> 00:01:20,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=0,56,100,56\n\n9\n00:01:20,000 --> 00:01:30,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=100,56,100,56\n\n10\n00:01:30,000 --> 00:01:40,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=200,56,100,56\n\n11\n00:01:40,000 --> 00:01:50,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=300,56,100,56\n\n12\n00:01:50,000 --> 00:02:00,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=400,56,100,56\n\n13\n00:02:00,000 --> 00:02:10,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=500,56,100,56\n\n14\n00:02:10,000 --> 00:02:20,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=600,56,100,56\n\n15\n00:02:20,000 --> 00:02:30,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=0,112,100,56\n\n16\n00:02:30,000 --> 00:02:40,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=100,112,100,56\n\n17\n00:02:40,000 --> 00:02:50,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=200,112,100,56\n\n18\n00:02:50,000 --> 00:03:00,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=300,112,100,56\n\n19\n00:03:00,000 --> 00:03:10,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=400,112,100,56\n\n20\n00:03:10,000 --> 00:03:20,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=500,112,100,56\n\n21\n00:03:20,000 --> 00:03:30,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=600,112,100,56\n\n22\n00:03:30,000 --> 00:03:40,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=0,168,100,56\n\n23\n00:03:40,000 --> 00:03:50,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=100,168,100,56\n\n24\n00:03:50,000 --> 00:04:00,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=200,168,100,56\n\n25\n00:04:00,000 --> 00:04:10,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=300,168,100,56\n\n26\n00:04:10,000 --> 00:04:20,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=400,168,100,56\n\n27\n00:04:20,000 --> 00:04:30,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=500,168,100,56\n\n28\n00:04:30,000 --> 00:04:40,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=600,168,100,56\n\n29\n00:04:40,000 --> 00:04:50,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=0,224,100,56\n\n30\n00:04:50,000 --> 00:05:00,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=100,224,100,56\n\n31\n00:05:00,000 --> 00:05:10,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=200,224,100,56\n\n32\n00:05:10,000 --> 00:05:20,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=300,224,100,56\n\n33\n00:05:20,000 --> 00:05:30,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=400,224,100,56\n\n34\n00:05:30,000 --> 00:05:40,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=500,224,100,56\n\n35\n00:05:40,000 --> 00:05:50,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=600,224,100,56\n\n36\n00:05:50,000 --> 00:06:00,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=0,280,100,56\n\n37\n00:06:00,000 --> 00:06:10,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=100,280,100,56\n\n38\n00:06:10,000 --> 00:06:20,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=200,280,100,56\n\n39\n00:06:20,000 --> 00:06:30,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=300,280,100,56\n\n40\n00:06:30,000 --> 00:06:40,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=400,280,100,56\n\n41\n00:06:40,000 --> 00:06:50,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=500,280,100,56\n\n42\n00:06:50,000 --> 00:07:00,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=600,280,100,56\n\n43\n00:07:00,000 --> 00:07:10,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=0,336,100,56\n\n44\n00:07:10,000 --> 00:07:20,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=100,336,100,56\n\n45\n00:07:20,000 --> 00:07:30,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=200,336,100,56\n\n46\n00:07:30,000 --> 00:07:40,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=300,336,100,56\n\n47\n00:07:40,000 --> 00:07:50,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=400,336,100,56\n\n48\n00:07:50,000 --> 00:08:00,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=500,336,100,56\n\n49\n00:08:00,000 --> 00:08:10,000\n3dk4NsRt6vWsffEr_sprite.jpg#xywh=600,336,100,56\n',
|
|
2476
|
+
* sprite:
|
|
2477
|
+
* 'https://static.gvideo.co/videoplatform/sprites/2675/2452164_3dk4NsRt6vWsffEr.mp4_sprite.jpg',
|
|
2478
|
+
* },
|
|
2479
|
+
* })
|
|
2480
|
+
* ```
|
|
2481
|
+
*/
|
|
2294
2482
|
export declare class Thumbnails extends UICorePlugin {
|
|
2295
2483
|
private _$spotlight;
|
|
2296
2484
|
private _$backdrop;
|
|
@@ -2305,15 +2493,27 @@ export declare class Thumbnails extends UICorePlugin {
|
|
|
2305
2493
|
private _thumbsLoaded;
|
|
2306
2494
|
private _oldContainer;
|
|
2307
2495
|
private _thumbs;
|
|
2496
|
+
/**
|
|
2497
|
+
* @internal
|
|
2498
|
+
*/
|
|
2308
2499
|
get name(): string;
|
|
2500
|
+
/**
|
|
2501
|
+
* @internal
|
|
2502
|
+
*/
|
|
2309
2503
|
get supportedVersion(): {
|
|
2310
2504
|
min: string;
|
|
2311
2505
|
};
|
|
2506
|
+
/**
|
|
2507
|
+
* @internal
|
|
2508
|
+
*/
|
|
2312
2509
|
get attributes(): {
|
|
2313
2510
|
class: string;
|
|
2314
2511
|
};
|
|
2315
|
-
|
|
2512
|
+
private static readonly template;
|
|
2316
2513
|
private buildSpriteConfig;
|
|
2514
|
+
/**
|
|
2515
|
+
* @internal
|
|
2516
|
+
*/
|
|
2317
2517
|
bindEvents(): void;
|
|
2318
2518
|
private _bindContainerEvents;
|
|
2319
2519
|
private _onCoreReady;
|
|
@@ -2327,7 +2527,7 @@ export declare class Thumbnails extends UICorePlugin {
|
|
|
2327
2527
|
private _calculateHoverPosition;
|
|
2328
2528
|
private _buildImg;
|
|
2329
2529
|
private _loadBackdrop;
|
|
2330
|
-
setText
|
|
2530
|
+
private setText;
|
|
2331
2531
|
private _updateCarousel;
|
|
2332
2532
|
private _updateSpotlightThumb;
|
|
2333
2533
|
private _getThumbIndexForTime;
|
|
@@ -2335,6 +2535,19 @@ export declare class Thumbnails extends UICorePlugin {
|
|
|
2335
2535
|
private _createElements;
|
|
2336
2536
|
}
|
|
2337
2537
|
|
|
2538
|
+
/**
|
|
2539
|
+
* Plugin configuration options for the thumbnails plugin.
|
|
2540
|
+
* @beta
|
|
2541
|
+
*/
|
|
2542
|
+
export declare type ThumbnailsPluginSettings = {
|
|
2543
|
+
backdropHeight: number;
|
|
2544
|
+
backdropMaxOpacity: number;
|
|
2545
|
+
backdropMinOpacity: number;
|
|
2546
|
+
spotlightHeight: number;
|
|
2547
|
+
sprite: string;
|
|
2548
|
+
vtt: string;
|
|
2549
|
+
};
|
|
2550
|
+
|
|
2338
2551
|
/**
|
|
2339
2552
|
* Current playback time and total duration of the media.
|
|
2340
2553
|
* @beta
|
|
@@ -2431,6 +2644,7 @@ export declare function version(): {
|
|
|
2431
2644
|
};
|
|
2432
2645
|
|
|
2433
2646
|
/**
|
|
2647
|
+
* Applies fade effect to the player's volume change.
|
|
2434
2648
|
* @beta
|
|
2435
2649
|
*/
|
|
2436
2650
|
export declare class VolumeFade extends UICorePlugin {
|
|
@@ -2460,6 +2674,10 @@ export declare enum VolumeFadeEvents {
|
|
|
2460
2674
|
FADE = "core:volume:fade"
|
|
2461
2675
|
}
|
|
2462
2676
|
|
|
2677
|
+
/**
|
|
2678
|
+
* Telemetry watch event data
|
|
2679
|
+
* @beta
|
|
2680
|
+
*/
|
|
2463
2681
|
export declare interface WatchEventData {
|
|
2464
2682
|
event: TelemetryEvent.Watch;
|
|
2465
2683
|
}
|