mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-22 05:11:55 +01:00
Video Player: Auto-hide play button for iOS 15+ (#1462)
This commit is contained in:
parent
f3b474056c
commit
6dc26233c4
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user