@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.
Files changed (195) hide show
  1. package/dist/core.js +18 -13
  2. package/dist/index.css +1541 -1541
  3. package/dist/index.js +59 -52
  4. package/dist/player.d.ts +178 -126
  5. package/dist/plugins/index.css +665 -665
  6. package/dist/plugins/index.js +42 -40
  7. package/docs/api/player.bottomgear.md +14 -0
  8. package/docs/api/player.bottomgear.refresh.md +20 -0
  9. package/docs/api/player.clapprnerdstats.md +1 -1
  10. package/docs/api/player.clapprstats.exportmetrics.md +1 -1
  11. package/docs/api/player.clapprstats.md +1 -15
  12. package/docs/api/player.clapprstats.setupdatemetrics.md +2 -0
  13. package/docs/api/player.clipsplugin.md +1 -1
  14. package/docs/api/player.clipspluginsettings.md +5 -2
  15. package/docs/api/player.clipspluginsettings.text.md +3 -0
  16. package/docs/api/player.containerpluginconstructor.md +19 -0
  17. package/docs/api/{player.errorscreen.render.md → player.corepluginconstructor.md} +7 -6
  18. package/docs/api/player.errordesc.md +28 -0
  19. package/docs/api/player.errorscreen.md +1 -220
  20. package/docs/api/{player.errorscreen.bindevents.md → player.errorscreenpluginsettings.md} +7 -7
  21. package/docs/api/player.levelselector.md +3 -9
  22. package/docs/api/player.levelselectorpluginsettings.labels.md +24 -0
  23. package/docs/api/player.levelselectorpluginsettings.md +79 -0
  24. package/docs/api/player.levelselectorpluginsettings.restrictresolution.md +16 -0
  25. package/docs/api/player.md +93 -16
  26. package/docs/api/{player.errorscreen.hide.md → player.mediacontrol.currentseekpos.md} +3 -7
  27. package/docs/api/player.mediacontrol.disable.md +1 -1
  28. package/docs/api/player.mediacontrol.md +23 -2
  29. package/docs/api/{player.gearevents.md → player.mediacontrolevents.md} +4 -4
  30. package/docs/api/player.multicamera.md +1 -29
  31. package/docs/api/player.playbackerror.md +19 -0
  32. package/docs/api/{player.errorscreen.supportedversion.md → player.playbackerror.ui.md} +7 -4
  33. package/docs/api/player.playbackerrorcode.md +3 -3
  34. package/docs/api/{player.errorscreen.show.md → player.playbackrate._constructor_.md} +7 -11
  35. package/docs/api/player.playbackrate.md +35 -2
  36. package/docs/api/player.player.registerplugin.md +2 -2
  37. package/docs/api/player.player.unregisterplugin.md +2 -2
  38. package/docs/api/player.playerpluginconstructor.md +17 -0
  39. package/docs/api/player.share.attributes.md +3 -0
  40. package/docs/api/player.share.bindevents.md +3 -0
  41. package/docs/api/player.share.canshowshare.md +3 -0
  42. package/docs/api/player.share.events.md +3 -0
  43. package/docs/api/player.share.hideshare.md +3 -0
  44. package/docs/api/player.share.initializeicons.md +3 -0
  45. package/docs/api/player.share.md +40 -1
  46. package/docs/api/player.share.name.md +3 -0
  47. package/docs/api/player.share.onshareembedclick.md +3 -0
  48. package/docs/api/player.share.onsharefb.md +3 -0
  49. package/docs/api/player.share.onsharehide.md +3 -0
  50. package/docs/api/player.share.onsharelinkclick.md +3 -0
  51. package/docs/api/player.share.onshareshow.md +3 -0
  52. package/docs/api/player.share.onsharetw.md +3 -0
  53. package/docs/api/player.share.render.md +3 -0
  54. package/docs/api/player.share.showshare.md +3 -0
  55. package/docs/api/player.share.supportedversion.md +3 -0
  56. package/docs/api/player.share.template.md +3 -0
  57. package/docs/api/player.share.unbindevents.md +3 -0
  58. package/docs/api/player.skiptime.attributes.md +3 -0
  59. package/docs/api/player.skiptime.bindevents.md +3 -0
  60. package/docs/api/player.skiptime.container.md +3 -0
  61. package/docs/api/player.skiptime.events.md +3 -0
  62. package/docs/api/player.skiptime.handlerewindclicks.md +3 -0
  63. package/docs/api/player.skiptime.md +30 -1
  64. package/docs/api/player.skiptime.name.md +3 -0
  65. package/docs/api/player.skiptime.render.md +3 -0
  66. package/docs/api/player.skiptime.setback.md +3 -0
  67. package/docs/api/player.skiptime.setforward.md +3 -0
  68. package/docs/api/player.skiptime.setmidclick.md +3 -0
  69. package/docs/api/player.skiptime.supportedversion.md +3 -0
  70. package/docs/api/player.skiptime.template.md +3 -0
  71. package/docs/api/player.skiptime.togglefullscreen.md +3 -0
  72. package/docs/api/player.spinnerevents.md +4 -1
  73. package/docs/api/player.spinnerthreebounce.hide.md +1 -1
  74. package/docs/api/player.spinnerthreebounce.md +7 -5
  75. package/docs/api/player.spinnerthreebounce.show.md +40 -2
  76. package/docs/api/player.telemetry.md +1 -1
  77. package/docs/api/player.telemetrypluginsettings.md +1 -1
  78. package/docs/api/{player.errorscreen.unbindevents.md → player.telemetrysendfn.md} +6 -6
  79. package/lib/Player.d.ts +13 -4
  80. package/lib/Player.d.ts.map +1 -1
  81. package/lib/Player.js +17 -12
  82. package/lib/index.core.d.ts +0 -1
  83. package/lib/index.core.d.ts.map +1 -1
  84. package/lib/index.core.js +0 -1
  85. package/lib/index.plugins.d.ts +0 -1
  86. package/lib/index.plugins.d.ts.map +1 -1
  87. package/lib/index.plugins.js +0 -1
  88. package/lib/playback/hls-playback/HlsPlayback.d.ts.map +1 -1
  89. package/lib/playback/hls-playback/HlsPlayback.js +1 -1
  90. package/lib/plugins/bottom-gear/BottomGear.d.ts +1 -1
  91. package/lib/plugins/bottom-gear/BottomGear.d.ts.map +1 -1
  92. package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.d.ts +1 -1
  93. package/lib/plugins/clappr-nerd-stats/ClapprNerdStats.js +1 -1
  94. package/lib/plugins/clappr-nerd-stats/speedtest/Speedtest.d.ts.map +1 -1
  95. package/lib/plugins/clappr-nerd-stats/speedtest/Speedtest.js +8 -8
  96. package/lib/plugins/clappr-stats/ClapprStats.d.ts +4 -5
  97. package/lib/plugins/clappr-stats/ClapprStats.d.ts.map +1 -1
  98. package/lib/plugins/clappr-stats/ClapprStats.js +4 -3
  99. package/lib/plugins/clips/Clips.d.ts +3 -2
  100. package/lib/plugins/clips/Clips.d.ts.map +1 -1
  101. package/lib/plugins/clips/Clips.js +1 -1
  102. package/lib/plugins/context-menu/ContextMenu.d.ts.map +1 -1
  103. package/lib/plugins/dvr-controls/DvrControls.d.ts +3 -2
  104. package/lib/plugins/dvr-controls/DvrControls.d.ts.map +1 -1
  105. package/lib/plugins/dvr-controls/DvrControls.js +3 -2
  106. package/lib/plugins/error-screen/ErrorScreen.d.ts +12 -1
  107. package/lib/plugins/error-screen/ErrorScreen.d.ts.map +1 -1
  108. package/lib/plugins/error-screen/ErrorScreen.js +1 -1
  109. package/lib/plugins/index.d.ts +0 -1
  110. package/lib/plugins/index.d.ts.map +1 -1
  111. package/lib/plugins/index.js +0 -1
  112. package/lib/plugins/kibo/index.d.ts +0 -3
  113. package/lib/plugins/kibo/index.d.ts.map +1 -1
  114. package/lib/plugins/kibo/index.js +0 -3
  115. package/lib/plugins/level-selector/LevelSelector.d.ts +6 -4
  116. package/lib/plugins/level-selector/LevelSelector.d.ts.map +1 -1
  117. package/lib/plugins/level-selector/LevelSelector.js +2 -4
  118. package/lib/plugins/media-control/MediaControl.d.ts +4 -4
  119. package/lib/plugins/media-control/MediaControl.d.ts.map +1 -1
  120. package/lib/plugins/media-control/MediaControl.js +3 -3
  121. package/lib/plugins/multi-camera/MultiCamera.d.ts +3 -11
  122. package/lib/plugins/multi-camera/MultiCamera.d.ts.map +1 -1
  123. package/lib/plugins/multi-camera/MultiCamera.js +1 -1
  124. package/lib/plugins/poster/Poster.js +2 -2
  125. package/lib/plugins/share/Share.d.ts +2 -1
  126. package/lib/plugins/share/Share.d.ts.map +1 -1
  127. package/lib/plugins/share/Share.js +2 -1
  128. package/lib/plugins/skip-time/SkipTime.d.ts +2 -1
  129. package/lib/plugins/skip-time/SkipTime.d.ts.map +1 -1
  130. package/lib/plugins/skip-time/SkipTime.js +2 -1
  131. package/lib/plugins/source-controller/SourceController.js +3 -3
  132. package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.d.ts +6 -3
  133. package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.d.ts.map +1 -1
  134. package/lib/plugins/spinner-three-bounce/SpinnerThreeBounce.js +6 -3
  135. package/lib/plugins/telemetry/Telemetry.d.ts +2 -3
  136. package/lib/plugins/telemetry/Telemetry.d.ts.map +1 -1
  137. package/lib/plugins/telemetry/Telemetry.js +1 -1
  138. package/lib/plugins/vast-ads/VastAds.d.ts.map +1 -1
  139. package/lib/plugins/vast-ads/VastAds.js +3 -3
  140. package/lib/plugins/vast-ads/roll.d.ts +1 -1
  141. package/lib/plugins/vast-ads/roll.d.ts.map +1 -1
  142. package/lib/plugins/vast-ads/rollmanager.d.ts +1 -1
  143. package/lib/plugins/vast-ads/rollmanager.d.ts.map +1 -1
  144. package/lib/plugins/vast-ads/rollmanager.js +2 -2
  145. package/lib/types.d.ts +21 -5
  146. package/lib/types.d.ts.map +1 -1
  147. package/lib/utils/types.d.ts +0 -6
  148. package/lib/utils/types.d.ts.map +1 -1
  149. package/package.json +1 -1
  150. package/src/Player.ts +18 -16
  151. package/src/index.core.ts +0 -1
  152. package/src/index.plugins.ts +0 -1
  153. package/src/playback/hls-playback/HlsPlayback.ts +7 -11
  154. package/src/plugins/audio-selector/AudioSelector.ts +1 -1
  155. package/src/plugins/big-mute-button/BigMuteButton.ts +1 -1
  156. package/src/plugins/bottom-gear/BottomGear.ts +1 -1
  157. package/src/plugins/clappr-nerd-stats/ClapprNerdStats.ts +2 -2
  158. package/src/plugins/clappr-nerd-stats/speedtest/Speedtest.ts +184 -187
  159. package/src/plugins/clappr-stats/ClapprStats.ts +5 -4
  160. package/src/plugins/clips/Clips.ts +4 -3
  161. package/src/plugins/context-menu/ContextMenu.ts +0 -2
  162. package/src/plugins/dvr-controls/DvrControls.ts +3 -2
  163. package/src/plugins/error-screen/ErrorScreen.ts +12 -1
  164. package/src/plugins/favicon/Favicon.ts +1 -1
  165. package/src/plugins/index.ts +0 -1
  166. package/src/plugins/kibo/index.ts +0 -3
  167. package/src/plugins/level-selector/LevelSelector.ts +7 -5
  168. package/src/plugins/logo/Logo.ts +1 -1
  169. package/src/plugins/media-control/MediaControl.ts +4 -4
  170. package/src/plugins/multi-camera/MultiCamera.ts +4 -4
  171. package/src/plugins/playback-rate/PlaybackRate.ts +1 -1
  172. package/src/plugins/poster/Poster.ts +3 -3
  173. package/src/plugins/seek-time/SeekTime.ts +1 -1
  174. package/src/plugins/share/Share.ts +2 -1
  175. package/src/plugins/skip-time/SkipTime.ts +2 -1
  176. package/src/plugins/source-controller/SourceController.ts +3 -3
  177. package/src/plugins/source-controller/__tests__/SourceController.test.ts +2 -2
  178. package/src/plugins/spinner-three-bounce/SpinnerThreeBounce.ts +6 -3
  179. package/src/plugins/subtitles/Subtitles.ts +1 -1
  180. package/src/plugins/telemetry/Telemetry.ts +2 -2
  181. package/src/plugins/thumbnails/Thumbnails.ts +1 -1
  182. package/src/plugins/vast-ads/VastAds.ts +5 -4
  183. package/src/plugins/vast-ads/roll.ts +2 -1
  184. package/src/plugins/vast-ads/rollmanager.ts +3 -3
  185. package/src/types.ts +24 -5
  186. package/src/utils/types.ts +0 -8
  187. package/temp/player.api.json +540 -576
  188. package/tsconfig.tsbuildinfo +1 -1
  189. package/docs/api/player.clapprstats.onbitrate.md +0 -52
  190. package/docs/api/player.errorscreen.attributes.md +0 -17
  191. package/docs/api/player.errorscreen.container.md +0 -14
  192. package/docs/api/player.errorscreen.name.md +0 -14
  193. package/docs/api/player.errorscreen.template.md +0 -14
  194. package/docs/api/player.multicamera.getcameraslist.md +0 -18
  195. package/docs/api/player.multicamera.getcurrentcamera.md +0 -18
package/dist/index.js CHANGED
@@ -42894,6 +42894,23 @@ class Player {
42894
42894
  }
42895
42895
  Loader.registerPlugin(plugin);
42896
42896
  }
42897
+ /**
42898
+ * Unregisters a plugin registered earlier with {@link Player.registerPlugin}.
42899
+ * @remarks
42900
+ * It can be also used to unregister a built-in default plugin.
42901
+ *
42902
+ * Currently, the plugins that are always registered are:
42903
+ *
42904
+ * - {@link https://github.com/clappr/clappr-core/blob/3126c3a38a6eee9d5aba3918b194e6380fa1178c/src/plugins/strings/strings.js | 'strings'}, which supports internationalization of the player UI
42905
+ *
42906
+ * - {@link https://github.com/clappr/clappr-core/blob/3126c3a38a6eee9d5aba3918b194e6380fa1178c/src/plugins/sources/sources.js | 'sources'}, which lets to specify multiple media sources and selects the first suitable playback module
42907
+ *
42908
+ * @param name - name of the plugin
42909
+ */
42910
+ static unregisterPlugin(name) {
42911
+ Player.corePlugins = Player.corePlugins.filter((p) => p.prototype.name !== name);
42912
+ Loader.unregisterPlugin(name);
42913
+ }
42897
42914
  static getRegisteredPlugins() {
42898
42915
  for (const plugin of Player.corePlugins) {
42899
42916
  Loader.registerPlugin(plugin);
@@ -42901,18 +42918,6 @@ class Player {
42901
42918
  return Loader.registeredPlugins;
42902
42919
  }
42903
42920
  static corePlugins = [];
42904
- /**
42905
- * Unregisters a plugin registered earlier with {@link Player.registerPlugin}.
42906
- * @param plugin - a plugin class
42907
- */
42908
- static unregisterPlugin(plugin) {
42909
- assert.ok(plugin.type === 'core' || plugin.type === 'container', 'Invalid plugin type');
42910
- if (plugin.type === 'core') {
42911
- Player.corePlugins = Player.corePlugins.filter((p) => p !== plugin);
42912
- return;
42913
- }
42914
- Loader.unregisterPlugin(plugin);
42915
- }
42916
42921
  setConfig(config) {
42917
42922
  this.config = $.extend(true, this.config, config);
42918
42923
  }
@@ -43085,7 +43090,7 @@ class Player {
43085
43090
  }
43086
43091
  }
43087
43092
 
43088
- var version$1 = "2.20.8";
43093
+ var version$1 = "2.20.9";
43089
43094
 
43090
43095
  var packages = {
43091
43096
  "node_modules/@clappr/core": {
@@ -43574,9 +43579,6 @@ const gearHdIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\
43574
43579
  /* eslint-disable */
43575
43580
  // Kibo is released under the MIT License. Copyright (c) 2013 marquete.
43576
43581
  // see https://github.com/marquete/kibo
43577
- /**
43578
- * @internal
43579
- */
43580
43582
  class Kibo {
43581
43583
  element;
43582
43584
  lastKeyCode = -1;
@@ -43876,7 +43878,7 @@ function orderByOrderPattern(arr, order) {
43876
43878
  return [...ordered, ...rest];
43877
43879
  }
43878
43880
  /**
43879
- * The MediaControl provides a foundation for developing custom media controls UI.
43881
+ * PLUGIN that provides a foundation for developing custom media controls UI.
43880
43882
  * @beta
43881
43883
  * @remarks
43882
43884
  * The methods exposed are to be used by the other plugins that extend the media control UI.
@@ -43958,14 +43960,14 @@ class MediaControl extends UICorePlugin {
43958
43960
  }
43959
43961
  /**
43960
43962
  * @internal
43961
- * @deprecated
43963
+ * @deprecated Use core.activeContainer directly
43962
43964
  */
43963
43965
  get container() {
43964
43966
  return this.core.activeContainer;
43965
43967
  }
43966
43968
  /**
43967
43969
  * @internal
43968
- * @deprecated
43970
+ * @deprecated Use core.activePlayback directly
43969
43971
  */
43970
43972
  get playback() {
43971
43973
  return this.core.activePlayback;
@@ -46708,7 +46710,7 @@ class Speedtest {
46708
46710
  this._state = 1;
46709
46711
  }
46710
46712
  if (this._state !== 1) {
46711
- throw 'You can\'t add a server after server selection';
46713
+ throw "You can't add a server after server selection";
46712
46714
  }
46713
46715
  this._settings.mpot = true;
46714
46716
  this._serverList.push(server);
@@ -46727,7 +46729,7 @@ class Speedtest {
46727
46729
  setSelectedServer(server) {
46728
46730
  this._checkServerDefinition(server);
46729
46731
  if (this._state === 3) {
46730
- throw 'You can\'t select a server while the test is running';
46732
+ throw "You can't select a server while the test is running";
46731
46733
  }
46732
46734
  this._selectedServer = server;
46733
46735
  this._state = 2;
@@ -46741,7 +46743,7 @@ class Speedtest {
46741
46743
  throw 'Server already selected';
46742
46744
  }
46743
46745
  if (this._state >= 3) {
46744
- throw 'You can\'t select a server while the test is running';
46746
+ throw "You can't select a server while the test is running";
46745
46747
  }
46746
46748
  }
46747
46749
  if (this._selectServerCalled) {
@@ -46751,7 +46753,7 @@ class Speedtest {
46751
46753
  this._selectServerCalled = true;
46752
46754
  }
46753
46755
  /*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.
46754
- */
46756
+ */
46755
46757
  const select = (serverList, result) => {
46756
46758
  //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.
46757
46759
  const PING_TIMEOUT = 2000;
@@ -46853,7 +46855,7 @@ class Speedtest {
46853
46855
  }
46854
46856
  result(bestServer);
46855
46857
  };
46856
- serverList.forEach(server => {
46858
+ serverList.forEach((server) => {
46857
46859
  checkServer(server, done);
46858
46860
  });
46859
46861
  if (i === serverList.length) {
@@ -46946,12 +46948,12 @@ class Speedtest {
46946
46948
  if (typeof this._originalExtra !== 'undefined') {
46947
46949
  this._settings.telemetry_extra = JSON.stringify({
46948
46950
  server: this._selectedServer.name,
46949
- extra: this._originalExtra
46951
+ extra: this._originalExtra,
46950
46952
  });
46951
46953
  }
46952
46954
  else {
46953
46955
  this._settings.telemetry_extra = JSON.stringify({
46954
- server: this._selectedServer.name
46956
+ server: this._selectedServer.name,
46955
46957
  });
46956
46958
  }
46957
46959
  }
@@ -46961,7 +46963,7 @@ class Speedtest {
46961
46963
  }
46962
46964
  abort() {
46963
46965
  if (this._state < 3) {
46964
- throw new Error('You cannot abort a test that\'s not started yet');
46966
+ throw new Error("You cannot abort a test that's not started yet");
46965
46967
  }
46966
46968
  if (this._state < 4) {
46967
46969
  this.worker?.postMessage('abort');
@@ -47206,7 +47208,7 @@ const drawSummary = (customMetrics, vodContainer, liveContainer) => {
47206
47208
  };
47207
47209
  // const T = 'plugins.clappr_nerd_stats';
47208
47210
  /**
47209
- * Displays useful network-related statistics.
47211
+ * PLUGIN that displays useful network-related statistics.
47210
47212
  * @beta
47211
47213
  *
47212
47214
  * @remarks
@@ -47466,7 +47468,7 @@ function newMetrics() {
47466
47468
  // TODO: fix
47467
47469
  const updateMetrics = () => { };
47468
47470
  /**
47469
- * Collects useful statistics about playback performance.
47471
+ * PLIGIN that collects useful statistics about playback performance.
47470
47472
  * @beta
47471
47473
  * @remarks
47472
47474
  * This plugin does not render anything and is supposed to be extended or used together with other plugins that actually render something.
@@ -47529,9 +47531,10 @@ class ClapprStats extends ContainerPlugin {
47529
47531
  }
47530
47532
  /**
47531
47533
  * Registers a callback to receive the metrics.
47532
- * @param updateMetricsFn
47534
+ * @param updateMetricsFn - The callback to receive the metrics
47533
47535
  */
47534
47536
  setUpdateMetrics(updateMetricsFn) {
47537
+ // TODO use events instead
47535
47538
  this.updateFn = updateMetricsFn;
47536
47539
  }
47537
47540
  _defaultReport(metrics) {
@@ -47579,7 +47582,7 @@ class ClapprStats extends ContainerPlugin {
47579
47582
  }
47580
47583
  /**
47581
47584
  * Returns the collected metrics.
47582
- * @returns The collected metrics
47585
+ * @returns Currently collected metrics
47583
47586
  */
47584
47587
  exportMetrics() {
47585
47588
  return structuredClone(this.metrics);
@@ -47898,7 +47901,7 @@ class ClickToPause extends ContainerPlugin {
47898
47901
  }
47899
47902
 
47900
47903
  /**
47901
- * Adds a behavior of showing a text over the seekbar to indicate the current clip.
47904
+ * PLUGIN that shows text over the seekbar to indicate the current clip.
47902
47905
  * @beta
47903
47906
  * @remarks
47904
47907
  * Depends on:
@@ -48167,7 +48170,8 @@ const dvrHTML = "<div class=\"live-info\"><%= live %></div>\n<button type=\"butt
48167
48170
 
48168
48171
  const T$b = 'plugins.dvr_controls';
48169
48172
  /**
48170
- * Adds the DVR controls to the media control UI
48173
+ * PLUGIN that adds the DVR controls to the media control UI
48174
+ *
48171
48175
  * @beta
48172
48176
  *
48173
48177
  * @remarks
@@ -48175,7 +48179,7 @@ const T$b = 'plugins.dvr_controls';
48175
48179
  *
48176
48180
  * - {@link MediaControl}
48177
48181
  *
48178
- * The plugin renders the live stream indicator and the DVR seek bar, if DVR is enabled, in the media control UI.
48182
+ * The plugin renders live stream indicator and the DVR seek bar, if DVR is enabled, in the media control UI.
48179
48183
  */
48180
48184
  class DvrControls extends UICorePlugin {
48181
48185
  static template = tmpl(dvrHTML);
@@ -48302,7 +48306,7 @@ const templateHtml = "<div class=\"player-error-screen__content\" data-error-scr
48302
48306
 
48303
48307
  const T$a = 'plugins.error_screen';
48304
48308
  /**
48305
- * Displays an error nicely in the overlay on top of the player.
48309
+ * PLUGIN that displays errors nicely in the overlay on top of the player.
48306
48310
  * @beta
48307
48311
  */
48308
48312
  class ErrorScreen extends UICorePlugin {
@@ -48650,7 +48654,7 @@ const checkIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"
48650
48654
  const T$9 = 'plugins.level_selector';
48651
48655
  const VERSION$4 = '2.19.4';
48652
48656
  /**
48653
- * A {@link MediaControl | media control} plugin that provides a UI to control the quality level of the playback.
48657
+ * PLUGIN that provides a UI to select the desired quality level of the playback.
48654
48658
  * @beta
48655
48659
  *
48656
48660
  * @remarks
@@ -48660,9 +48664,7 @@ const VERSION$4 = '2.19.4';
48660
48664
  *
48661
48665
  * - {@link BottomGear}
48662
48666
  *
48663
- * The plugin is rendered as an item in the gear menu.
48664
- *
48665
- * When clicked, it shows a list of quality levels to choose from.
48667
+ * The plugin is rendered as an item in the gear menu, which, when clicked, shows a list of quality levels to choose from.
48666
48668
  *
48667
48669
  * Configuration options - {@link LevelSelectorPluginSettings}
48668
48670
  *
@@ -49174,7 +49176,7 @@ const streamsWhiteNightsIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:
49174
49176
  const VERSION$3 = '0.0.1';
49175
49177
  const T$8 = 'plugins.multicamera';
49176
49178
  /**
49177
- * The plugin adds support for loading multiple streams and switching between them using the media control UI.
49179
+ * PLUGIN that adds support for loading multiple streams and switching between them using the media control UI.
49178
49180
  * @beta
49179
49181
  */
49180
49182
  class MultiCamera extends UICorePlugin {
@@ -49841,7 +49843,7 @@ const posterHTML = "<div class=\"play-wrapper\" data-poster></div>\n";
49841
49843
  //Copyright 2014 Globo.com Player authors. All rights reserved.
49842
49844
  // Use of this source code is governed by a BSD-style
49843
49845
  // license that can be found in the LICENSE file.
49844
- const T$5 = 'plugins.poster_custom';
49846
+ const T$5 = 'plugins.poster';
49845
49847
  /**
49846
49848
  * Displays a poster image in the background and a big play button on top when playback is stopped
49847
49849
  * @beta
@@ -49879,7 +49881,7 @@ class Poster extends UIContainerPlugin {
49879
49881
  * @internal
49880
49882
  */
49881
49883
  get name() {
49882
- return 'poster_custom';
49884
+ return 'poster';
49883
49885
  }
49884
49886
  /**
49885
49887
  * @internal
@@ -50280,7 +50282,8 @@ const fbIcon = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg width=\"32px\"
50280
50282
  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>";
50281
50283
 
50282
50284
  /**
50283
- * The plugin adds a share button to the media control UI.
50285
+ * PLUGIN that adds a share button to the media control UI.
50286
+ * @beta
50284
50287
  */
50285
50288
  class Share extends UICorePlugin {
50286
50289
  hide = false;
@@ -50400,7 +50403,8 @@ class Share extends UICorePlugin {
50400
50403
  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";
50401
50404
 
50402
50405
  /**
50403
- * The plugin adds skip controls to the media control UI.
50406
+ * PLUGIN that adds skip controls to the media control UI.
50407
+ * @beta
50404
50408
  */
50405
50409
  class SkipTime extends UICorePlugin {
50406
50410
  get name() {
@@ -50493,6 +50497,7 @@ const spinnerHTML = "<div data-bounce1></div>\n<div data-bounce2></div>\n<div da
50493
50497
  const T$4 = 'plugins.spinner';
50494
50498
  /**
50495
50499
  * Custom events emitted by the plugin
50500
+ * @beta
50496
50501
  */
50497
50502
  var SpinnerEvents;
50498
50503
  (function (SpinnerEvents) {
@@ -50503,10 +50508,12 @@ var SpinnerEvents;
50503
50508
  SpinnerEvents["SYNC"] = "plugins:spinner:sync";
50504
50509
  })(SpinnerEvents || (SpinnerEvents = {}));
50505
50510
  /**
50506
- * Shows a pending operation indicator when playback is buffering or in other appropriate cases
50511
+ * PLUGIN that shows a pending operation indicator when playback is buffering or in a similar state
50507
50512
  * @beta
50508
50513
  * @remarks
50509
- * The plugin emits
50514
+ * Events emitted- {@link SpinnerEvents}
50515
+ * Other plugins can use {@link SpinnerThreeBounce.show | show} and {@link SpinnerThreeBounce.hide | hide} methods to
50516
+ * implement custom pending/progress indication scenarios.
50510
50517
  */
50511
50518
  class SpinnerThreeBounce extends UIContainerPlugin {
50512
50519
  userShown = false;
@@ -50586,7 +50593,7 @@ class SpinnerThreeBounce extends UIContainerPlugin {
50586
50593
  /**
50587
50594
  * Shows the spinner.
50588
50595
  *
50589
- * When called, the spinner will not hide (due to its built-in logic) until {@link SpinnerThreeBounce#hide} is called
50596
+ * When called, the spinner will not hide (due to its built-in logic) until {@link SpinnerThreeBounce.hide} is called
50590
50597
  */
50591
50598
  show(delay = 300) {
50592
50599
  trace(`${T$4} show`);
@@ -50767,7 +50774,7 @@ class SourceController extends CorePlugin {
50767
50774
  }
50768
50775
  this.bindContainerEventListeners();
50769
50776
  if (this.active) {
50770
- this.core.activeContainer?.getPlugin('poster_custom')?.disable();
50777
+ this.core.activeContainer?.getPlugin('poster')?.disable();
50771
50778
  spinner?.show(0);
50772
50779
  }
50773
50780
  }
@@ -50788,7 +50795,7 @@ class SourceController extends CorePlugin {
50788
50795
  }
50789
50796
  switch (error.code) {
50790
50797
  case PlaybackErrorCode.MediaSourceUnavailable:
50791
- this.core.activeContainer?.getPlugin('poster_custom')?.disable();
50798
+ this.core.activeContainer?.getPlugin('poster')?.disable();
50792
50799
  this.retryPlayback();
50793
50800
  break;
50794
50801
  }
@@ -50800,7 +50807,7 @@ class SourceController extends CorePlugin {
50800
50807
  });
50801
50808
  if (this.active) {
50802
50809
  this.reset();
50803
- this.core.activeContainer?.getPlugin('poster_custom')?.enable();
50810
+ this.core.activeContainer?.getPlugin('poster')?.enable();
50804
50811
  this.core.activeContainer?.getPlugin('spinner')?.hide();
50805
50812
  }
50806
50813
  });
@@ -51244,7 +51251,7 @@ var TelemetryEvent;
51244
51251
  TelemetryEvent[TelemetryEvent["Stall"] = 4] = "Stall";
51245
51252
  })(TelemetryEvent || (TelemetryEvent = {}));
51246
51253
  /**
51247
- * Collects and reports the performance statistics.
51254
+ * PLUGIN that collects and reports the performance statistics.
51248
51255
  * @beta
51249
51256
  * @remarks
51250
51257
  * This plugin is experimental and its API is likely to change.
@@ -52068,4 +52075,4 @@ class VolumeFade extends UICorePlugin {
52068
52075
  }
52069
52076
  }
52070
52077
 
52071
- export { AudioSelector, BigMuteButton, BottomGear, ClapprNerdStats, ClapprStats, ClickToPause, ClipsPlugin, ContextMenu, DvrControls, ErrorScreen, Favicon, GoogleAnalytics, Kibo, LevelSelector, LogTracer, Logger, Logo, MediaControl, MediaControlEvents, MultiCamera, PictureInPicture, PlaybackErrorCode, PlaybackRate, Player, PlayerEvent, Poster, SeekTime, SentryTracer, Share, SkipTime, SourceController, SpinnerEvents, SpinnerThreeBounce, Subtitles, Telemetry, TelemetryEvent, Thumbnails, VolumeFade, VolumeFadeEvents, reportError, setTracer, trace, version };
52078
+ export { AudioSelector, BigMuteButton, BottomGear, ClapprNerdStats, ClapprStats, ClickToPause, ClipsPlugin, ContextMenu, DvrControls, ErrorScreen, Favicon, GoogleAnalytics, LevelSelector, LogTracer, Logger, Logo, MediaControl, MediaControlEvents, MultiCamera, PictureInPicture, PlaybackErrorCode, PlaybackRate, Player, PlayerEvent, Poster, SeekTime, SentryTracer, Share, SkipTime, SourceController, SpinnerEvents, SpinnerThreeBounce, Subtitles, Telemetry, TelemetryEvent, Thumbnails, VolumeFade, VolumeFadeEvents, reportError, setTracer, trace, version };