@micromag/element-video 0.3.152 → 0.3.153
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
|
@@ -120,7 +120,7 @@ var Video = function Video(_ref) {
|
|
|
120
120
|
var filesArray = useMemo(function () {
|
|
121
121
|
return getMediaFilesAsArray(files);
|
|
122
122
|
}, [files]);
|
|
123
|
-
var
|
|
123
|
+
var finalThumbnail = useMediaThumbnail(media, thumbnail);
|
|
124
124
|
|
|
125
125
|
var _ref9 = useRef(null);
|
|
126
126
|
|
|
@@ -271,7 +271,7 @@ var Video = function Video(_ref) {
|
|
|
271
271
|
autoPlay: autoPlay && !paused,
|
|
272
272
|
loop: loop,
|
|
273
273
|
muted: muted,
|
|
274
|
-
poster: shouldLoad && withPoster ?
|
|
274
|
+
poster: shouldLoad && withPoster && finalThumbnail !== null ? finalThumbnail.url || null : null,
|
|
275
275
|
preload: shouldLoad ? preload : 'none',
|
|
276
276
|
playsInline: playsInline,
|
|
277
277
|
crossOrigin: withoutCors ? 'anonymous' : null,
|
package/lib/index.js
CHANGED
|
@@ -131,7 +131,7 @@ var Video = function Video(_ref) {
|
|
|
131
131
|
var filesArray = React.useMemo(function () {
|
|
132
132
|
return utils.getMediaFilesAsArray(files);
|
|
133
133
|
}, [files]);
|
|
134
|
-
var
|
|
134
|
+
var finalThumbnail = hooks.useMediaThumbnail(media, thumbnail);
|
|
135
135
|
|
|
136
136
|
var _ref9 = React.useRef(null);
|
|
137
137
|
|
|
@@ -282,7 +282,7 @@ var Video = function Video(_ref) {
|
|
|
282
282
|
autoPlay: autoPlay && !paused,
|
|
283
283
|
loop: loop,
|
|
284
284
|
muted: muted,
|
|
285
|
-
poster: shouldLoad && withPoster ?
|
|
285
|
+
poster: shouldLoad && withPoster && finalThumbnail !== null ? finalThumbnail.url || null : null,
|
|
286
286
|
preload: shouldLoad ? preload : 'none',
|
|
287
287
|
playsInline: playsInline,
|
|
288
288
|
crossOrigin: withoutCors ? 'anonymous' : 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.153",
|
|
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.153",
|
|
56
|
+
"@micromag/element-closed-captions": "^0.3.153",
|
|
57
|
+
"@micromag/element-media-controls": "^0.3.153",
|
|
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": "3832de24bc306639b162f9778b3250ce1d05b2aa"
|
|
68
68
|
}
|