@micromag/element-video 0.3.178 → 0.3.182
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 +5 -5
package/es/index.js
CHANGED
|
@@ -248,8 +248,7 @@ var Video = function Video(_ref) {
|
|
|
248
248
|
useEffect(function () {
|
|
249
249
|
var _ref$current2 = _ref9.current,
|
|
250
250
|
element = _ref$current2 === void 0 ? null : _ref$current2;
|
|
251
|
-
var canLoad = preload !== 'none' && preload !== 'metadata' && shouldLoad;
|
|
252
|
-
|
|
251
|
+
var canLoad = preload !== 'none' && preload !== 'metadata' && shouldLoad;
|
|
253
252
|
var preloadHasChanged = firstPreloadRef.current !== preload;
|
|
254
253
|
var shouldLoadHasChanged = firstShouldLoadRef.current !== shouldLoad;
|
|
255
254
|
|
|
@@ -276,6 +275,7 @@ var Video = function Video(_ref) {
|
|
|
276
275
|
if (paused && !isPaused) {
|
|
277
276
|
element.pause();
|
|
278
277
|
} else if (!paused && isPaused) {
|
|
278
|
+
element.muted = true;
|
|
279
279
|
element.play();
|
|
280
280
|
}
|
|
281
281
|
}, [paused]);
|
package/lib/index.js
CHANGED
|
@@ -260,8 +260,7 @@ var Video = function Video(_ref) {
|
|
|
260
260
|
React.useEffect(function () {
|
|
261
261
|
var _ref$current2 = _ref9.current,
|
|
262
262
|
element = _ref$current2 === void 0 ? null : _ref$current2;
|
|
263
|
-
var canLoad = preload !== 'none' && preload !== 'metadata' && shouldLoad;
|
|
264
|
-
|
|
263
|
+
var canLoad = preload !== 'none' && preload !== 'metadata' && shouldLoad;
|
|
265
264
|
var preloadHasChanged = firstPreloadRef.current !== preload;
|
|
266
265
|
var shouldLoadHasChanged = firstShouldLoadRef.current !== shouldLoad;
|
|
267
266
|
|
|
@@ -288,6 +287,7 @@ var Video = function Video(_ref) {
|
|
|
288
287
|
if (paused && !isPaused) {
|
|
289
288
|
element.pause();
|
|
290
289
|
} else if (!paused && isPaused) {
|
|
290
|
+
element.muted = true;
|
|
291
291
|
element.play();
|
|
292
292
|
}
|
|
293
293
|
}, [paused]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-video",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.182",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"@fortawesome/fontawesome-svg-core": "^1.2.32",
|
|
53
53
|
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
54
54
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
55
|
-
"@micromag/core": "^0.3.
|
|
56
|
-
"@micromag/element-closed-captions": "^0.3.
|
|
57
|
-
"@micromag/element-media-controls": "^0.3.
|
|
55
|
+
"@micromag/core": "^0.3.182",
|
|
56
|
+
"@micromag/element-closed-captions": "^0.3.182",
|
|
57
|
+
"@micromag/element-media-controls": "^0.3.182",
|
|
58
58
|
"classnames": "^2.2.6",
|
|
59
59
|
"lodash": "^4.17.21",
|
|
60
60
|
"prop-types": "^15.7.2",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "3fdd215df2c83f292063fba88077d88be5718955"
|
|
68
68
|
}
|