Update audio mode settings

This commit is contained in:
Bill Thornton 2022-03-21 00:34:57 -04:00
parent cbc30e18bc
commit d71545be6b

View File

@ -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
});