@micromag/screen-video 0.3.607 → 0.3.610
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 +15 -15
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -86,25 +86,25 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
86
86
|
var shouldGotoNextScreenOnEnd = gotoNextScreenOnEnd && isView && current;
|
|
87
87
|
var _ref2 = video || {},
|
|
88
88
|
_ref2$autoPlay = _ref2.autoPlay,
|
|
89
|
-
autoPlay = _ref2$autoPlay ===
|
|
89
|
+
autoPlay = _ref2$autoPlay === undefined ? true : _ref2$autoPlay,
|
|
90
90
|
_ref2$loop = _ref2.loop,
|
|
91
|
-
loop = _ref2$loop ===
|
|
91
|
+
loop = _ref2$loop === undefined ? false : _ref2$loop,
|
|
92
92
|
_ref2$media = _ref2.media,
|
|
93
|
-
videoMedia = _ref2$media ===
|
|
93
|
+
videoMedia = _ref2$media === undefined ? null : _ref2$media,
|
|
94
94
|
_ref2$thumbnail = _ref2.thumbnail,
|
|
95
|
-
thumbnail = _ref2$thumbnail ===
|
|
95
|
+
thumbnail = _ref2$thumbnail === undefined ? null : _ref2$thumbnail,
|
|
96
96
|
_ref2$captions = _ref2.captions,
|
|
97
|
-
captions = _ref2$captions ===
|
|
97
|
+
captions = _ref2$captions === undefined ? null : _ref2$captions,
|
|
98
98
|
_ref2$closedCaptions = _ref2.closedCaptions,
|
|
99
|
-
closedCaptions = _ref2$closedCaptions ===
|
|
99
|
+
closedCaptions = _ref2$closedCaptions === undefined ? null : _ref2$closedCaptions,
|
|
100
100
|
_ref2$withSeekBar = _ref2.withSeekBar,
|
|
101
|
-
withSeekBar = _ref2$withSeekBar ===
|
|
101
|
+
withSeekBar = _ref2$withSeekBar === undefined ? false : _ref2$withSeekBar,
|
|
102
102
|
_ref2$withControls = _ref2.withControls,
|
|
103
|
-
withControls = _ref2$withControls ===
|
|
103
|
+
withControls = _ref2$withControls === undefined ? false : _ref2$withControls,
|
|
104
104
|
_ref2$color = _ref2.color,
|
|
105
|
-
color = _ref2$color ===
|
|
105
|
+
color = _ref2$color === undefined ? null : _ref2$color,
|
|
106
106
|
_ref2$progressColor = _ref2.progressColor,
|
|
107
|
-
progressColor = _ref2$progressColor ===
|
|
107
|
+
progressColor = _ref2$progressColor === undefined ? null : _ref2$progressColor;
|
|
108
108
|
var _usePlaybackContext = usePlaybackContext(),
|
|
109
109
|
playing = _usePlaybackContext.playing,
|
|
110
110
|
muted = _usePlaybackContext.muted,
|
|
@@ -183,7 +183,7 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
183
183
|
if (time !== null && typeof time.currentTarget !== 'undefined') {
|
|
184
184
|
var _ref3 = time.currentTarget || {},
|
|
185
185
|
_ref3$currentTime = _ref3.currentTime,
|
|
186
|
-
targetTime = _ref3$currentTime ===
|
|
186
|
+
targetTime = _ref3$currentTime === undefined ? 0 : _ref3$currentTime;
|
|
187
187
|
setCurrentTime(targetTime);
|
|
188
188
|
} else {
|
|
189
189
|
setCurrentTime(0);
|
|
@@ -240,16 +240,16 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
240
240
|
}, [hasVideo, video, isPreview, isStatic, isCapture, autoPlay, current]);
|
|
241
241
|
var _ref6 = videoMedia || {},
|
|
242
242
|
_ref6$metadata = _ref6.metadata,
|
|
243
|
-
videoMetadata = _ref6$metadata ===
|
|
243
|
+
videoMetadata = _ref6$metadata === undefined ? null : _ref6$metadata,
|
|
244
244
|
_ref6$url = _ref6.url,
|
|
245
|
-
videoUrl = _ref6$url ===
|
|
245
|
+
videoUrl = _ref6$url === undefined ? null : _ref6$url;
|
|
246
246
|
var finalThumbnail = useMediaThumbnail(videoMedia, thumbnail);
|
|
247
247
|
var hasVideoUrl = videoUrl !== null;
|
|
248
248
|
var _ref7 = videoMetadata || {},
|
|
249
249
|
_ref7$width = _ref7.width,
|
|
250
|
-
videoWidth = _ref7$width ===
|
|
250
|
+
videoWidth = _ref7$width === undefined ? 0 : _ref7$width,
|
|
251
251
|
_ref7$height = _ref7.height,
|
|
252
|
-
videoHeight = _ref7$height ===
|
|
252
|
+
videoHeight = _ref7$height === undefined ? 0 : _ref7$height;
|
|
253
253
|
var _getSizeWithinBounds = getSizeWithinBounds(videoWidth, videoHeight, width, height, {
|
|
254
254
|
cover: fullscreen
|
|
255
255
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-video",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.610",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@babel/runtime": "^7.13.10",
|
|
63
63
|
"@folklore/size": "^0.1.20",
|
|
64
|
-
"@micromag/core": "^0.3.
|
|
65
|
-
"@micromag/element-background": "^0.3.
|
|
66
|
-
"@micromag/element-closed-captions": "^0.3.
|
|
67
|
-
"@micromag/element-container": "^0.3.
|
|
68
|
-
"@micromag/element-footer": "^0.3.
|
|
69
|
-
"@micromag/element-header": "^0.3.
|
|
70
|
-
"@micromag/element-image": "^0.3.
|
|
71
|
-
"@micromag/element-video": "^0.3.
|
|
72
|
-
"@micromag/transforms": "^0.3.
|
|
64
|
+
"@micromag/core": "^0.3.610",
|
|
65
|
+
"@micromag/element-background": "^0.3.610",
|
|
66
|
+
"@micromag/element-closed-captions": "^0.3.610",
|
|
67
|
+
"@micromag/element-container": "^0.3.610",
|
|
68
|
+
"@micromag/element-footer": "^0.3.610",
|
|
69
|
+
"@micromag/element-header": "^0.3.610",
|
|
70
|
+
"@micromag/element-image": "^0.3.610",
|
|
71
|
+
"@micromag/element-video": "^0.3.610",
|
|
72
|
+
"@micromag/transforms": "^0.3.610",
|
|
73
73
|
"classnames": "^2.2.6",
|
|
74
74
|
"lodash": "^4.17.21",
|
|
75
75
|
"prop-types": "^15.7.2",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"access": "public",
|
|
81
81
|
"registry": "https://registry.npmjs.org/"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "7a002b920dc02d8daa6dfd6aedc1a97951a8e939"
|
|
84
84
|
}
|