@gcorevideo/player 2.20.5 → 2.20.6

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
@@ -12649,8 +12649,8 @@ class BasePlayback extends HTML5Video {
12649
12649
  }
12650
12650
  return super.createError(errorData, options);
12651
12651
  }
12652
- _onProgress() {
12653
- super._onProgress();
12652
+ _onPlaying() {
12653
+ super._onPlaying();
12654
12654
  this.trigger(Events$1.PLAYBACK_MEDIACONTROL_ENABLE);
12655
12655
  }
12656
12656
  }
@@ -43061,7 +43061,7 @@ class Player {
43061
43061
  }
43062
43062
  }
43063
43063
 
43064
- var version$1 = "2.20.5";
43064
+ var version$1 = "2.20.6";
43065
43065
 
43066
43066
  var packages = {
43067
43067
  "node_modules/@clappr/core": {
@@ -47014,8 +47014,7 @@ class ErrorScreen extends UICorePlugin {
47014
47014
  unmount() {
47015
47015
  trace(`${T$a} unmount`);
47016
47016
  this.err = null;
47017
- this.$el.empty();
47018
- // this.$el.hide();
47017
+ this.$el.remove();
47019
47018
  }
47020
47019
  /**
47021
47020
  * @internal
@@ -48289,7 +48288,7 @@ class MediaControl extends UICorePlugin {
48289
48288
  */
48290
48289
  disable() {
48291
48290
  trace(`${T$8} disable`);
48292
- this.userDisabled = true;
48291
+ this.userDisabled = true; // TODO distinguish between user and system (e.g., unplayable) disabled?
48293
48292
  this.hide();
48294
48293
  this.unbindKeyEvents();
48295
48294
  this.$el.hide();
@@ -48556,8 +48555,14 @@ class MediaControl extends UICorePlugin {
48556
48555
  this.settingsUpdate();
48557
48556
  this.core.activeContainer &&
48558
48557
  this.core.activeContainer.trigger(Events$1.CONTAINER_PLAYBACKDVRSTATECHANGED, this.core.activeContainer.isDvrInUse());
48559
- this.core.activeContainer && this.core.activeContainer.mediaControlDisabled && this.disable();
48560
- this.trigger(Events$1.MEDIACONTROL_CONTAINERCHANGED);
48558
+ // TODO test
48559
+ if (this.core.activeContainer.mediaControlDisabled) {
48560
+ this.disable();
48561
+ }
48562
+ else {
48563
+ this.enable();
48564
+ }
48565
+ this.trigger(Events$1.MEDIACONTROL_CONTAINERCHANGED); // TODO check
48561
48566
  if (this.core.activeContainer.$el) {
48562
48567
  this.core.activeContainer.$el.addClass('container-skin-1');
48563
48568
  }