Video Player: Hide download button in fullscreen (#2176)

This commit is contained in:
Alexander Zinchuk 2022-12-06 13:29:44 +01:00
parent 6b3c779974
commit 980e1e062d

View File

@ -245,7 +245,7 @@ const VideoPlayer: FC<OwnProps> = ({
<video <video
ref={videoRef} ref={videoRef}
autoPlay={IS_TOUCH_ENV} autoPlay={IS_TOUCH_ENV}
controlsList={isProtected ? 'nodownload' : undefined} controlsList="nodownload"
playsInline playsInline
loop={isGif || duration <= MAX_LOOP_DURATION} loop={isGif || duration <= MAX_LOOP_DURATION}
// This is to force autoplaying on mobiles // This is to force autoplaying on mobiles