@micromag/screen-urbania-trivia 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 +5 -2
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -128,7 +128,10 @@ var UrbaniaTrivia = function UrbaniaTrivia(_ref) {
|
|
|
128
128
|
hideControls = _usePlaybackContext.hideControls,
|
|
129
129
|
currentQualityLevel = _usePlaybackContext.currentQualityLevel,
|
|
130
130
|
setCurrentQualityLevel = _usePlaybackContext.setCurrentQualityLevel;
|
|
131
|
-
var
|
|
131
|
+
var _usePlaybackMediaRef = usePlaybackMediaRef(current),
|
|
132
|
+
mediaRef = _usePlaybackMediaRef.ref,
|
|
133
|
+
_usePlaybackMediaRef$ = _usePlaybackMediaRef.isCurrent,
|
|
134
|
+
isCurrentMedia = _usePlaybackMediaRef$ === void 0 ? false : _usePlaybackMediaRef$;
|
|
132
135
|
useEffect(function () {
|
|
133
136
|
if (!current) {
|
|
134
137
|
return function () {};
|
|
@@ -370,7 +373,7 @@ var UrbaniaTrivia = function UrbaniaTrivia(_ref) {
|
|
|
370
373
|
resolution: resolution
|
|
371
374
|
}) : /*#__PURE__*/React.createElement(Video, Object.assign({}, finalVideo, {
|
|
372
375
|
mediaRef: mediaRef,
|
|
373
|
-
paused: !current || !playing,
|
|
376
|
+
paused: !current || !playing || !isCurrentMedia && isView,
|
|
374
377
|
muted: muted,
|
|
375
378
|
width: resizedVideoWidth,
|
|
376
379
|
height: resizedVideoHeight,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-urbania-trivia",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.796",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -62,15 +62,15 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@babel/runtime": "^7.13.10",
|
|
64
64
|
"@folklore/size": "^0.1.20",
|
|
65
|
-
"@micromag/core": "^0.3.
|
|
66
|
-
"@micromag/element-background": "^0.3.
|
|
67
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
68
|
-
"@micromag/element-closed-captions": "^0.3.
|
|
69
|
-
"@micromag/element-container": "^0.3.
|
|
70
|
-
"@micromag/element-heading": "^0.3.
|
|
71
|
-
"@micromag/element-image": "^0.3.
|
|
72
|
-
"@micromag/element-video": "^0.3.
|
|
73
|
-
"@micromag/transforms": "^0.3.
|
|
65
|
+
"@micromag/core": "^0.3.796",
|
|
66
|
+
"@micromag/element-background": "^0.3.796",
|
|
67
|
+
"@micromag/element-call-to-action": "^0.3.796",
|
|
68
|
+
"@micromag/element-closed-captions": "^0.3.796",
|
|
69
|
+
"@micromag/element-container": "^0.3.796",
|
|
70
|
+
"@micromag/element-heading": "^0.3.796",
|
|
71
|
+
"@micromag/element-image": "^0.3.796",
|
|
72
|
+
"@micromag/element-video": "^0.3.796",
|
|
73
|
+
"@micromag/transforms": "^0.3.796",
|
|
74
74
|
"classnames": "^2.2.6",
|
|
75
75
|
"lodash": "^4.17.21",
|
|
76
76
|
"prop-types": "^15.7.2",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"access": "public",
|
|
82
82
|
"registry": "https://registry.npmjs.org/"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "d3bf71e5a23e09d0cd26f543fb1327ff7eb27983"
|
|
85
85
|
}
|