From d71545be6b02eb1e8e28d250444d743b1f6de2e2 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Mon, 21 Mar 2022 00:34:57 -0400 Subject: [PATCH] Update audio mode settings --- components/AudioPlayer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/AudioPlayer.js b/components/AudioPlayer.js index f2b2f84..68370f6 100644 --- a/components/AudioPlayer.js +++ b/components/AudioPlayer.js @@ -20,7 +20,10 @@ const AudioPlayer = observer(() => { // Set the audio mode when the audio player is created useEffect(() => { Audio.setAudioModeAsync({ + staysActiveInBackground: true, interruptionModeAndroid: Audio.INTERRUPTION_MODE_ANDROID_DO_NOT_MIX, + playThroughEarpieceAndroid: false, + shouldDuckAndroid: true, interruptionModeIOS: Audio.INTERRUPTION_MODE_IOS_DO_NOT_MIX, playsInSilentModeIOS: true });