@micromag/screen-video 0.3.460 → 0.3.463
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 +6 -5
- package/lib/index.js +6 -5
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -254,17 +254,17 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
254
254
|
var onVideoReady = useCallback(function () {
|
|
255
255
|
setReady(true);
|
|
256
256
|
}, [setReady]);
|
|
257
|
-
|
|
257
|
+
useCallback(function () {
|
|
258
258
|
if (playing && current) {
|
|
259
259
|
setPlaying(false);
|
|
260
260
|
}
|
|
261
261
|
}, [current, playing, setPlaying]);
|
|
262
262
|
var onPlayError = useCallback(function () {
|
|
263
|
-
if (isView && playing && current && hasVideoUrl) {
|
|
263
|
+
if (isView && playing && current && hasVideoUrl && autoPlay) {
|
|
264
264
|
setPlaying(false);
|
|
265
265
|
setControlsSuggestPlay(true);
|
|
266
266
|
}
|
|
267
|
-
}, [isView, current, playing, hasVideoUrl, setPlaying, setControlsSuggestPlay]);
|
|
267
|
+
}, [isView, current, playing, hasVideoUrl, autoPlay, setPlaying, setControlsSuggestPlay]);
|
|
268
268
|
return /*#__PURE__*/React.createElement("div", {
|
|
269
269
|
className: classNames([styles.container, _defineProperty(_defineProperty({}, className, className !== null), styles.fullscreen, fullscreen)]),
|
|
270
270
|
"data-screen-ready": isStatic || isCapture || ready
|
|
@@ -334,8 +334,9 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
334
334
|
onProgressStep: onProgressStep,
|
|
335
335
|
onDurationChange: onDurationChange,
|
|
336
336
|
onSeeked: onSeeked,
|
|
337
|
-
onEnded: onEnded
|
|
338
|
-
|
|
337
|
+
onEnded: onEnded
|
|
338
|
+
// onSuspended={onSuspended}
|
|
339
|
+
,
|
|
339
340
|
onPlayError: onPlayError,
|
|
340
341
|
focusable: current && isView,
|
|
341
342
|
shouldLoad: mediaShouldLoad
|
package/lib/index.js
CHANGED
|
@@ -258,17 +258,17 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
258
258
|
var onVideoReady = React.useCallback(function () {
|
|
259
259
|
setReady(true);
|
|
260
260
|
}, [setReady]);
|
|
261
|
-
|
|
261
|
+
React.useCallback(function () {
|
|
262
262
|
if (playing && current) {
|
|
263
263
|
setPlaying(false);
|
|
264
264
|
}
|
|
265
265
|
}, [current, playing, setPlaying]);
|
|
266
266
|
var onPlayError = React.useCallback(function () {
|
|
267
|
-
if (isView && playing && current && hasVideoUrl) {
|
|
267
|
+
if (isView && playing && current && hasVideoUrl && autoPlay) {
|
|
268
268
|
setPlaying(false);
|
|
269
269
|
setControlsSuggestPlay(true);
|
|
270
270
|
}
|
|
271
|
-
}, [isView, current, playing, hasVideoUrl, setPlaying, setControlsSuggestPlay]);
|
|
271
|
+
}, [isView, current, playing, hasVideoUrl, autoPlay, setPlaying, setControlsSuggestPlay]);
|
|
272
272
|
return /*#__PURE__*/React.createElement("div", {
|
|
273
273
|
className: classNames([styles.container, _defineProperty(_defineProperty({}, className, className !== null), styles.fullscreen, fullscreen)]),
|
|
274
274
|
"data-screen-ready": isStatic || isCapture || ready
|
|
@@ -338,8 +338,9 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
338
338
|
onProgressStep: onProgressStep,
|
|
339
339
|
onDurationChange: onDurationChange,
|
|
340
340
|
onSeeked: onSeeked,
|
|
341
|
-
onEnded: onEnded
|
|
342
|
-
|
|
341
|
+
onEnded: onEnded
|
|
342
|
+
// onSuspended={onSuspended}
|
|
343
|
+
,
|
|
343
344
|
onPlayError: onPlayError,
|
|
344
345
|
focusable: current && isView,
|
|
345
346
|
shouldLoad: mediaShouldLoad
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-video",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.463",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@babel/runtime": "^7.13.10",
|
|
62
62
|
"@folklore/size": "^0.1.20",
|
|
63
|
-
"@micromag/core": "^0.3.
|
|
64
|
-
"@micromag/element-background": "^0.3.
|
|
65
|
-
"@micromag/element-closed-captions": "^0.3.
|
|
66
|
-
"@micromag/element-container": "^0.3.
|
|
67
|
-
"@micromag/element-footer": "^0.3.
|
|
68
|
-
"@micromag/element-header": "^0.3.
|
|
69
|
-
"@micromag/element-image": "^0.3.
|
|
70
|
-
"@micromag/element-video": "^0.3.
|
|
71
|
-
"@micromag/transforms": "^0.3.
|
|
63
|
+
"@micromag/core": "^0.3.463",
|
|
64
|
+
"@micromag/element-background": "^0.3.463",
|
|
65
|
+
"@micromag/element-closed-captions": "^0.3.463",
|
|
66
|
+
"@micromag/element-container": "^0.3.463",
|
|
67
|
+
"@micromag/element-footer": "^0.3.463",
|
|
68
|
+
"@micromag/element-header": "^0.3.463",
|
|
69
|
+
"@micromag/element-image": "^0.3.463",
|
|
70
|
+
"@micromag/element-video": "^0.3.463",
|
|
71
|
+
"@micromag/transforms": "^0.3.463",
|
|
72
72
|
"classnames": "^2.2.6",
|
|
73
73
|
"lodash": "^4.17.21",
|
|
74
74
|
"prop-types": "^15.7.2",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"access": "public",
|
|
80
80
|
"registry": "https://registry.npmjs.org/"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "a2eb34209cb2dcbcd6a15d1325a02778543a8bca"
|
|
83
83
|
}
|