@micromag/screen-video 0.3.792 → 0.3.796
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 -3
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -117,13 +117,16 @@ var VideoScreen = function VideoScreen(_ref) {
|
|
|
117
117
|
hideControls = _usePlaybackContext.hideControls,
|
|
118
118
|
currentQualityLevel = _usePlaybackContext.currentQualityLevel,
|
|
119
119
|
setCurrentQualityLevel = _usePlaybackContext.setCurrentQualityLevel;
|
|
120
|
-
var
|
|
120
|
+
var _usePlaybackMediaRef = usePlaybackMediaRef(current),
|
|
121
|
+
mediaRef = _usePlaybackMediaRef.ref,
|
|
122
|
+
_usePlaybackMediaRef$ = _usePlaybackMediaRef.isCurrent,
|
|
123
|
+
isCurrentMedia = _usePlaybackMediaRef$ === void 0 ? false : _usePlaybackMediaRef$;
|
|
121
124
|
var _useState = useState(false),
|
|
122
125
|
_useState2 = _slicedToArray(_useState, 2),
|
|
123
126
|
hasPlayed = _useState2[0],
|
|
124
127
|
setHasPlayed = _useState2[1];
|
|
125
|
-
var backgroundPlaying = current && (isView || isEdit);
|
|
126
|
-
var videoPlaying = current && (isView || isEdit) && playing;
|
|
128
|
+
var backgroundPlaying = current && (isView || isEdit) && (isCurrentMedia || !isView);
|
|
129
|
+
var videoPlaying = current && (isView || isEdit) && playing && (isCurrentMedia || !isView);
|
|
127
130
|
var shouldDisplayPoster = isPreview || isCapture;
|
|
128
131
|
useEffect(function () {
|
|
129
132
|
if (!current) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-video",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.796",
|
|
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.796",
|
|
65
|
+
"@micromag/element-background": "^0.3.796",
|
|
66
|
+
"@micromag/element-closed-captions": "^0.3.796",
|
|
67
|
+
"@micromag/element-container": "^0.3.796",
|
|
68
|
+
"@micromag/element-footer": "^0.3.796",
|
|
69
|
+
"@micromag/element-header": "^0.3.796",
|
|
70
|
+
"@micromag/element-image": "^0.3.796",
|
|
71
|
+
"@micromag/element-video": "^0.3.796",
|
|
72
|
+
"@micromag/transforms": "^0.3.796",
|
|
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": "d3bf71e5a23e09d0cd26f543fb1327ff7eb27983"
|
|
84
84
|
}
|