2022-05-08 22:55:39 +02:00
|
|
|
import { Audio, InterruptionModeAndroid, InterruptionModeIOS } from 'expo-av'
|
2021-03-29 23:53:49 +02:00
|
|
|
import log from './log'
|
2021-01-07 19:13:09 +01:00
|
|
|
|
|
|
|
const audio = () => {
|
|
|
|
log('log', 'audio', 'setting audio playback default options')
|
|
|
|
Audio.setAudioModeAsync({
|
2022-11-20 22:02:19 +01:00
|
|
|
interruptionModeIOS: InterruptionModeIOS.MixWithOthers,
|
2022-11-20 17:39:36 +01:00
|
|
|
interruptionModeAndroid: InterruptionModeAndroid.DuckOthers,
|
|
|
|
staysActiveInBackground: false
|
2021-01-07 19:13:09 +01:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
export default audio
|