about summary refs log tree commit diff
path: root/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-08-09 16:52:23 -0700
committerGitHub <noreply@github.com>2024-08-09 16:52:23 -0700
commit65d6e561d429d6759d1eef674a964d1109a1afeb (patch)
tree083839fab56df7b13afcac312cff8aa22f05e6ac /src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx
parentc2131bb0392487f11b0c31fe68fdd3e847d62142 (diff)
downloadvoidsky-65d6e561d429d6759d1eef674a964d1109a1afeb.tar.zst
[Video] Resume background audio whenever muting video audio (#4915)
Diffstat (limited to 'src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx')
-rw-r--r--src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx
index 33148da01..0b48edf79 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.setAudioMixWithOthers(false)
+          PlatformInfo.setAudioActive(false)
           player.muted = false
         }}
         onExitFullscreen={() => {
           PlatformInfo.setAudioCategory(AudioCategory.Ambient)
-          PlatformInfo.setAudioMixWithOthers(true)
+          PlatformInfo.setAudioActive(true)
           player.muted = true
           if (!player.playing) player.play()
         }}
@@ -139,7 +139,7 @@ function Controls({
     const category = muted ? AudioCategory.Ambient : AudioCategory.Playback
 
     PlatformInfo.setAudioCategory(category)
-    PlatformInfo.setAudioMixWithOthers(mix)
+    PlatformInfo.setAudioActive(mix)
     player.muted = muted
   }, [player])