diff options
author | Hailey <me@haileyok.com> | 2024-08-09 14:35:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-09 14:35:26 -0700 |
commit | 5bfe5aa503d73e687ccc048efc5138edea97bea3 (patch) | |
tree | 2777c1371e9c7a1f7d4e31e50b1bd0137ec82e67 /src/App.native.tsx | |
parent | dd0d50a6f0f69d8b58f7dd26303b6b89528d2d04 (diff) | |
download | voidsky-5bfe5aa503d73e687ccc048efc5138edea97bea3.tar.zst |
[Video] More tweaks to `AVAudioSession` options (#4910)
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r-- | src/App.native.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx index 29a6a738c..71b53e7a3 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -61,7 +61,7 @@ import {Provider as PortalProvider} from '#/components/Portal' import {Splash} from '#/Splash' import {Provider as TourProvider} from '#/tours' import {BackgroundNotificationPreferencesProvider} from '../modules/expo-background-notification-handler/src/BackgroundNotificationHandlerProvider' -import {PlatformInfo} from '../modules/expo-bluesky-swiss-army' +import {AudioCategory, PlatformInfo} from '../modules/expo-bluesky-swiss-army' SplashScreen.preventAutoHideAsync() @@ -158,6 +158,7 @@ function App() { const [isReady, setReady] = useState(false) React.useEffect(() => { + PlatformInfo.setAudioCategory(AudioCategory.Ambient) PlatformInfo.setAudioMixWithOthers(true) initPersistedState().then(() => setReady(true)) }, []) |