@micromag/screen-video-360 0.2.406 → 0.2.412

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/es/index.js CHANGED
@@ -142,6 +142,7 @@ var Video360Screen = function Video360Screen(_ref) {
142
142
  isCapture = _useScreenRenderConte.isCapture;
143
143
 
144
144
  var backgroundPlaying = current && (isView || isEdit);
145
+ var backgroundShouldLoad = current || active || !isView;
145
146
  var videoContainerRef = useRef();
146
147
  var apiRef = useRef();
147
148
 
@@ -561,7 +562,7 @@ var Video360Screen = function Video360Screen(_ref) {
561
562
  width: width,
562
563
  height: height,
563
564
  playing: backgroundPlaying,
564
- shouldLoad: current || active
565
+ shouldLoad: backgroundShouldLoad
565
566
  }) : null, /*#__PURE__*/React.createElement(Container, {
566
567
  width: width,
567
568
  height: height
package/lib/index.js CHANGED
@@ -181,6 +181,7 @@ var Video360Screen = function Video360Screen(_ref) {
181
181
  isCapture = _useScreenRenderConte.isCapture;
182
182
 
183
183
  var backgroundPlaying = current && (isView || isEdit);
184
+ var backgroundShouldLoad = current || active || !isView;
184
185
  var videoContainerRef = React.useRef();
185
186
  var apiRef = React.useRef();
186
187
 
@@ -600,7 +601,7 @@ var Video360Screen = function Video360Screen(_ref) {
600
601
  width: width,
601
602
  height: height,
602
603
  playing: backgroundPlaying,
603
- shouldLoad: current || active
604
+ shouldLoad: backgroundShouldLoad
604
605
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
605
606
  width: width,
606
607
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-video-360",
3
- "version": "0.2.406",
3
+ "version": "0.2.412",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -50,15 +50,15 @@
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
52
  "@folklore/size": "^0.1.15",
53
- "@micromag/core": "^0.2.405",
54
- "@micromag/element-background": "^0.2.406",
55
- "@micromag/element-call-to-action": "^0.2.405",
56
- "@micromag/element-closed-captions": "^0.2.405",
57
- "@micromag/element-container": "^0.2.405",
58
- "@micromag/element-image": "^0.2.406",
59
- "@micromag/element-media-controls": "^0.2.405",
60
- "@micromag/element-video": "^0.2.405",
61
- "@micromag/transforms": "^0.2.405",
53
+ "@micromag/core": "^0.2.412",
54
+ "@micromag/element-background": "^0.2.412",
55
+ "@micromag/element-call-to-action": "^0.2.412",
56
+ "@micromag/element-closed-captions": "^0.2.412",
57
+ "@micromag/element-container": "^0.2.412",
58
+ "@micromag/element-image": "^0.2.412",
59
+ "@micromag/element-media-controls": "^0.2.412",
60
+ "@micromag/element-video": "^0.2.412",
61
+ "@micromag/transforms": "^0.2.412",
62
62
  "classnames": "^2.2.6",
63
63
  "lodash": "^4.17.21",
64
64
  "prop-types": "^15.7.2",
@@ -70,5 +70,5 @@
70
70
  "publishConfig": {
71
71
  "access": "public"
72
72
  },
73
- "gitHead": "5e1a6de73674624b0cb3f9701140ea8850e6f35e"
73
+ "gitHead": "e16acc4643a563f4b7e98ddc1b778ea8a6c8b320"
74
74
  }