@micromag/screen-video 0.3.460 → 0.3.461
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 +2 -2
- package/lib/index.js +2 -2
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -260,11 +260,11 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
260
260
|
}
|
|
261
261
|
}, [current, playing, setPlaying]);
|
|
262
262
|
var onPlayError = useCallback(function () {
|
|
263
|
-
if (isView && playing && current && hasVideoUrl) {
|
|
263
|
+
if (isView && playing && current && hasVideoUrl && autoPlay) {
|
|
264
264
|
setPlaying(false);
|
|
265
265
|
setControlsSuggestPlay(true);
|
|
266
266
|
}
|
|
267
|
-
}, [isView, current, playing, hasVideoUrl, setPlaying, setControlsSuggestPlay]);
|
|
267
|
+
}, [isView, current, playing, hasVideoUrl, autoPlay, setPlaying, setControlsSuggestPlay]);
|
|
268
268
|
return /*#__PURE__*/React.createElement("div", {
|
|
269
269
|
className: classNames([styles.container, _defineProperty(_defineProperty({}, className, className !== null), styles.fullscreen, fullscreen)]),
|
|
270
270
|
"data-screen-ready": isStatic || isCapture || ready
|
package/lib/index.js
CHANGED
|
@@ -264,11 +264,11 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
264
264
|
}
|
|
265
265
|
}, [current, playing, setPlaying]);
|
|
266
266
|
var onPlayError = React.useCallback(function () {
|
|
267
|
-
if (isView && playing && current && hasVideoUrl) {
|
|
267
|
+
if (isView && playing && current && hasVideoUrl && autoPlay) {
|
|
268
268
|
setPlaying(false);
|
|
269
269
|
setControlsSuggestPlay(true);
|
|
270
270
|
}
|
|
271
|
-
}, [isView, current, playing, hasVideoUrl, setPlaying, setControlsSuggestPlay]);
|
|
271
|
+
}, [isView, current, playing, hasVideoUrl, autoPlay, setPlaying, setControlsSuggestPlay]);
|
|
272
272
|
return /*#__PURE__*/React.createElement("div", {
|
|
273
273
|
className: classNames([styles.container, _defineProperty(_defineProperty({}, className, className !== null), styles.fullscreen, fullscreen)]),
|
|
274
274
|
"data-screen-ready": isStatic || isCapture || ready
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-video",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.461",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"access": "public",
|
|
80
80
|
"registry": "https://registry.npmjs.org/"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "4272b6ced198a1a689fcfcb9682a584d55d6780c"
|
|
83
83
|
}
|