[Video] Prevent screen from dimming while in full screen (#5637)

This commit is contained in:
Hailey
2024-10-07 14:12:17 -07:00
committed by GitHub
parent ee25b89801
commit 509b37fafa
3 changed files with 7 additions and 7 deletions
@@ -8,7 +8,7 @@ import {useLingui} from '@lingui/react'
import {HITSLOP_30} from '#/lib/constants'
import {useAutoplayDisabled} from '#/state/preferences'
import {useVideoMuteState} from 'view/com/util/post-embeds/VideoVolumeContext'
import {useVideoMuteState} from '#/view/com/util/post-embeds/VideoVolumeContext'
import {atoms as a, useTheme} from '#/alf'
import {useIsWithinMessage} from '#/components/dms/MessageContext'
import {Mute_Stroke2_Corner0_Rounded as MuteIcon} from '#/components/icons/Mute'
@@ -87,7 +87,7 @@ export const VideoEmbedInnerNative = React.forwardRef(
/>
<VideoControls
enterFullscreen={() => {
videoRef.current?.enterFullscreen()
videoRef.current?.enterFullscreen(true)
}}
toggleMuted={() => {
videoRef.current?.toggleMuted()