Skip to content

Commit

Permalink
extend force video youtube link (#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
liatv authored May 29, 2024
1 parent 15ab325 commit c0c626b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => (
<div style={{ pointerEvents: pointerEvents ? 'initial' : 'none' }}>
Expand Down

0 comments on commit c0c626b

Please sign in to comment.