@gcorevideo/player 2.22.9 → 2.22.10

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
@@ -42846,7 +42846,7 @@ const DEFAULT_OPTIONS = {
42846
42846
  debug: 'none',
42847
42847
  loop: false,
42848
42848
  mute: false,
42849
- playbackType: 'vod',
42849
+ // playbackType: 'vod',
42850
42850
  priorityTransport: 'dash',
42851
42851
  sources: [],
42852
42852
  strings: {},
@@ -43304,7 +43304,7 @@ class Player {
43304
43304
  }
43305
43305
  }
43306
43306
 
43307
- var version$1 = "2.22.9";
43307
+ var version$1 = "2.22.10";
43308
43308
 
43309
43309
  var packages = {
43310
43310
  "node_modules/@clappr/core": {
@@ -49661,6 +49661,7 @@ class PlaybackRate extends UICorePlugin {
49661
49661
  this.metadataLoaded = false;
49662
49662
  this.listenTo(this.core.activePlayback, Events$1.PLAYBACK_STOP, this.onStop);
49663
49663
  this.listenTo(this.core.activePlayback, Events$1.PLAYBACK_PLAY, this.onPlay);
49664
+ this.listenTo(this.core.activePlayback, Events$1.PLAYBACK_SETTINGSUPDATE, this.onSettingsUpdate);
49664
49665
  this.listenTo(this.core.activePlayback, PlaybackEvents.PLAYBACK_RATE_CHANGED, this.onPlaybackRateChange);
49665
49666
  this.listenTo(this.core.activeContainer, Events$1.CONTAINER_LOADEDMETADATA, this.onMetaDataLoaded);
49666
49667
  }
@@ -49689,10 +49690,22 @@ class PlaybackRate extends UICorePlugin {
49689
49690
  i18n: this.core.i18n,
49690
49691
  })));
49691
49692
  }
49693
+ onSettingsUpdate() {
49694
+ trace(`${T$7} onSettingsUpdate`, {
49695
+ playbackType: this.core.activePlayback.getPlaybackType(),
49696
+ dvrEnabled: this.core.activePlayback.dvrEnabled,
49697
+ });
49698
+ // this.metadataLoaded = false
49699
+ }
49692
49700
  onMetaDataLoaded() {
49693
- trace(`${T$7} onMetaDataLoaded`);
49694
- this.metadataLoaded = true;
49695
- this.render();
49701
+ trace(`${T$7} onMetaDataLoaded`, {
49702
+ playbackType: this.core.activePlayback.getPlaybackType(),
49703
+ dvrEnabled: this.core.activePlayback.dvrEnabled,
49704
+ });
49705
+ setTimeout(() => {
49706
+ this.metadataLoaded = true;
49707
+ this.render();
49708
+ }, 0);
49696
49709
  }
49697
49710
  allRateElements() {
49698
49711
  return this.$el.find('#playback-rate-menu li');
@@ -49713,13 +49726,13 @@ class PlaybackRate extends UICorePlugin {
49713
49726
  }
49714
49727
  }
49715
49728
  shouldMount() {
49729
+ trace(`${T$7} shouldMount`, {
49730
+ playbackType: this.core.activePlayback?.getPlaybackType(),
49731
+ dvrEnabled: this.core.activePlayback?.dvrEnabled,
49732
+ });
49716
49733
  if (!this.core.activePlayback || !this.metadataLoaded) {
49717
49734
  return false;
49718
49735
  }
49719
- trace(`${T$7} shouldMount`, {
49720
- playbackType: this.core.activePlayback.getPlaybackType(),
49721
- dvrEnabled: this.core.activePlayback.dvrEnabled,
49722
- });
49723
49736
  if (this.core.activePlayback.getPlaybackType() === Playback.LIVE &&
49724
49737
  !this.core.activePlayback.dvrEnabled) {
49725
49738
  return false;