From 69164c640fef9c8315355391e0e6cb038440c431 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 1 Apr 2026 11:07:02 -0700 Subject: [PATCH] Keep screen awake when videos are playing (#10155) --- .../Embed/VideoEmbed/VideoEmbedInner/VideoEmbedInnerNative.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Post/Embed/VideoEmbed/VideoEmbedInner/VideoEmbedInnerNative.tsx b/src/components/Post/Embed/VideoEmbed/VideoEmbedInner/VideoEmbedInnerNative.tsx index 209ba10e72..946df787e7 100644 --- a/src/components/Post/Embed/VideoEmbed/VideoEmbedInner/VideoEmbedInnerNative.tsx +++ b/src/components/Post/Embed/VideoEmbed/VideoEmbedInner/VideoEmbedInnerNative.tsx @@ -13,6 +13,7 @@ import {Mute_Stroke2_Corner0_Rounded as MuteIcon} from '#/components/icons/Mute' import {Pause_Filled_Corner0_Rounded as PauseIcon} from '#/components/icons/Pause' import {Play_Filled_Corner0_Rounded as PlayIcon} from '#/components/icons/Play' import {SpeakerVolumeFull_Stroke2_Corner0_Rounded as UnmuteIcon} from '#/components/icons/Speaker' +import {KeepAwake} from '#/components/KeepAwake' import {MediaInsetBorder} from '#/components/MediaInsetBorder' import {useVideoMuteState} from '#/components/Post/Embed/VideoEmbed/VideoVolumeContext' import {GifPresentationControls} from '../GifPresentationControls' @@ -112,6 +113,7 @@ export function VideoEmbedInnerNative({ /> )} + ) }