@gcorevideo/player 2.22.11 → 2.22.13

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/index.js CHANGED
@@ -43304,7 +43304,7 @@ class Player {
43304
43304
  }
43305
43305
  }
43306
43306
 
43307
- var version$1 = "2.22.11";
43307
+ var version$1 = "2.22.13";
43308
43308
 
43309
43309
  var packages = {
43310
43310
  "node_modules/@clappr/core": {
@@ -49600,7 +49600,7 @@ class PlaybackRate extends UICorePlugin {
49600
49600
  // private prevSelectedRate: string | undefined
49601
49601
  selectedRate = DEFAULT_PLAYBACK_RATE;
49602
49602
  metadataLoaded = false;
49603
- playbackSettingsUpdateReceived = false;
49603
+ // private playbackSettingsUpdateReceived = false
49604
49604
  mountTimerId = null;
49605
49605
  /**
49606
49606
  * @internal
@@ -49661,10 +49661,14 @@ class PlaybackRate extends UICorePlugin {
49661
49661
  onActiveContainerChange() {
49662
49662
  trace(`${T$7} onActiveContainerChange`);
49663
49663
  this.metadataLoaded = false;
49664
- this.playbackSettingsUpdateReceived = false;
49664
+ // this.playbackSettingsUpdateReceived = false
49665
49665
  this.listenTo(this.core.activePlayback, Events$1.PLAYBACK_STOP, this.onStop);
49666
49666
  this.listenTo(this.core.activePlayback, Events$1.PLAYBACK_PLAY, this.onPlay);
49667
- this.listenTo(this.core.activePlayback, Events$1.PLAYBACK_SETTINGSUPDATE, this.onSettingsUpdate);
49667
+ // this.listenTo(
49668
+ // this.core.activePlayback,
49669
+ // Events.PLAYBACK_SETTINGSUPDATE,
49670
+ // this.onSettingsUpdate,
49671
+ // )
49668
49672
  this.listenTo(this.core.activePlayback, PlaybackEvents.PLAYBACK_RATE_CHANGED, this.onPlaybackRateChange);
49669
49673
  this.listenTo(this.core.activeContainer, Events$1.CONTAINER_LOADEDMETADATA, this.onMetaDataLoaded);
49670
49674
  }
@@ -49693,35 +49697,30 @@ class PlaybackRate extends UICorePlugin {
49693
49697
  i18n: this.core.i18n,
49694
49698
  })));
49695
49699
  }
49696
- onSettingsUpdate() {
49697
- trace(`${T$7} onSettingsUpdate`, {
49698
- playbackType: this.core.activePlayback.getPlaybackType(),
49699
- dvrEnabled: this.core.activePlayback.dvrEnabled,
49700
- });
49701
- this.playbackSettingsUpdateReceived = true;
49702
- if (this.metadataLoaded) {
49703
- if (this.mountTimerId) {
49704
- clearTimeout(this.mountTimerId);
49705
- this.mountTimerId = null;
49706
- }
49707
- this.mount();
49708
- }
49709
- }
49700
+ // private onSettingsUpdate() {
49701
+ // trace(`${T} onSettingsUpdate`, {
49702
+ // playbackType: this.core.activePlayback.getPlaybackType(),
49703
+ // dvrEnabled: this.core.activePlayback.dvrEnabled,
49704
+ // })
49705
+ // this.playbackSettingsUpdateReceived = true
49706
+ // if (this.metadataLoaded) {
49707
+ // if (this.mountTimerId) {
49708
+ // clearTimeout(this.mountTimerId)
49709
+ // this.mountTimerId = null
49710
+ // }
49711
+ // this.mount()
49712
+ // }
49713
+ // }
49710
49714
  onMetaDataLoaded() {
49711
49715
  trace(`${T$7} onMetaDataLoaded`, {
49712
49716
  playbackType: this.core.activePlayback.getPlaybackType(),
49713
49717
  dvrEnabled: this.core.activePlayback.dvrEnabled,
49714
49718
  });
49715
49719
  this.metadataLoaded = true;
49716
- if (this.playbackSettingsUpdateReceived) {
49720
+ this.mountTimerId = setTimeout(() => {
49721
+ this.mountTimerId = null;
49717
49722
  this.mount();
49718
- }
49719
- else {
49720
- this.mountTimerId = setTimeout(() => {
49721
- this.mountTimerId = null;
49722
- this.mount();
49723
- }, 25);
49724
- }
49723
+ }, 25);
49725
49724
  }
49726
49725
  allRateElements() {
49727
49726
  return this.$el.find('#playback-rate-menu li');
@@ -49769,7 +49768,6 @@ class PlaybackRate extends UICorePlugin {
49769
49768
  i18n: this.core.i18n,
49770
49769
  playbackRates: this.playbackRates,
49771
49770
  }));
49772
- this.mount();
49773
49771
  return this;
49774
49772
  }
49775
49773
  /**