@desynova-digital/player 4.1.2 → 4.1.3

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.
@@ -396,6 +396,7 @@ var Player = exports["default"] = /*#__PURE__*/function (_Component) {
396
396
  document.addEventListener('fullscreenchange', this.handleFullscreenFix);
397
397
  _fullscreen["default"].addEventListener(this.handleFullScreenChange);
398
398
  this.handleMarginsAndGrid();
399
+
399
400
  /*
400
401
  * const { player } = this.manager.getState();
401
402
  * this.actions.toggleFullscreen(player);
@@ -420,6 +421,13 @@ var Player = exports["default"] = /*#__PURE__*/function (_Component) {
420
421
  this.handleMarginsAndGrid();
421
422
  }
422
423
  }
424
+ }, {
425
+ key: "getPlayer",
426
+ value: function getPlayer() {
427
+ var _this$manager$getStat2 = this.manager.getState(),
428
+ player = _this$manager$getStat2.player;
429
+ return player;
430
+ }
423
431
  }, {
424
432
  key: "componentWillUnmount",
425
433
  value: function componentWillUnmount() {
@@ -449,8 +457,8 @@ var Player = exports["default"] = /*#__PURE__*/function (_Component) {
449
457
  }, {
450
458
  key: "exitFullScreenMode",
451
459
  value: function exitFullScreenMode() {
452
- var _this$manager$getStat2 = this.manager.getState(),
453
- player = _this$manager$getStat2.player;
460
+ var _this$manager$getStat3 = this.manager.getState(),
461
+ player = _this$manager$getStat3.player;
454
462
  var onRightMenuVisible = this.props.onRightMenuVisible;
455
463
  this.actions.toggleFullscreen(player);
456
464
  // Trigger UI change based for exit
@@ -810,8 +818,8 @@ var Player = exports["default"] = /*#__PURE__*/function (_Component) {
810
818
  }, {
811
819
  key: "handleResize",
812
820
  value: function handleResize() {
813
- var _this$manager$getStat3 = this.manager.getState(),
814
- player = _this$manager$getStat3.player;
821
+ var _this$manager$getStat4 = this.manager.getState(),
822
+ player = _this$manager$getStat4.player;
815
823
  var leftSectionRef = this._leftSectionRef;
816
824
  var rightSectionRef = this._rightSectionRef;
817
825
  var audioMeterBlock = this._audioMeterBlock;
@@ -926,7 +934,6 @@ var Player = exports["default"] = /*#__PURE__*/function (_Component) {
926
934
  if (!((_this$props6 = this.props) !== null && _this$props6 !== void 0 && _this$props6.noRightComponent)) {
927
935
  video.style.height = videoHeight + 'px';
928
936
  }
929
- ;
930
937
  video.style.margin = '0 auto';
931
938
  video.classList.add('ratio-border');
932
939
  } else if (window.innerHeight >= 900) {
@@ -974,8 +981,8 @@ var Player = exports["default"] = /*#__PURE__*/function (_Component) {
974
981
  }, {
975
982
  key: "handleBlur",
976
983
  value: function handleBlur() {
977
- var _this$manager$getStat4 = this.manager.getState(),
978
- player = _this$manager$getStat4.player;
984
+ var _this$manager$getStat5 = this.manager.getState(),
985
+ player = _this$manager$getStat5.player;
979
986
  if (player.isFullscreen) return;
980
987
  this.actions.activate(false);
981
988
  }
@@ -993,8 +1000,8 @@ var Player = exports["default"] = /*#__PURE__*/function (_Component) {
993
1000
  value: function render() {
994
1001
  var _this6 = this,
995
1002
  _props$player;
996
- var _this$manager$getStat5 = this.manager.getState(),
997
- player = _this$manager$getStat5.player;
1003
+ var _this$manager$getStat6 = this.manager.getState(),
1004
+ player = _this$manager$getStat6.player;
998
1005
  var props = _objectSpread(_objectSpread({}, this.props), {}, {
999
1006
  player: player,
1000
1007
  actions: this.actions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desynova-digital/player",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
4
4
  "description": "Video Player Package for Contido Application",
5
5
  "main": "index.js",
6
6
  "scripts": {