From 1e748810f3d8fceab57ef52111558194ee5a3f8d Mon Sep 17 00:00:00 2001 From: liatv Date: Wed, 29 May 2024 12:07:15 +0300 Subject: [PATCH] extend force video youtube link --- .../gallery/src/components/item/videos/videoItemWrapper.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/gallery/src/components/item/videos/videoItemWrapper.js b/packages/gallery/src/components/item/videos/videoItemWrapper.js index 62dcbe671..c2d5b0fbc 100644 --- a/packages/gallery/src/components/item/videos/videoItemWrapper.js +++ b/packages/gallery/src/components/item/videos/videoItemWrapper.js @@ -7,7 +7,9 @@ import VideoItemPlaceholder from './videoItemPlaceholder'; const isIos = utils.isiOS(); const useTransparentPlayButtonAndForceLoadVideo = (props) => - (props.videoUrl || props.url).includes('youtube.com') && isIos; + ((props.videoUrl || props.url).includes('youtube.com') || + (props.videoUrl || props.url).includes('youtu.be')) && + isIos; const VideoPlayButton = ({ pointerEvents }) => (