@clappr/player 0.7.0 → 0.8.0

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.
@@ -3143,7 +3143,7 @@
3143
3143
  var level = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : LEVEL_INFO;
3144
3144
  var offLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : LEVEL_DISABLED;
3145
3145
  _classCallCheck$1(this, Log);
3146
- this.EXCLUDE_LIST = ['timeupdate', 'playback:timeupdate', 'playback:progress', 'container:hover', 'container:timeupdate', 'container:progress'];
3146
+ this.EXCLUDE_LIST = ['timeupdate', 'playback:timeupdate', 'playback:progress', 'container:hover', 'container:timeupdate', 'container:progress', 'core:mousemove'];
3147
3147
  this.level = level;
3148
3148
  this.previousLevel = this.level;
3149
3149
  this.offLevel = offLevel;
@@ -3191,8 +3191,8 @@
3191
3191
  }, {
3192
3192
  key: "log",
3193
3193
  value: function log(klass, level, message) {
3194
- if (this.EXCLUDE_LIST.indexOf(message[0]) >= 0) return;
3195
3194
  if (level < this.level) return;
3195
+ if (this.EXCLUDE_LIST.indexOf(message[0]) >= 0) return;
3196
3196
  if (!message) {
3197
3197
  message = klass;
3198
3198
  klass = null;
@@ -6562,7 +6562,7 @@
6562
6562
  plugins: {},
6563
6563
  playbacks: []
6564
6564
  };
6565
- var currentVersion = "0.8.0";
6565
+ var currentVersion = "0.9.0";
6566
6566
  return /*#__PURE__*/function () {
6567
6567
  /**
6568
6568
  * builds the loader
@@ -7697,7 +7697,7 @@
7697
7697
  key: "supportedVersion",
7698
7698
  get: function get() {
7699
7699
  return {
7700
- min: "0.8.0"
7700
+ min: "0.9.0"
7701
7701
  };
7702
7702
  }
7703
7703
  }, {
@@ -7968,7 +7968,6 @@
7968
7968
  key: "pause",
7969
7969
  value: function pause() {
7970
7970
  this.el.pause();
7971
- this.dvrEnabled && this._updateDvr(true);
7972
7971
  }
7973
7972
  }, {
7974
7973
  key: "stop",
@@ -8105,6 +8104,7 @@
8105
8104
  }, {
8106
8105
  key: "_onPause",
8107
8106
  value: function _onPause() {
8107
+ this.dvrEnabled && this._updateDvr(true);
8108
8108
  this._stopPlayheadMovingChecks();
8109
8109
  this._handleBufferingEvents();
8110
8110
  this.trigger(Events.PLAYBACK_PAUSE);
@@ -8112,7 +8112,10 @@
8112
8112
  }, {
8113
8113
  key: "_onSeeking",
8114
8114
  value: function _onSeeking() {
8115
- this.trigger(Events.PLAYBACK_SEEK, this.getCurrentTime());
8115
+ var currentTime = this.getCurrentTime();
8116
+ // assume live if time within 3 seconds of end of stream
8117
+ this.dvrEnabled && this._updateDvr(currentTime < this.getDuration() - 3);
8118
+ this.trigger(Events.PLAYBACK_SEEK, currentTime);
8116
8119
  this._handleBufferingEvents();
8117
8120
  }
8118
8121
  }, {
@@ -8219,8 +8222,6 @@
8219
8222
  Log.warn('Attempt to seek to a negative time. Resetting to live point. Use seekToLivePoint() to seek to the live point.');
8220
8223
  time = this.getDuration();
8221
8224
  }
8222
- // assume live if time within 3 seconds of end of stream
8223
- this.dvrEnabled && this._updateDvr(time < this.getDuration() - 3);
8224
8225
  time += this.el.seekable.start(0);
8225
8226
  this.el.currentTime = time;
8226
8227
  }
@@ -8458,7 +8459,7 @@
8458
8459
  key: "supportedVersion",
8459
8460
  get: function get() {
8460
8461
  return {
8461
- min: "0.8.0"
8462
+ min: "0.9.0"
8462
8463
  };
8463
8464
  }
8464
8465
  }, {
@@ -8513,7 +8514,7 @@
8513
8514
  key: "supportedVersion",
8514
8515
  get: function get() {
8515
8516
  return {
8516
- min: "0.8.0"
8517
+ min: "0.9.0"
8517
8518
  };
8518
8519
  }
8519
8520
  }, {
@@ -8593,7 +8594,7 @@
8593
8594
  key: "supportedVersion",
8594
8595
  get: function get() {
8595
8596
  return {
8596
- min: "0.8.0"
8597
+ min: "0.9.0"
8597
8598
  };
8598
8599
  }
8599
8600
  }, {
@@ -8719,7 +8720,7 @@
8719
8720
  key: "supportedVersion",
8720
8721
  get: function get() {
8721
8722
  return {
8722
- min: "0.8.0"
8723
+ min: "0.9.0"
8723
8724
  };
8724
8725
  }
8725
8726
  }, {
@@ -8860,7 +8861,7 @@
8860
8861
  key: "supportedVersion",
8861
8862
  get: function get() {
8862
8863
  return {
8863
- min: "0.8.0"
8864
+ min: "0.9.0"
8864
8865
  };
8865
8866
  }
8866
8867
  }, {
@@ -8889,7 +8890,7 @@
8889
8890
  @type {string}
8890
8891
  @default
8891
8892
  */
8892
- var version$1 = "0.8.0";
8893
+ var version$1 = "0.9.0";
8893
8894
 
8894
8895
  // Built-in Plugins/Playbacks
8895
8896
 
@@ -9053,7 +9054,7 @@
9053
9054
  key: "supportedVersion",
9054
9055
  get: function get() {
9055
9056
  return {
9056
- min: "0.8.0"
9057
+ min: "0.9.0"
9057
9058
  };
9058
9059
  }
9059
9060
  }, {
@@ -9112,7 +9113,7 @@
9112
9113
  key: "supportedVersion",
9113
9114
  get: function get() {
9114
9115
  return {
9115
- min: "0.8.0"
9116
+ min: "0.9.0"
9116
9117
  };
9117
9118
  }
9118
9119
  }, {
@@ -9271,7 +9272,7 @@
9271
9272
  key: "supportedVersion",
9272
9273
  get: function get() {
9273
9274
  return {
9274
- min: "0.8.0"
9275
+ min: "0.9.0"
9275
9276
  };
9276
9277
  }
9277
9278
  }, {
@@ -9398,7 +9399,7 @@
9398
9399
  key: "supportedVersion",
9399
9400
  get: function get() {
9400
9401
  return {
9401
- min: "0.8.0"
9402
+ min: "0.9.0"
9402
9403
  };
9403
9404
  }
9404
9405
  }, {
@@ -9446,7 +9447,7 @@
9446
9447
  key: "supportedVersion",
9447
9448
  get: function get() {
9448
9449
  return {
9449
- min: "0.8.0"
9450
+ min: "0.9.0"
9450
9451
  };
9451
9452
  }
9452
9453
  }, {
@@ -9566,7 +9567,7 @@
9566
9567
  key: "supportedVersion",
9567
9568
  get: function get() {
9568
9569
  return {
9569
- min: "0.8.0"
9570
+ min: "0.9.0"
9570
9571
  };
9571
9572
  }
9572
9573
  }, {
@@ -9685,7 +9686,7 @@
9685
9686
  key: "supportedVersion",
9686
9687
  get: function get() {
9687
9688
  return {
9688
- min: "0.8.0"
9689
+ min: "0.9.0"
9689
9690
  };
9690
9691
  }
9691
9692
  }, {
@@ -10175,7 +10176,7 @@
10175
10176
  key: "supportedVersion",
10176
10177
  get: function get() {
10177
10178
  return {
10178
- min: "0.8.0"
10179
+ min: "0.9.0"
10179
10180
  };
10180
10181
  }
10181
10182
  }, {
@@ -10975,7 +10976,7 @@
10975
10976
  key: "supportedVersion",
10976
10977
  get: function get() {
10977
10978
  return {
10978
- min: "0.8.0"
10979
+ min: "0.9.0"
10979
10980
  };
10980
10981
  }
10981
10982
  }, {
@@ -11178,7 +11179,7 @@
11178
11179
  key: "supportedVersion",
11179
11180
  get: function get() {
11180
11181
  return {
11181
- min: "0.8.0"
11182
+ min: "0.9.0"
11182
11183
  };
11183
11184
  }
11184
11185
  }, {
@@ -11380,7 +11381,7 @@
11380
11381
  key: "supportedVersion",
11381
11382
  get: function get() {
11382
11383
  return {
11383
- min: "0.8.0"
11384
+ min: "0.9.0"
11384
11385
  };
11385
11386
  }
11386
11387
  }, {
@@ -11458,7 +11459,7 @@
11458
11459
  key: "supportedVersion",
11459
11460
  get: function get() {
11460
11461
  return {
11461
- min: "0.8.0"
11462
+ min: "0.9.0"
11462
11463
  };
11463
11464
  }
11464
11465
  }, {
@@ -11579,7 +11580,7 @@
11579
11580
  key: "supportedVersion",
11580
11581
  get: function get() {
11581
11582
  return {
11582
- min: "0.8.0"
11583
+ min: "0.9.0"
11583
11584
  };
11584
11585
  }
11585
11586
  }, {
@@ -11651,7 +11652,7 @@
11651
11652
  WaterMark: WaterMarkPlugin
11652
11653
  };
11653
11654
 
11654
- var version = "0.7.0";
11655
+ var version = "0.8.0";
11655
11656
  for (var _i = 0, _Object$values = Object.values(Plugins); _i < _Object$values.length; _i++) {
11656
11657
  var plugin = _Object$values[_i];
11657
11658
  Loader.registerPlugin(plugin);