@micromag/screen-audio 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 +2 -2
- package/lib/index.js +2 -2
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -201,11 +201,11 @@ var AudioScreen = function AudioScreen(_ref) {
|
|
|
201
201
|
}
|
|
202
202
|
}, [trackScreenMedia, audio]);
|
|
203
203
|
var onPlayError = useCallback(function () {
|
|
204
|
-
if (isView && playing && current && hasAudio) {
|
|
204
|
+
if (isView && playing && current && hasAudio && autoPlay) {
|
|
205
205
|
setPlaying(false);
|
|
206
206
|
setControlsSuggestPlay(true);
|
|
207
207
|
}
|
|
208
|
-
}, [isView, current, playing, hasAudio, setPlaying, setControlsSuggestPlay]);
|
|
208
|
+
}, [isView, current, playing, hasAudio, autoPlay, setPlaying, setControlsSuggestPlay]);
|
|
209
209
|
return /*#__PURE__*/React.createElement("div", {
|
|
210
210
|
className: classNames([styles.container, _defineProperty(_defineProperty(_defineProperty({}, className, className !== null), styles.placeholder, isPlaceholder), styles.isPreview, isPreview)]),
|
|
211
211
|
"data-screen-ready": ready
|
package/lib/index.js
CHANGED
|
@@ -205,11 +205,11 @@ var AudioScreen = function AudioScreen(_ref) {
|
|
|
205
205
|
}
|
|
206
206
|
}, [trackScreenMedia, audio]);
|
|
207
207
|
var onPlayError = React.useCallback(function () {
|
|
208
|
-
if (isView && playing && current && hasAudio) {
|
|
208
|
+
if (isView && playing && current && hasAudio && autoPlay) {
|
|
209
209
|
setPlaying(false);
|
|
210
210
|
setControlsSuggestPlay(true);
|
|
211
211
|
}
|
|
212
|
-
}, [isView, current, playing, hasAudio, setPlaying, setControlsSuggestPlay]);
|
|
212
|
+
}, [isView, current, playing, hasAudio, autoPlay, setPlaying, setControlsSuggestPlay]);
|
|
213
213
|
return /*#__PURE__*/React.createElement("div", {
|
|
214
214
|
className: classNames([styles.container, _defineProperty(_defineProperty(_defineProperty({}, className, className !== null), styles.placeholder, isPlaceholder), styles.isPreview, isPreview)]),
|
|
215
215
|
"data-screen-ready": ready
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-audio",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.463",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -59,15 +59,15 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@babel/runtime": "^7.13.10",
|
|
62
|
-
"@micromag/core": "^0.3.
|
|
63
|
-
"@micromag/element-audio": "^0.3.
|
|
64
|
-
"@micromag/element-background": "^0.3.
|
|
65
|
-
"@micromag/element-closed-captions": "^0.3.
|
|
66
|
-
"@micromag/element-container": "^0.3.
|
|
67
|
-
"@micromag/element-footer": "^0.3.
|
|
68
|
-
"@micromag/element-header": "^0.3.
|
|
69
|
-
"@micromag/element-layout": "^0.3.
|
|
70
|
-
"@micromag/transforms": "^0.3.
|
|
62
|
+
"@micromag/core": "^0.3.463",
|
|
63
|
+
"@micromag/element-audio": "^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-layout": "^0.3.463",
|
|
70
|
+
"@micromag/transforms": "^0.3.463",
|
|
71
71
|
"classnames": "^2.2.6",
|
|
72
72
|
"lodash": "^4.17.21",
|
|
73
73
|
"prop-types": "^15.7.2",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"access": "public",
|
|
79
79
|
"registry": "https://registry.npmjs.org/"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "a2eb34209cb2dcbcd6a15d1325a02778543a8bca"
|
|
82
82
|
}
|