mirror of
https://github.com/jellyfin/jellyfin-expo.git
synced 2024-11-27 08:10:32 +00:00
Update audio mode settings
This commit is contained in:
parent
cbc30e18bc
commit
d71545be6b
@ -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
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user