@gravity-ui/page-constructor 4.27.0-alpha.0 → 4.28.0-alpha.0
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.
|
@@ -213,7 +213,6 @@ exports.ReactPlayerBlock = react_1.default.forwardRef((props, originRef) => {
|
|
|
213
213
|
}, [changeMute, customControlsType, muted, onPlayClick]);
|
|
214
214
|
const onFocusIn = (0, react_1.useCallback)(() => setHovered(true), []);
|
|
215
215
|
const onFocusOut = (0, react_1.useCallback)(() => setHovered(false), []);
|
|
216
|
-
const isPipEnabled = !isMobile || !props.autoplay;
|
|
217
216
|
return (react_1.default.createElement("div", { className: b({
|
|
218
217
|
wrapper: !currentHeight,
|
|
219
218
|
controls,
|
|
@@ -223,9 +222,9 @@ exports.ReactPlayerBlock = react_1.default.forwardRef((props, originRef) => {
|
|
|
223
222
|
: onPause, onProgress: onProgress, onEnded: onEnded, "aria-label": ariaLabel, config: {
|
|
224
223
|
file: {
|
|
225
224
|
attributes: {
|
|
226
|
-
pip:
|
|
227
|
-
playsinline:
|
|
228
|
-
disablepictureinpicture:
|
|
225
|
+
pip: props.autoplay ? 'false' : undefined,
|
|
226
|
+
playsinline: props.autoplay ? '' : undefined,
|
|
227
|
+
disablepictureinpicture: props.autoplay ? '' : undefined,
|
|
229
228
|
},
|
|
230
229
|
},
|
|
231
230
|
} }),
|
|
@@ -210,7 +210,6 @@ export const ReactPlayerBlock = React.forwardRef((props, originRef) => {
|
|
|
210
210
|
}, [changeMute, customControlsType, muted, onPlayClick]);
|
|
211
211
|
const onFocusIn = useCallback(() => setHovered(true), []);
|
|
212
212
|
const onFocusOut = useCallback(() => setHovered(false), []);
|
|
213
|
-
const isPipEnabled = !isMobile || !props.autoplay;
|
|
214
213
|
return (React.createElement("div", { className: b({
|
|
215
214
|
wrapper: !currentHeight,
|
|
216
215
|
controls,
|
|
@@ -220,9 +219,9 @@ export const ReactPlayerBlock = React.forwardRef((props, originRef) => {
|
|
|
220
219
|
: onPause, onProgress: onProgress, onEnded: onEnded, "aria-label": ariaLabel, config: {
|
|
221
220
|
file: {
|
|
222
221
|
attributes: {
|
|
223
|
-
pip:
|
|
224
|
-
playsinline:
|
|
225
|
-
disablepictureinpicture:
|
|
222
|
+
pip: props.autoplay ? 'false' : undefined,
|
|
223
|
+
playsinline: props.autoplay ? '' : undefined,
|
|
224
|
+
disablepictureinpicture: props.autoplay ? '' : undefined,
|
|
226
225
|
},
|
|
227
226
|
},
|
|
228
227
|
} }),
|