@gcorevideo/player 2.26.6 → 2.26.7

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.
@@ -6118,9 +6118,12 @@ var Core = /*#__PURE__*/function (_UIObject) {
6118
6118
  var _this3 = this;
6119
6119
  this.disableResizeObserver();
6120
6120
  var checkSizeCallback = function checkSizeCallback() {
6121
+ var _this3$el$clientWidth, _this3$el$clientHeigh;
6122
+ var width = (_this3$el$clientWidth = _this3.el.clientWidth) !== null && _this3$el$clientWidth !== void 0 ? _this3$el$clientWidth : _this3.options.width;
6123
+ var height = (_this3$el$clientHeigh = _this3.el.clientHeight) !== null && _this3$el$clientHeigh !== void 0 ? _this3$el$clientHeigh : _this3.options.height;
6121
6124
  _this3.triggerResize({
6122
- width: _this3.el.clientWidth,
6123
- height: _this3.el.clientHeight
6125
+ width: width,
6126
+ height: height
6124
6127
  });
6125
6128
  };
6126
6129
  this.resizeObserverInterval = setInterval(checkSizeCallback, 500);
@@ -6210,12 +6213,15 @@ var Core = /*#__PURE__*/function (_UIObject) {
6210
6213
  }, {
6211
6214
  key: "handleWindowResize",
6212
6215
  value: function handleWindowResize(event) {
6216
+ var _this$el$clientWidth, _this$el$clientHeight;
6213
6217
  var orientation = window.innerWidth > window.innerHeight ? 'landscape' : 'portrait';
6214
6218
  if (this._screenOrientation === orientation) return;
6215
6219
  this._screenOrientation = orientation;
6220
+ var width = (_this$el$clientWidth = this.el.clientWidth) !== null && _this$el$clientWidth !== void 0 ? _this$el$clientWidth : this.options.width;
6221
+ var height = (_this$el$clientHeight = this.el.clientHeight) !== null && _this$el$clientHeight !== void 0 ? _this$el$clientHeight : this.options.height;
6216
6222
  this.triggerResize({
6217
- width: this.el.clientWidth,
6218
- height: this.el.clientHeight
6223
+ width: width,
6224
+ height: height
6219
6225
  });
6220
6226
  this.trigger(Events$1.CORE_SCREEN_ORIENTATION_CHANGED, {
6221
6227
  event: event,
@@ -6531,7 +6537,7 @@ var Loader = (function () {
6531
6537
  plugins: {},
6532
6538
  playbacks: []
6533
6539
  };
6534
- var currentVersion = "0.11.4";
6540
+ var currentVersion = "0.11.5";
6535
6541
  return /*#__PURE__*/function () {
6536
6542
  /**
6537
6543
  * builds the loader
@@ -7671,7 +7677,7 @@ var HTML5Video$1 = /*#__PURE__*/function (_Playback) {
7671
7677
  key: "supportedVersion",
7672
7678
  get: function get() {
7673
7679
  return {
7674
- min: "0.11.4"
7680
+ min: "0.11.5"
7675
7681
  };
7676
7682
  }
7677
7683
  }, {
@@ -8433,7 +8439,7 @@ var HTML5Audio = /*#__PURE__*/function (_HTML5Video) {
8433
8439
  key: "supportedVersion",
8434
8440
  get: function get() {
8435
8441
  return {
8436
- min: "0.11.4"
8442
+ min: "0.11.5"
8437
8443
  };
8438
8444
  }
8439
8445
  }, {
@@ -8490,7 +8496,7 @@ var HTMLImg = /*#__PURE__*/function (_Playback) {
8490
8496
  key: "supportedVersion",
8491
8497
  get: function get() {
8492
8498
  return {
8493
- min: "0.11.4"
8499
+ min: "0.11.5"
8494
8500
  };
8495
8501
  }
8496
8502
  }, {
@@ -8573,7 +8579,7 @@ var NoOp = /*#__PURE__*/function (_Playback) {
8573
8579
  key: "supportedVersion",
8574
8580
  get: function get() {
8575
8581
  return {
8576
- min: "0.11.4"
8582
+ min: "0.11.5"
8577
8583
  };
8578
8584
  }
8579
8585
  }, {
@@ -8699,7 +8705,7 @@ var Strings = /*#__PURE__*/function (_CorePlugin) {
8699
8705
  key: "supportedVersion",
8700
8706
  get: function get() {
8701
8707
  return {
8702
- min: "0.11.4"
8708
+ min: "0.11.5"
8703
8709
  };
8704
8710
  }
8705
8711
  }, {
@@ -8841,7 +8847,7 @@ var SourcesPlugin = /*#__PURE__*/function (_CorePlugin) {
8841
8847
  key: "supportedVersion",
8842
8848
  get: function get() {
8843
8849
  return {
8844
- min: "0.11.4"
8850
+ min: "0.11.5"
8845
8851
  };
8846
8852
  }
8847
8853
  }, {
package/dist/index.js CHANGED
@@ -6273,9 +6273,12 @@ var Core = /*#__PURE__*/function (_UIObject) {
6273
6273
  var _this3 = this;
6274
6274
  this.disableResizeObserver();
6275
6275
  var checkSizeCallback = function checkSizeCallback() {
6276
+ var _this3$el$clientWidth, _this3$el$clientHeigh;
6277
+ var width = (_this3$el$clientWidth = _this3.el.clientWidth) !== null && _this3$el$clientWidth !== void 0 ? _this3$el$clientWidth : _this3.options.width;
6278
+ var height = (_this3$el$clientHeigh = _this3.el.clientHeight) !== null && _this3$el$clientHeigh !== void 0 ? _this3$el$clientHeigh : _this3.options.height;
6276
6279
  _this3.triggerResize({
6277
- width: _this3.el.clientWidth,
6278
- height: _this3.el.clientHeight
6280
+ width: width,
6281
+ height: height
6279
6282
  });
6280
6283
  };
6281
6284
  this.resizeObserverInterval = setInterval(checkSizeCallback, 500);
@@ -6365,12 +6368,15 @@ var Core = /*#__PURE__*/function (_UIObject) {
6365
6368
  }, {
6366
6369
  key: "handleWindowResize",
6367
6370
  value: function handleWindowResize(event) {
6371
+ var _this$el$clientWidth, _this$el$clientHeight;
6368
6372
  var orientation = window.innerWidth > window.innerHeight ? 'landscape' : 'portrait';
6369
6373
  if (this._screenOrientation === orientation) return;
6370
6374
  this._screenOrientation = orientation;
6375
+ var width = (_this$el$clientWidth = this.el.clientWidth) !== null && _this$el$clientWidth !== void 0 ? _this$el$clientWidth : this.options.width;
6376
+ var height = (_this$el$clientHeight = this.el.clientHeight) !== null && _this$el$clientHeight !== void 0 ? _this$el$clientHeight : this.options.height;
6371
6377
  this.triggerResize({
6372
- width: this.el.clientWidth,
6373
- height: this.el.clientHeight
6378
+ width: width,
6379
+ height: height
6374
6380
  });
6375
6381
  this.trigger(Events$1.CORE_SCREEN_ORIENTATION_CHANGED, {
6376
6382
  event: event,
@@ -6686,7 +6692,7 @@ var Loader = (function () {
6686
6692
  plugins: {},
6687
6693
  playbacks: []
6688
6694
  };
6689
- var currentVersion = "0.11.4";
6695
+ var currentVersion = "0.11.5";
6690
6696
  return /*#__PURE__*/function () {
6691
6697
  /**
6692
6698
  * builds the loader
@@ -7826,7 +7832,7 @@ var HTML5Video$1 = /*#__PURE__*/function (_Playback) {
7826
7832
  key: "supportedVersion",
7827
7833
  get: function get() {
7828
7834
  return {
7829
- min: "0.11.4"
7835
+ min: "0.11.5"
7830
7836
  };
7831
7837
  }
7832
7838
  }, {
@@ -8588,7 +8594,7 @@ var HTML5Audio = /*#__PURE__*/function (_HTML5Video) {
8588
8594
  key: "supportedVersion",
8589
8595
  get: function get() {
8590
8596
  return {
8591
- min: "0.11.4"
8597
+ min: "0.11.5"
8592
8598
  };
8593
8599
  }
8594
8600
  }, {
@@ -8645,7 +8651,7 @@ var HTMLImg = /*#__PURE__*/function (_Playback) {
8645
8651
  key: "supportedVersion",
8646
8652
  get: function get() {
8647
8653
  return {
8648
- min: "0.11.4"
8654
+ min: "0.11.5"
8649
8655
  };
8650
8656
  }
8651
8657
  }, {
@@ -8728,7 +8734,7 @@ var NoOp = /*#__PURE__*/function (_Playback) {
8728
8734
  key: "supportedVersion",
8729
8735
  get: function get() {
8730
8736
  return {
8731
- min: "0.11.4"
8737
+ min: "0.11.5"
8732
8738
  };
8733
8739
  }
8734
8740
  }, {
@@ -8854,7 +8860,7 @@ var Strings = /*#__PURE__*/function (_CorePlugin) {
8854
8860
  key: "supportedVersion",
8855
8861
  get: function get() {
8856
8862
  return {
8857
- min: "0.11.4"
8863
+ min: "0.11.5"
8858
8864
  };
8859
8865
  }
8860
8866
  }, {
@@ -8996,7 +9002,7 @@ var SourcesPlugin = /*#__PURE__*/function (_CorePlugin) {
8996
9002
  key: "supportedVersion",
8997
9003
  get: function get() {
8998
9004
  return {
8999
- min: "0.11.4"
9005
+ min: "0.11.5"
9000
9006
  };
9001
9007
  }
9002
9008
  }, {
@@ -43259,11 +43265,11 @@ class Player {
43259
43265
  }
43260
43266
  }
43261
43267
 
43262
- var version$1 = "2.26.6";
43268
+ var version$1 = "2.26.7";
43263
43269
 
43264
43270
  var packages = {
43265
43271
  "node_modules/@clappr/core": {
43266
- version: "0.11.4"},
43272
+ version: "0.11.5"},
43267
43273
  "node_modules/dashjs": {
43268
43274
  version: "4.7.4"},
43269
43275
  "node_modules/hls.js": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gcorevideo/player",
3
- "version": "2.26.6",
3
+ "version": "2.26.7",
4
4
  "description": "Gcore JavaScript video player",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",