@micromag/screen-video-360 0.3.460 → 0.3.463

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
@@ -497,11 +497,11 @@ var Video360Screen = function Video360Screen(_ref) {
497
497
  pointerDown.current = false;
498
498
  }, [gotoPreviousScreen, gotoNextScreen, landscape]);
499
499
  var onPlayError = useCallback(function () {
500
- if (isView && playing && current && hasVideoUrl) {
500
+ if (isView && playing && current && hasVideoUrl && autoPlay) {
501
501
  setPlaying(false);
502
502
  setControlsSuggestPlay(true);
503
503
  }
504
- }, [isView, current, playing, hasVideoUrl, setPlaying, setControlsSuggestPlay]);
504
+ }, [isView, current, playing, hasVideoUrl, autoPlay, setPlaying, setControlsSuggestPlay]);
505
505
  return /*#__PURE__*/React.createElement("div", {
506
506
  className: classNames([styles.container, _defineProperty(_defineProperty({}, className, className !== null), styles.showVideo, isPreview || isStatic || isCapture)]),
507
507
  "data-screen-ready": (isStatic || isCapture) && posterReady || ready
package/lib/index.js CHANGED
@@ -501,11 +501,11 @@ var Video360Screen = function Video360Screen(_ref) {
501
501
  pointerDown.current = false;
502
502
  }, [gotoPreviousScreen, gotoNextScreen, landscape]);
503
503
  var onPlayError = React.useCallback(function () {
504
- if (isView && playing && current && hasVideoUrl) {
504
+ if (isView && playing && current && hasVideoUrl && autoPlay) {
505
505
  setPlaying(false);
506
506
  setControlsSuggestPlay(true);
507
507
  }
508
- }, [isView, current, playing, hasVideoUrl, setPlaying, setControlsSuggestPlay]);
508
+ }, [isView, current, playing, hasVideoUrl, autoPlay, setPlaying, setControlsSuggestPlay]);
509
509
  return /*#__PURE__*/React.createElement("div", {
510
510
  className: classNames([styles.container, _defineProperty(_defineProperty({}, className, className !== null), styles.showVideo, isPreview || isStatic || isCapture)]),
511
511
  "data-screen-ready": (isStatic || isCapture) && posterReady || ready
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-video-360",
3
- "version": "0.3.460",
3
+ "version": "0.3.463",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -60,15 +60,15 @@
60
60
  "dependencies": {
61
61
  "@babel/runtime": "^7.13.10",
62
62
  "@folklore/size": "^0.1.20",
63
- "@micromag/core": "^0.3.460",
64
- "@micromag/element-background": "^0.3.460",
65
- "@micromag/element-closed-captions": "^0.3.460",
66
- "@micromag/element-container": "^0.3.460",
67
- "@micromag/element-footer": "^0.3.460",
68
- "@micromag/element-header": "^0.3.460",
69
- "@micromag/element-image": "^0.3.460",
70
- "@micromag/element-video": "^0.3.460",
71
- "@micromag/transforms": "^0.3.460",
63
+ "@micromag/core": "^0.3.463",
64
+ "@micromag/element-background": "^0.3.463",
65
+ "@micromag/element-closed-captions": "^0.3.463",
66
+ "@micromag/element-container": "^0.3.463",
67
+ "@micromag/element-footer": "^0.3.463",
68
+ "@micromag/element-header": "^0.3.463",
69
+ "@micromag/element-image": "^0.3.463",
70
+ "@micromag/element-video": "^0.3.463",
71
+ "@micromag/transforms": "^0.3.463",
72
72
  "classnames": "^2.2.6",
73
73
  "lodash": "^4.17.21",
74
74
  "prop-types": "^15.7.2",
@@ -81,5 +81,5 @@
81
81
  "access": "public",
82
82
  "registry": "https://registry.npmjs.org/"
83
83
  },
84
- "gitHead": "7e5a6ed3d80be59cdd74716781b467be88a4ccc6"
84
+ "gitHead": "a2eb34209cb2dcbcd6a15d1325a02778543a8bca"
85
85
  }