mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Partial fix #90
Now playing gifv won't interrupt existing audio playing. But when switching app state, it still will.
This commit is contained in:
@ -1,11 +1,14 @@
|
||||
import { Audio } from 'expo-av'
|
||||
import log from "./log"
|
||||
import log from './log'
|
||||
|
||||
const audio = () => {
|
||||
log('log', 'audio', 'setting audio playback default options')
|
||||
Audio.setAudioModeAsync({
|
||||
playsInSilentModeIOS: true,
|
||||
interruptionModeIOS: 1
|
||||
interruptionModeIOS: Audio.INTERRUPTION_MODE_IOS_DO_NOT_MIX,
|
||||
interruptionModeAndroid: Audio.INTERRUPTION_MODE_ANDROID_DO_NOT_MIX,
|
||||
shouldDuckAndroid: true,
|
||||
playThroughEarpieceAndroid: true
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user