@micromag/element-video 0.3.588 → 0.3.590
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/package.json +4 -4
package/es/index.js
CHANGED
|
@@ -414,7 +414,7 @@ var Video = function Video(_ref) {
|
|
|
414
414
|
mediaRef.current = newRef;
|
|
415
415
|
}
|
|
416
416
|
},
|
|
417
|
-
src: (sourceFiles === null || sourceFiles.length === 0) && (hlsSources === null || hlsSources.length === 0) ? "".concat(mediaUrl, "#t=0.001") : null,
|
|
417
|
+
src: (sourceFiles === null || sourceFiles.length === 0) && (hlsSources === null || hlsSources.length === 0) && shouldLoad ? "".concat(mediaUrl, "#t=0.001") : null,
|
|
418
418
|
autoPlay: autoPlay && !paused,
|
|
419
419
|
loop: loop,
|
|
420
420
|
muted: muted,
|
|
@@ -438,7 +438,7 @@ var Video = function Video(_ref) {
|
|
|
438
438
|
"data-hls": hlsJs !== null,
|
|
439
439
|
"data-ts-offset": hlsTsOffset,
|
|
440
440
|
"aria-hidden": true
|
|
441
|
-
}, (sourceFiles || []).map(function (_ref15) {
|
|
441
|
+
}, (shouldLoad ? sourceFiles || [] : []).map(function (_ref15) {
|
|
442
442
|
var sourceUrl = _ref15.url,
|
|
443
443
|
sourceMime = _ref15.mime;
|
|
444
444
|
return /*#__PURE__*/React.createElement("source", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-video",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.590",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@babel/runtime": "^7.13.10",
|
|
62
|
-
"@micromag/core": "^0.3.
|
|
63
|
-
"@micromag/element-closed-captions": "^0.3.
|
|
62
|
+
"@micromag/core": "^0.3.590",
|
|
63
|
+
"@micromag/element-closed-captions": "^0.3.590",
|
|
64
64
|
"classnames": "^2.2.6",
|
|
65
65
|
"hls.js": "^1.5.15",
|
|
66
66
|
"lodash": "^4.17.21",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"access": "public",
|
|
73
73
|
"registry": "https://registry.npmjs.org/"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "aee5033c29da327111287f71fd59cb77f469306a"
|
|
76
76
|
}
|