Video Player: Auto-hide play button for iOS 15+ (#1462)

This commit is contained in:
Alexander Zinchuk 2021-09-24 14:37:42 +03:00
parent f3b474056c
commit 6dc26233c4

View File

@ -175,6 +175,7 @@ const VideoPlayer: FC<OwnProps> = ({
id="media-viewer-video"
// @ts-ignore
style={videoStyle}
onPlay={IS_IOS ? () => setIsPlayed(true) : undefined}
onEnded={handleEnded}
onClick={!IS_SINGLE_COLUMN_LAYOUT ? togglePlayState : undefined}
onDoubleClick={handleFullscreenChange}