diff options
author | Hailey <me@haileyok.com> | 2024-08-12 14:58:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-12 14:58:41 -0700 |
commit | 134fcd35d84788659effd3a9d0b9e8952b85e0da (patch) | |
tree | cc66d25a4f894a3f77b061c01174617c29ab07f8 /src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx | |
parent | 7df2327424e948e54b9731e5ab651e889f38a772 (diff) | |
download | voidsky-134fcd35d84788659effd3a9d0b9e8952b85e0da.tar.zst |
[Video] Invert usage of `setAudioActive` (#4924)
Diffstat (limited to 'src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx')
-rw-r--r-- | src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx index 0b48edf79..5722ba73d 100644 --- a/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx +++ b/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx @@ -60,12 +60,12 @@ export function VideoEmbedInnerNative() { nativeControls={true} onEnterFullscreen={() => { PlatformInfo.setAudioCategory(AudioCategory.Playback) - PlatformInfo.setAudioActive(false) + PlatformInfo.setAudioActive(true) player.muted = false }} onExitFullscreen={() => { PlatformInfo.setAudioCategory(AudioCategory.Ambient) - PlatformInfo.setAudioActive(true) + PlatformInfo.setAudioActive(false) player.muted = true if (!player.playing) player.play() }} |