@micromag/element-video 0.3.194 → 0.3.200
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 -3
- package/lib/index.js +2 -3
- package/package.json +5 -5
package/es/index.js
CHANGED
|
@@ -275,7 +275,6 @@ var Video = function Video(_ref) {
|
|
|
275
275
|
if (paused && !isPaused) {
|
|
276
276
|
element.pause();
|
|
277
277
|
} else if (!paused && isPaused) {
|
|
278
|
-
// element.muted = muted;
|
|
279
278
|
element.play();
|
|
280
279
|
}
|
|
281
280
|
}, [paused]);
|
|
@@ -306,7 +305,7 @@ var Video = function Video(_ref) {
|
|
|
306
305
|
mediaRef.current = newRef;
|
|
307
306
|
}
|
|
308
307
|
},
|
|
309
|
-
src: sourceFiles === null || sourceFiles.length === 0 ? mediaUrl : null,
|
|
308
|
+
src: sourceFiles === null || sourceFiles.length === 0 ? "".concat(mediaUrl, "#t=0.1") : null,
|
|
310
309
|
autoPlay: autoPlay && !paused,
|
|
311
310
|
loop: loop,
|
|
312
311
|
muted: muted,
|
|
@@ -331,7 +330,7 @@ var Video = function Video(_ref) {
|
|
|
331
330
|
sourceMime = _ref8.mime;
|
|
332
331
|
return /*#__PURE__*/React.createElement("source", {
|
|
333
332
|
key: "".concat(sourceUrl, "-").concat(sourceMime),
|
|
334
|
-
src: sourceUrl,
|
|
333
|
+
src: sourceUrl !== null ? "".concat(sourceUrl, "#t=0.1") : null,
|
|
335
334
|
type: sourceMime
|
|
336
335
|
});
|
|
337
336
|
})) : null);
|
package/lib/index.js
CHANGED
|
@@ -287,7 +287,6 @@ var Video = function Video(_ref) {
|
|
|
287
287
|
if (paused && !isPaused) {
|
|
288
288
|
element.pause();
|
|
289
289
|
} else if (!paused && isPaused) {
|
|
290
|
-
// element.muted = muted;
|
|
291
290
|
element.play();
|
|
292
291
|
}
|
|
293
292
|
}, [paused]);
|
|
@@ -318,7 +317,7 @@ var Video = function Video(_ref) {
|
|
|
318
317
|
mediaRef.current = newRef;
|
|
319
318
|
}
|
|
320
319
|
},
|
|
321
|
-
src: sourceFiles === null || sourceFiles.length === 0 ? mediaUrl : null,
|
|
320
|
+
src: sourceFiles === null || sourceFiles.length === 0 ? "".concat(mediaUrl, "#t=0.1") : null,
|
|
322
321
|
autoPlay: autoPlay && !paused,
|
|
323
322
|
loop: loop,
|
|
324
323
|
muted: muted,
|
|
@@ -343,7 +342,7 @@ var Video = function Video(_ref) {
|
|
|
343
342
|
sourceMime = _ref8.mime;
|
|
344
343
|
return /*#__PURE__*/React__default["default"].createElement("source", {
|
|
345
344
|
key: "".concat(sourceUrl, "-").concat(sourceMime),
|
|
346
|
-
src: sourceUrl,
|
|
345
|
+
src: sourceUrl !== null ? "".concat(sourceUrl, "#t=0.1") : null,
|
|
347
346
|
type: sourceMime
|
|
348
347
|
});
|
|
349
348
|
})) : null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/element-video",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.200",
|
|
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.196",
|
|
56
|
+
"@micromag/element-closed-captions": "^0.3.196",
|
|
57
|
+
"@micromag/element-media-controls": "^0.3.196",
|
|
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": "10397ff0400180be0d48d3368fda5c268b71df45"
|
|
68
68
|
}
|