@gcorevideo/player 2.20.8 → 2.20.9
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 +18 -13
- package/dist/index.css +1541 -1541
- package/dist/index.js +59 -52
- package/dist/player.d.ts +178 -126
- package/dist/plugins/index.css +665 -665
- package/dist/plugins/index.js +42 -40
- package/docs/api/player.bottomgear.md +14 -0
- package/docs/api/player.bottomgear.refresh.md +20 -0
- package/docs/api/player.clapprnerdstats.md +1 -1
- package/docs/api/player.clapprstats.exportmetrics.md +1 -1
- package/docs/api/player.clapprstats.md +1 -15
- package/docs/api/player.clapprstats.setupdatemetrics.md +2 -0
- package/docs/api/player.clipsplugin.md +1 -1
- package/docs/api/player.clipspluginsettings.md +5 -2
- package/docs/api/player.clipspluginsettings.text.md +3 -0
- package/docs/api/player.containerpluginconstructor.md +19 -0
- package/docs/api/{player.errorscreen.render.md → player.corepluginconstructor.md} +7 -6
- package/docs/api/player.errordesc.md +28 -0
- package/docs/api/player.errorscreen.md +1 -220
- package/docs/api/{player.errorscreen.bindevents.md → player.errorscreenpluginsettings.md} +7 -7
- package/docs/api/player.levelselector.md +3 -9
- package/docs/api/player.levelselectorpluginsettings.labels.md +24 -0
- package/docs/api/player.levelselectorpluginsettings.md +79 -0
- package/docs/api/player.levelselectorpluginsettings.restrictresolution.md +16 -0
- package/docs/api/player.md +93 -16
- package/docs/api/{player.errorscreen.hide.md → player.mediacontrol.currentseekpos.md} +3 -7
- package/docs/api/player.mediacontrol.disable.md +1 -1
- package/docs/api/player.mediacontrol.md +23 -2
- package/docs/api/{player.gearevents.md → player.mediacontrolevents.md} +4 -4
- package/docs/api/player.multicamera.md +1 -29
- package/docs/api/player.playbackerror.md +19 -0
- package/docs/api/{player.errorscreen.supportedversion.md → player.playbackerror.ui.md} +7 -4
- package/docs/api/player.playbackerrorcode.md +3 -3
- package/docs/api/{player.errorscreen.show.md → player.playbackrate._constructor_.md} +7 -11
- package/docs/api/player.playbackrate.md +35 -2
- package/docs/api/player.player.registerplugin.md +2 -2
- package/docs/api/player.player.unregisterplugin.md +2 -2
- package/docs/api/player.playerpluginconstructor.md +17 -0
- package/docs/api/player.share.attributes.md +3 -0
- package/docs/api/player.share.bindevents.md +3 -0
- package/docs/api/player.share.canshowshare.md +3 -0
- package/docs/api/player.share.events.md +3 -0
- package/docs/api/player.share.hideshare.md +3 -0
- package/docs/api/player.share.initializeicons.md +3 -0
- package/docs/api/player.share.md +40 -1
- package/docs/api/player.share.name.md +3 -0
- package/docs/api/player.share.onshareembedclick.md +3 -0
- package/docs/api/player.share.onsharefb.md +3 -0
- package/docs/api/player.share.onsharehide.md +3 -0
- package/docs/api/player.share.onsharelinkclick.md +3 -0
- package/docs/api/player.share.onshareshow.md +3 -0
- package/docs/api/player.share.onsharetw.md +3 -0
- package/docs/api/player.share.render.md +3 -0
- package/docs/api/player.share.showshare.md +3 -0
- package/docs/api/player.share.supportedversion.md +3 -0
- package/docs/api/player.share.template.md +3 -0
- package/docs/api/player.share.unbindevents.md +3 -0
- package/docs/api/player.skiptime.attributes.md +3 -0
- package/docs/api/player.skiptime.bindevents.md +3 -0
- package/docs/api/player.skiptime.container.md +3 -0
- package/docs/api/player.skiptime.events.md +3 -0
- package/docs/api/player.skiptime.handlerewindclicks.md +3 -0
- package/docs/api/player.skiptime.md +30 -1
- package/docs/api/player.skiptime.name.md +3 -0
- package/docs/api/player.skiptime.render.md +3 -0
- package/docs/api/player.skiptime.setback.md +3 -0
- package/docs/api/player.skiptime.setforward.md +3 -0
- package/docs/api/player.skiptime.setmidclick.md +3 -0
- package/docs/api/player.skiptime.supportedversion.md +3 -0
- package/docs/api/player.skiptime.template.md +3 -0
- package/docs/api/player.skiptime.togglefullscreen.md +3 -0
- package/docs/api/player.spinnerevents.md +4 -1
- package/docs/api/player.spinnerthreebounce.hide.md +1 -1
- package/docs/api/player.spinnerthreebounce.md +7 -5
- package/docs/api/player.spinnerthreebounce.show.md +40 -2
- package/docs/api/player.telemetry.md +1 -1
- package/docs/api/player.telemetrypluginsettings.md +1 -1
- package/docs/api/{player.errorscreen.unbindevents.md → player.telemetrysendfn.md} +6 -6
- package/lib/Player.d.ts +13 -4
- package/lib/Player.d.ts.map +1 -1
- package/lib/Player.js +17 -12
- package/lib/index.core.d.ts +0 -1
- package/lib/index.core.d.ts.map +1 -1
- package/lib/index.core.js +0 -1
- 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/playback/hls-playback/HlsPlayback.d.ts.map +1 -1
- package/lib/playback/hls-playback/HlsPlayback.js +1 -1
- package/lib/plugins/bottom-gear/BottomGear.d.ts +1 -1
- package/lib/plugins/bottom-gear/BottomGear.d.ts.map +1 -1
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.d.ts +1 -1
- package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.js +1 -1
- package/lib/plugins/clappr-nerd-stats/speedtest/Speedtest.d.ts.map +1 -1
- package/lib/plugins/clappr-nerd-stats/speedtest/Speedtest.js +8 -8
- package/lib/plugins/clappr-stats/ClapprStats.d.ts +4 -5
- package/lib/plugins/clappr-stats/ClapprStats.d.ts.map +1 -1
- package/lib/plugins/clappr-stats/ClapprStats.js +4 -3
- package/lib/plugins/clips/Clips.d.ts +3 -2
- package/lib/plugins/clips/Clips.d.ts.map +1 -1
- package/lib/plugins/clips/Clips.js +1 -1
- package/lib/plugins/context-menu/ContextMenu.d.ts.map +1 -1
- package/lib/plugins/dvr-controls/DvrControls.d.ts +3 -2
- package/lib/plugins/dvr-controls/DvrControls.d.ts.map +1 -1
- package/lib/plugins/dvr-controls/DvrControls.js +3 -2
- package/lib/plugins/error-screen/ErrorScreen.d.ts +12 -1
- package/lib/plugins/error-screen/ErrorScreen.d.ts.map +1 -1
- package/lib/plugins/error-screen/ErrorScreen.js +1 -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/kibo/index.d.ts +0 -3
- package/lib/plugins/kibo/index.d.ts.map +1 -1
- package/lib/plugins/kibo/index.js +0 -3
- package/lib/plugins/level-selector/LevelSelector.d.ts +6 -4
- package/lib/plugins/level-selector/LevelSelector.d.ts.map +1 -1
- package/lib/plugins/level-selector/LevelSelector.js +2 -4
- package/lib/plugins/media-control/MediaControl.d.ts +4 -4
- package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
- package/lib/plugins/media-control/MediaControl.js +3 -3
- package/lib/plugins/multi-camera/MultiCamera.d.ts +3 -11
- package/lib/plugins/multi-camera/MultiCamera.d.ts.map +1 -1
- package/lib/plugins/multi-camera/MultiCamera.js +1 -1
- package/lib/plugins/poster/Poster.js +2 -2
- package/lib/plugins/share/Share.d.ts +2 -1
- package/lib/plugins/share/Share.d.ts.map +1 -1
- package/lib/plugins/share/Share.js +2 -1
- package/lib/plugins/skip-time/SkipTime.d.ts +2 -1
- package/lib/plugins/skip-time/SkipTime.d.ts.map +1 -1
- package/lib/plugins/skip-time/SkipTime.js +2 -1
- package/lib/plugins/source-controller/SourceController.js +3 -3
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.d.ts +6 -3
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.d.ts.map +1 -1
- package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.js +6 -3
- package/lib/plugins/telemetry/Telemetry.d.ts +2 -3
- package/lib/plugins/telemetry/Telemetry.d.ts.map +1 -1
- package/lib/plugins/telemetry/Telemetry.js +1 -1
- package/lib/plugins/vast-ads/VastAds.d.ts.map +1 -1
- package/lib/plugins/vast-ads/VastAds.js +3 -3
- package/lib/plugins/vast-ads/roll.d.ts +1 -1
- package/lib/plugins/vast-ads/roll.d.ts.map +1 -1
- package/lib/plugins/vast-ads/rollmanager.d.ts +1 -1
- package/lib/plugins/vast-ads/rollmanager.d.ts.map +1 -1
- package/lib/plugins/vast-ads/rollmanager.js +2 -2
- package/lib/types.d.ts +21 -5
- package/lib/types.d.ts.map +1 -1
- package/lib/utils/types.d.ts +0 -6
- package/lib/utils/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Player.ts +18 -16
- package/src/index.core.ts +0 -1
- package/src/index.plugins.ts +0 -1
- package/src/playback/hls-playback/HlsPlayback.ts +7 -11
- package/src/plugins/audio-selector/AudioSelector.ts +1 -1
- package/src/plugins/big-mute-button/BigMuteButton.ts +1 -1
- package/src/plugins/bottom-gear/BottomGear.ts +1 -1
- package/src/plugins/clappr-nerd-stats/ClapprNerdStats.ts +2 -2
- package/src/plugins/clappr-nerd-stats/speedtest/Speedtest.ts +184 -187
- package/src/plugins/clappr-stats/ClapprStats.ts +5 -4
- package/src/plugins/clips/Clips.ts +4 -3
- package/src/plugins/context-menu/ContextMenu.ts +0 -2
- package/src/plugins/dvr-controls/DvrControls.ts +3 -2
- package/src/plugins/error-screen/ErrorScreen.ts +12 -1
- package/src/plugins/favicon/Favicon.ts +1 -1
- package/src/plugins/index.ts +0 -1
- package/src/plugins/kibo/index.ts +0 -3
- package/src/plugins/level-selector/LevelSelector.ts +7 -5
- package/src/plugins/logo/Logo.ts +1 -1
- package/src/plugins/media-control/MediaControl.ts +4 -4
- package/src/plugins/multi-camera/MultiCamera.ts +4 -4
- package/src/plugins/playback-rate/PlaybackRate.ts +1 -1
- package/src/plugins/poster/Poster.ts +3 -3
- package/src/plugins/seek-time/SeekTime.ts +1 -1
- package/src/plugins/share/Share.ts +2 -1
- package/src/plugins/skip-time/SkipTime.ts +2 -1
- package/src/plugins/source-controller/SourceController.ts +3 -3
- package/src/plugins/source-controller/__tests__/SourceController.test.ts +2 -2
- package/src/plugins/spinner-three-bounce/SpinnerThreeBounce.ts +6 -3
- package/src/plugins/subtitles/Subtitles.ts +1 -1
- package/src/plugins/telemetry/Telemetry.ts +2 -2
- package/src/plugins/thumbnails/Thumbnails.ts +1 -1
- package/src/plugins/vast-ads/VastAds.ts +5 -4
- package/src/plugins/vast-ads/roll.ts +2 -1
- package/src/plugins/vast-ads/rollmanager.ts +3 -3
- package/src/types.ts +24 -5
- package/src/utils/types.ts +0 -8
- package/temp/player.api.json +540 -576
- package/tsconfig.tsbuildinfo +1 -1
- package/docs/api/player.clapprstats.onbitrate.md +0 -52
- package/docs/api/player.errorscreen.attributes.md +0 -17
- package/docs/api/player.errorscreen.container.md +0 -14
- package/docs/api/player.errorscreen.name.md +0 -14
- package/docs/api/player.errorscreen.template.md +0 -14
- package/docs/api/player.multicamera.getcameraslist.md +0 -18
- package/docs/api/player.multicamera.getcurrentcamera.md +0 -18
package/dist/plugins/index.js
CHANGED
|
@@ -32796,9 +32796,6 @@ const gearHdIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\
|
|
|
32796
32796
|
/* eslint-disable */
|
|
32797
32797
|
// Kibo is released under the MIT License. Copyright (c) 2013 marquete.
|
|
32798
32798
|
// see https://github.com/marquete/kibo
|
|
32799
|
-
/**
|
|
32800
|
-
* @internal
|
|
32801
|
-
*/
|
|
32802
32799
|
class Kibo {
|
|
32803
32800
|
element;
|
|
32804
32801
|
lastKeyCode = -1;
|
|
@@ -33096,7 +33093,7 @@ function orderByOrderPattern(arr, order) {
|
|
|
33096
33093
|
return [...ordered, ...rest];
|
|
33097
33094
|
}
|
|
33098
33095
|
/**
|
|
33099
|
-
*
|
|
33096
|
+
* PLUGIN that provides a foundation for developing custom media controls UI.
|
|
33100
33097
|
* @beta
|
|
33101
33098
|
* @remarks
|
|
33102
33099
|
* The methods exposed are to be used by the other plugins that extend the media control UI.
|
|
@@ -33178,14 +33175,14 @@ class MediaControl extends UICorePlugin {
|
|
|
33178
33175
|
}
|
|
33179
33176
|
/**
|
|
33180
33177
|
* @internal
|
|
33181
|
-
* @deprecated
|
|
33178
|
+
* @deprecated Use core.activeContainer directly
|
|
33182
33179
|
*/
|
|
33183
33180
|
get container() {
|
|
33184
33181
|
return this.core.activeContainer;
|
|
33185
33182
|
}
|
|
33186
33183
|
/**
|
|
33187
33184
|
* @internal
|
|
33188
|
-
* @deprecated
|
|
33185
|
+
* @deprecated Use core.activePlayback directly
|
|
33189
33186
|
*/
|
|
33190
33187
|
get playback() {
|
|
33191
33188
|
return this.core.activePlayback;
|
|
@@ -35923,7 +35920,7 @@ class Speedtest {
|
|
|
35923
35920
|
this._state = 1;
|
|
35924
35921
|
}
|
|
35925
35922
|
if (this._state !== 1) {
|
|
35926
|
-
throw
|
|
35923
|
+
throw "You can't add a server after server selection";
|
|
35927
35924
|
}
|
|
35928
35925
|
this._settings.mpot = true;
|
|
35929
35926
|
this._serverList.push(server);
|
|
@@ -35942,7 +35939,7 @@ class Speedtest {
|
|
|
35942
35939
|
setSelectedServer(server) {
|
|
35943
35940
|
this._checkServerDefinition(server);
|
|
35944
35941
|
if (this._state === 3) {
|
|
35945
|
-
throw
|
|
35942
|
+
throw "You can't select a server while the test is running";
|
|
35946
35943
|
}
|
|
35947
35944
|
this._selectedServer = server;
|
|
35948
35945
|
this._state = 2;
|
|
@@ -35956,7 +35953,7 @@ class Speedtest {
|
|
|
35956
35953
|
throw 'Server already selected';
|
|
35957
35954
|
}
|
|
35958
35955
|
if (this._state >= 3) {
|
|
35959
|
-
throw
|
|
35956
|
+
throw "You can't select a server while the test is running";
|
|
35960
35957
|
}
|
|
35961
35958
|
}
|
|
35962
35959
|
if (this._selectServerCalled) {
|
|
@@ -35966,7 +35963,7 @@ class Speedtest {
|
|
|
35966
35963
|
this._selectServerCalled = true;
|
|
35967
35964
|
}
|
|
35968
35965
|
/*this function goes through a list of servers. For each server, the ping is measured, then the server with the function result is called with the best server, or null if all the servers were down.
|
|
35969
|
-
|
|
35966
|
+
*/
|
|
35970
35967
|
const select = (serverList, result) => {
|
|
35971
35968
|
//pings the specified URL, then calls the function result. Result will receive a parameter which is either the time it took to ping the URL, or -1 if something went wrong.
|
|
35972
35969
|
const PING_TIMEOUT = 2000;
|
|
@@ -36064,7 +36061,7 @@ class Speedtest {
|
|
|
36064
36061
|
}
|
|
36065
36062
|
result(bestServer);
|
|
36066
36063
|
};
|
|
36067
|
-
serverList.forEach(server => {
|
|
36064
|
+
serverList.forEach((server) => {
|
|
36068
36065
|
checkServer(server, done);
|
|
36069
36066
|
});
|
|
36070
36067
|
if (i === serverList.length) {
|
|
@@ -36153,12 +36150,12 @@ class Speedtest {
|
|
|
36153
36150
|
if (typeof this._originalExtra !== 'undefined') {
|
|
36154
36151
|
this._settings.telemetry_extra = JSON.stringify({
|
|
36155
36152
|
server: this._selectedServer.name,
|
|
36156
|
-
extra: this._originalExtra
|
|
36153
|
+
extra: this._originalExtra,
|
|
36157
36154
|
});
|
|
36158
36155
|
}
|
|
36159
36156
|
else {
|
|
36160
36157
|
this._settings.telemetry_extra = JSON.stringify({
|
|
36161
|
-
server: this._selectedServer.name
|
|
36158
|
+
server: this._selectedServer.name,
|
|
36162
36159
|
});
|
|
36163
36160
|
}
|
|
36164
36161
|
}
|
|
@@ -36168,7 +36165,7 @@ class Speedtest {
|
|
|
36168
36165
|
}
|
|
36169
36166
|
abort() {
|
|
36170
36167
|
if (this._state < 3) {
|
|
36171
|
-
throw new Error(
|
|
36168
|
+
throw new Error("You cannot abort a test that's not started yet");
|
|
36172
36169
|
}
|
|
36173
36170
|
if (this._state < 4) {
|
|
36174
36171
|
this.worker?.postMessage('abort');
|
|
@@ -36413,7 +36410,7 @@ const drawSummary = (customMetrics, vodContainer, liveContainer) => {
|
|
|
36413
36410
|
};
|
|
36414
36411
|
// const T = 'plugins.clappr_nerd_stats';
|
|
36415
36412
|
/**
|
|
36416
|
-
*
|
|
36413
|
+
* PLUGIN that displays useful network-related statistics.
|
|
36417
36414
|
* @beta
|
|
36418
36415
|
*
|
|
36419
36416
|
* @remarks
|
|
@@ -36669,7 +36666,7 @@ function newMetrics() {
|
|
|
36669
36666
|
// TODO: fix
|
|
36670
36667
|
const updateMetrics = () => { };
|
|
36671
36668
|
/**
|
|
36672
|
-
*
|
|
36669
|
+
* PLIGIN that collects useful statistics about playback performance.
|
|
36673
36670
|
* @beta
|
|
36674
36671
|
* @remarks
|
|
36675
36672
|
* This plugin does not render anything and is supposed to be extended or used together with other plugins that actually render something.
|
|
@@ -36732,9 +36729,10 @@ class ClapprStats extends ContainerPlugin {
|
|
|
36732
36729
|
}
|
|
36733
36730
|
/**
|
|
36734
36731
|
* Registers a callback to receive the metrics.
|
|
36735
|
-
* @param updateMetricsFn
|
|
36732
|
+
* @param updateMetricsFn - The callback to receive the metrics
|
|
36736
36733
|
*/
|
|
36737
36734
|
setUpdateMetrics(updateMetricsFn) {
|
|
36735
|
+
// TODO use events instead
|
|
36738
36736
|
this.updateFn = updateMetricsFn;
|
|
36739
36737
|
}
|
|
36740
36738
|
_defaultReport(metrics) {
|
|
@@ -36782,7 +36780,7 @@ class ClapprStats extends ContainerPlugin {
|
|
|
36782
36780
|
}
|
|
36783
36781
|
/**
|
|
36784
36782
|
* Returns the collected metrics.
|
|
36785
|
-
* @returns
|
|
36783
|
+
* @returns Currently collected metrics
|
|
36786
36784
|
*/
|
|
36787
36785
|
exportMetrics() {
|
|
36788
36786
|
return structuredClone(this.metrics);
|
|
@@ -37092,7 +37090,7 @@ class ClickToPause extends ContainerPlugin {
|
|
|
37092
37090
|
}
|
|
37093
37091
|
|
|
37094
37092
|
/**
|
|
37095
|
-
*
|
|
37093
|
+
* PLUGIN that shows text over the seekbar to indicate the current clip.
|
|
37096
37094
|
* @beta
|
|
37097
37095
|
* @remarks
|
|
37098
37096
|
* Depends on:
|
|
@@ -37248,7 +37246,7 @@ class ClipsPlugin extends UICorePlugin {
|
|
|
37248
37246
|
|
|
37249
37247
|
const templateHtml$1 = "<ul class=\"context-menu-list\">\n <% if(options) { %>\n <% for (var i = 0; i < options.length; i++) { %>\n <li class=\"context-menu-list-item <%= options[i].class %>\"\n data-<%= options[i].name %>><%= options[i].label %></li>\n <% } %>\n <% } %>\n</ul>\n";
|
|
37250
37248
|
|
|
37251
|
-
var version$1 = "2.20.
|
|
37249
|
+
var version$1 = "2.20.9";
|
|
37252
37250
|
|
|
37253
37251
|
var packages = {
|
|
37254
37252
|
"node_modules/@clappr/core": {
|
|
@@ -37385,7 +37383,8 @@ const dvrHTML = "<div class=\"live-info\"><%= live %></div>\n<button type=\"butt
|
|
|
37385
37383
|
|
|
37386
37384
|
const T$b = 'plugins.dvr_controls';
|
|
37387
37385
|
/**
|
|
37388
|
-
*
|
|
37386
|
+
* PLUGIN that adds the DVR controls to the media control UI
|
|
37387
|
+
*
|
|
37389
37388
|
* @beta
|
|
37390
37389
|
*
|
|
37391
37390
|
* @remarks
|
|
@@ -37393,7 +37392,7 @@ const T$b = 'plugins.dvr_controls';
|
|
|
37393
37392
|
*
|
|
37394
37393
|
* - {@link MediaControl}
|
|
37395
37394
|
*
|
|
37396
|
-
* The plugin renders
|
|
37395
|
+
* The plugin renders live stream indicator and the DVR seek bar, if DVR is enabled, in the media control UI.
|
|
37397
37396
|
*/
|
|
37398
37397
|
class DvrControls extends UICorePlugin {
|
|
37399
37398
|
static template = tmpl(dvrHTML);
|
|
@@ -37517,7 +37516,7 @@ const templateHtml = "<div class=\"player-error-screen__content\" data-error-scr
|
|
|
37517
37516
|
|
|
37518
37517
|
const T$a = 'plugins.error_screen';
|
|
37519
37518
|
/**
|
|
37520
|
-
*
|
|
37519
|
+
* PLUGIN that displays errors nicely in the overlay on top of the player.
|
|
37521
37520
|
* @beta
|
|
37522
37521
|
*/
|
|
37523
37522
|
class ErrorScreen extends UICorePlugin {
|
|
@@ -37862,7 +37861,7 @@ const checkIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"
|
|
|
37862
37861
|
const T$9 = 'plugins.level_selector';
|
|
37863
37862
|
const VERSION$4 = '2.19.4';
|
|
37864
37863
|
/**
|
|
37865
|
-
*
|
|
37864
|
+
* PLUGIN that provides a UI to select the desired quality level of the playback.
|
|
37866
37865
|
* @beta
|
|
37867
37866
|
*
|
|
37868
37867
|
* @remarks
|
|
@@ -37872,9 +37871,7 @@ const VERSION$4 = '2.19.4';
|
|
|
37872
37871
|
*
|
|
37873
37872
|
* - {@link BottomGear}
|
|
37874
37873
|
*
|
|
37875
|
-
* The plugin is rendered as an item in the gear menu.
|
|
37876
|
-
*
|
|
37877
|
-
* When clicked, it shows a list of quality levels to choose from.
|
|
37874
|
+
* The plugin is rendered as an item in the gear menu, which, when clicked, shows a list of quality levels to choose from.
|
|
37878
37875
|
*
|
|
37879
37876
|
* Configuration options - {@link LevelSelectorPluginSettings}
|
|
37880
37877
|
*
|
|
@@ -38374,7 +38371,7 @@ const streamsWhiteNightsIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:
|
|
|
38374
38371
|
const VERSION$3 = '0.0.1';
|
|
38375
38372
|
const T$8 = 'plugins.multicamera';
|
|
38376
38373
|
/**
|
|
38377
|
-
*
|
|
38374
|
+
* PLUGIN that adds support for loading multiple streams and switching between them using the media control UI.
|
|
38378
38375
|
* @beta
|
|
38379
38376
|
*/
|
|
38380
38377
|
class MultiCamera extends UICorePlugin {
|
|
@@ -39031,7 +39028,7 @@ const posterHTML = "<div class=\"play-wrapper\" data-poster></div>\n";
|
|
|
39031
39028
|
//Copyright 2014 Globo.com Player authors. All rights reserved.
|
|
39032
39029
|
// Use of this source code is governed by a BSD-style
|
|
39033
39030
|
// license that can be found in the LICENSE file.
|
|
39034
|
-
const T$5 = 'plugins.
|
|
39031
|
+
const T$5 = 'plugins.poster';
|
|
39035
39032
|
/**
|
|
39036
39033
|
* Displays a poster image in the background and a big play button on top when playback is stopped
|
|
39037
39034
|
* @beta
|
|
@@ -39069,7 +39066,7 @@ class Poster extends UIContainerPlugin {
|
|
|
39069
39066
|
* @internal
|
|
39070
39067
|
*/
|
|
39071
39068
|
get name() {
|
|
39072
|
-
return '
|
|
39069
|
+
return 'poster';
|
|
39073
39070
|
}
|
|
39074
39071
|
/**
|
|
39075
39072
|
* @internal
|
|
@@ -39465,7 +39462,8 @@ const fbIcon = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg width=\"32px\"
|
|
|
39465
39462
|
const twIcon = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg width=\"32px\" height=\"32px\" viewBox=\"0 0 32 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <!-- Generator: Sketch 49 (51002) - http://www.bohemiancoding.com/sketch -->\n <title>twitter</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id=\"twitter\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g fill-rule=\"nonzero\" id=\"Shape\">\n <path d=\"M32,30 C32,31.104 31.104,32 30,32 L2,32 C0.896,32 0,31.104 0,30 L0,2 C0,0.896 0.896,0 2,0 L30,0 C31.104,0 32,0.896 32,2 L32,30 Z\" fill=\"#55ACEE\"></path>\n <path class=\"icon-hover\" d=\"M25.987,9.894 C25.251,10.216 24.462,10.431 23.63,10.529 C24.48,10.031 25.13,9.24 25.436,8.298 C24.644,8.759 23.766,9.095 22.831,9.276 C22.083,8.491 21.017,8 19.838,8 C17.572,8 15.738,9.807 15.738,12.038 C15.738,12.352 15.774,12.663 15.842,12.96 C12.435,12.788 9.413,11.181 7.39,8.739 C7.038,9.336 6.834,10.029 6.834,10.771 C6.834,12.17 7.56,13.406 8.658,14.131 C7.987,14.109 7.354,13.928 6.802,13.625 C6.801,13.642 6.801,13.659 6.801,13.677 C6.801,15.632 8.215,17.266 10.091,17.637 C9.748,17.727 9.386,17.779 9.01,17.779 C8.746,17.779 8.49,17.755 8.24,17.707 C8.76,19.311 10.274,20.478 12.068,20.512 C10.67,21.594 8.9,22.24 6.979,22.24 C6.649,22.24 6.321,22.222 6,22.184 C7.814,23.329 9.971,23.997 12.287,23.997 C19.828,23.997 23.953,17.843 23.953,12.506 C23.953,12.333 23.948,12.156 23.941,11.985 C24.741,11.414 25.438,10.703 25.987,9.894 Z\" fill=\"#FFFFFF\"></path>\n </g>\n </g>\n</svg>";
|
|
39466
39463
|
|
|
39467
39464
|
/**
|
|
39468
|
-
*
|
|
39465
|
+
* PLUGIN that adds a share button to the media control UI.
|
|
39466
|
+
* @beta
|
|
39469
39467
|
*/
|
|
39470
39468
|
class Share extends UICorePlugin {
|
|
39471
39469
|
hide = false;
|
|
@@ -39585,7 +39583,8 @@ class Share extends UICorePlugin {
|
|
|
39585
39583
|
const pluginHtml$1 = "<div class=\"skip-container\" data-skip-container>\n <div class=\"skip-item\" data-skip-left>\n </div>\n <div class=\"skip-item\" data-skip-mid>\n </div>\n <div class=\"skip-item\" data-skip-right>\n </div>\n</div>\n";
|
|
39586
39584
|
|
|
39587
39585
|
/**
|
|
39588
|
-
*
|
|
39586
|
+
* PLUGIN that adds skip controls to the media control UI.
|
|
39587
|
+
* @beta
|
|
39589
39588
|
*/
|
|
39590
39589
|
class SkipTime extends UICorePlugin {
|
|
39591
39590
|
get name() {
|
|
@@ -39698,6 +39697,7 @@ const spinnerHTML = "<div data-bounce1></div>\n<div data-bounce2></div>\n<div da
|
|
|
39698
39697
|
const T$4 = 'plugins.spinner';
|
|
39699
39698
|
/**
|
|
39700
39699
|
* Custom events emitted by the plugin
|
|
39700
|
+
* @beta
|
|
39701
39701
|
*/
|
|
39702
39702
|
var SpinnerEvents;
|
|
39703
39703
|
(function (SpinnerEvents) {
|
|
@@ -39708,10 +39708,12 @@ var SpinnerEvents;
|
|
|
39708
39708
|
SpinnerEvents["SYNC"] = "plugins:spinner:sync";
|
|
39709
39709
|
})(SpinnerEvents || (SpinnerEvents = {}));
|
|
39710
39710
|
/**
|
|
39711
|
-
*
|
|
39711
|
+
* PLUGIN that shows a pending operation indicator when playback is buffering or in a similar state
|
|
39712
39712
|
* @beta
|
|
39713
39713
|
* @remarks
|
|
39714
|
-
*
|
|
39714
|
+
* Events emitted- {@link SpinnerEvents}
|
|
39715
|
+
* Other plugins can use {@link SpinnerThreeBounce.show | show} and {@link SpinnerThreeBounce.hide | hide} methods to
|
|
39716
|
+
* implement custom pending/progress indication scenarios.
|
|
39715
39717
|
*/
|
|
39716
39718
|
class SpinnerThreeBounce extends UIContainerPlugin {
|
|
39717
39719
|
userShown = false;
|
|
@@ -39789,7 +39791,7 @@ class SpinnerThreeBounce extends UIContainerPlugin {
|
|
|
39789
39791
|
/**
|
|
39790
39792
|
* Shows the spinner.
|
|
39791
39793
|
*
|
|
39792
|
-
* When called, the spinner will not hide (due to its built-in logic) until {@link SpinnerThreeBounce
|
|
39794
|
+
* When called, the spinner will not hide (due to its built-in logic) until {@link SpinnerThreeBounce.hide} is called
|
|
39793
39795
|
*/
|
|
39794
39796
|
show(delay = 300) {
|
|
39795
39797
|
this.userShown = true;
|
|
@@ -39966,7 +39968,7 @@ class SourceController extends CorePlugin {
|
|
|
39966
39968
|
}
|
|
39967
39969
|
this.bindContainerEventListeners();
|
|
39968
39970
|
if (this.active) {
|
|
39969
|
-
this.core.activeContainer?.getPlugin('
|
|
39971
|
+
this.core.activeContainer?.getPlugin('poster')?.disable();
|
|
39970
39972
|
spinner?.show(0);
|
|
39971
39973
|
}
|
|
39972
39974
|
}
|
|
@@ -39987,7 +39989,7 @@ class SourceController extends CorePlugin {
|
|
|
39987
39989
|
}
|
|
39988
39990
|
switch (error.code) {
|
|
39989
39991
|
case PlaybackErrorCode.MediaSourceUnavailable:
|
|
39990
|
-
this.core.activeContainer?.getPlugin('
|
|
39992
|
+
this.core.activeContainer?.getPlugin('poster')?.disable();
|
|
39991
39993
|
this.retryPlayback();
|
|
39992
39994
|
break;
|
|
39993
39995
|
}
|
|
@@ -39999,7 +40001,7 @@ class SourceController extends CorePlugin {
|
|
|
39999
40001
|
});
|
|
40000
40002
|
if (this.active) {
|
|
40001
40003
|
this.reset();
|
|
40002
|
-
this.core.activeContainer?.getPlugin('
|
|
40004
|
+
this.core.activeContainer?.getPlugin('poster')?.enable();
|
|
40003
40005
|
this.core.activeContainer?.getPlugin('spinner')?.hide();
|
|
40004
40006
|
}
|
|
40005
40007
|
});
|
|
@@ -40430,7 +40432,7 @@ var TelemetryEvent;
|
|
|
40430
40432
|
TelemetryEvent[TelemetryEvent["Stall"] = 4] = "Stall";
|
|
40431
40433
|
})(TelemetryEvent || (TelemetryEvent = {}));
|
|
40432
40434
|
/**
|
|
40433
|
-
*
|
|
40435
|
+
* PLUGIN that collects and reports the performance statistics.
|
|
40434
40436
|
* @beta
|
|
40435
40437
|
* @remarks
|
|
40436
40438
|
* This plugin is experimental and its API is likely to change.
|
|
@@ -41249,4 +41251,4 @@ class VolumeFade extends UICorePlugin {
|
|
|
41249
41251
|
}
|
|
41250
41252
|
}
|
|
41251
41253
|
|
|
41252
|
-
export { AudioSelector, BigMuteButton, BottomGear, ClapprNerdStats, ClapprStats, ClickToPause, ClipsPlugin, ContextMenu, DvrControls, ErrorScreen, Favicon, GoogleAnalytics,
|
|
41254
|
+
export { AudioSelector, BigMuteButton, BottomGear, ClapprNerdStats, ClapprStats, ClickToPause, ClipsPlugin, ContextMenu, DvrControls, ErrorScreen, Favicon, GoogleAnalytics, LevelSelector, Logo, MediaControl, MediaControlEvents, MultiCamera, PictureInPicture, PlaybackRate, Poster, SeekTime, Share, SkipTime, SourceController, SpinnerEvents, SpinnerThreeBounce, Subtitles, Telemetry, TelemetryEvent, Thumbnails, VolumeFade, VolumeFadeEvents };
|
|
@@ -55,6 +55,20 @@ Description
|
|
|
55
55
|
**_(BETA)_**
|
|
56
56
|
|
|
57
57
|
|
|
58
|
+
</td></tr>
|
|
59
|
+
<tr><td>
|
|
60
|
+
|
|
61
|
+
[refresh()](./player.bottomgear.refresh.md)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
</td><td>
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
</td><td>
|
|
68
|
+
|
|
69
|
+
**_(BETA)_** Re-renders the gear menu. It fires the [MEDIACONTROL\_GEAR\_RENDERED](./player.mediacontrolevents.md) event, which the plugins that attach to the gear menu can listen to to re-render themselves.
|
|
70
|
+
|
|
71
|
+
|
|
58
72
|
</td></tr>
|
|
59
73
|
<tr><td>
|
|
60
74
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [BottomGear](./player.bottomgear.md) > [refresh](./player.bottomgear.refresh.md)
|
|
4
|
+
|
|
5
|
+
## BottomGear.refresh() method
|
|
6
|
+
|
|
7
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
+
>
|
|
9
|
+
|
|
10
|
+
Re-renders the gear menu. It fires the [MEDIACONTROL\_GEAR\_RENDERED](./player.mediacontrolevents.md) event, which the plugins that attach to the gear menu can listen to to re-render themselves.
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
refresh(): void;
|
|
16
|
+
```
|
|
17
|
+
**Returns:**
|
|
18
|
+
|
|
19
|
+
void
|
|
20
|
+
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
8
|
>
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
PLUGIN that displays useful network-related statistics.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
8
|
>
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
PLIGIN that collects useful statistics about playback performance.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
@@ -85,20 +85,6 @@ Description
|
|
|
85
85
|
**_(BETA)_** Returns the collected metrics.
|
|
86
86
|
|
|
87
87
|
|
|
88
|
-
</td></tr>
|
|
89
|
-
<tr><td>
|
|
90
|
-
|
|
91
|
-
[onBitrate(newBitrate)](./player.clapprstats.onbitrate.md)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
</td><td>
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
</td><td>
|
|
98
|
-
|
|
99
|
-
**_(BETA)_**
|
|
100
|
-
|
|
101
|
-
|
|
102
88
|
</td></tr>
|
|
103
89
|
<tr><td>
|
|
104
90
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
8
|
>
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
PLUGIN that shows text over the seekbar to indicate the current clip.
|
|
11
11
|
|
|
12
12
|
**Signature:**
|
|
13
13
|
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
## ClipsPluginSettings interface
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
+
>
|
|
9
|
+
|
|
10
|
+
Configuration options for the [clips](./player.clipsplugin.md) plugin.
|
|
8
11
|
|
|
9
12
|
**Signature:**
|
|
10
13
|
|
|
@@ -50,7 +53,7 @@ string
|
|
|
50
53
|
|
|
51
54
|
</td><td>
|
|
52
55
|
|
|
53
|
-
The text to display over the seekbar.
|
|
56
|
+
**_(BETA)_** The text to display over the seekbar.
|
|
54
57
|
|
|
55
58
|
|
|
56
59
|
</td></tr>
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
## ClipsPluginSettings.text property
|
|
6
6
|
|
|
7
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
+
>
|
|
9
|
+
|
|
7
10
|
The text to display over the seekbar.
|
|
8
11
|
|
|
9
12
|
**Signature:**
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [ContainerPluginConstructor](./player.containerpluginconstructor.md)
|
|
4
|
+
|
|
5
|
+
## ContainerPluginConstructor type
|
|
6
|
+
|
|
7
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
+
>
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
**Signature:**
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
export type ContainerPluginConstructor = ((container: unknown) => PlayerPlugin) & {
|
|
15
|
+
type: 'container';
|
|
16
|
+
};
|
|
17
|
+
```
|
|
18
|
+
**References:** [PlayerPlugin](./player.playerplugin.md)
|
|
19
|
+
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
2
|
|
|
3
|
-
[Home](./index.md) > [@gcorevideo/player](./player.md) > [
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [CorePluginConstructor](./player.corepluginconstructor.md)
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## CorePluginConstructor type
|
|
6
6
|
|
|
7
7
|
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
8
|
>
|
|
9
9
|
|
|
10
|
+
|
|
10
11
|
**Signature:**
|
|
11
12
|
|
|
12
13
|
```typescript
|
|
13
|
-
|
|
14
|
+
export type CorePluginConstructor = ((core: unknown) => PlayerPlugin) & {
|
|
15
|
+
type: 'core';
|
|
16
|
+
};
|
|
14
17
|
```
|
|
15
|
-
**
|
|
16
|
-
|
|
17
|
-
this
|
|
18
|
+
**References:** [PlayerPlugin](./player.playerplugin.md)
|
|
18
19
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@gcorevideo/player](./player.md) > [ErrorDesc](./player.errordesc.md)
|
|
4
|
+
|
|
5
|
+
## ErrorDesc type
|
|
6
|
+
|
|
7
|
+
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
|
8
|
+
>
|
|
9
|
+
|
|
10
|
+
An error fired in the player and plugins code to be handled in the UI
|
|
11
|
+
|
|
12
|
+
**Signature:**
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
export type ErrorDesc = {
|
|
16
|
+
description: string;
|
|
17
|
+
level: string;
|
|
18
|
+
code: string;
|
|
19
|
+
origin: string;
|
|
20
|
+
scope: string;
|
|
21
|
+
raw?: string;
|
|
22
|
+
UI?: {
|
|
23
|
+
icon?: string;
|
|
24
|
+
title: string;
|
|
25
|
+
message: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
```
|