diff --git a/ios/AudioController.swift b/ios/AudioController.swift index bb0cbaf..6479b34 100644 --- a/ios/AudioController.swift +++ b/ios/AudioController.swift @@ -27,7 +27,7 @@ public class AudioController { private func activateAudioSession() throws { let audioSession = AVAudioSession.sharedInstance() - try audioSession.setCategory(.playback, mode: .default, options: [.mixWithOthers, .duckOthers]) + try audioSession.setCategory(.playAndRecord, mode: .default, options: [.mixWithOthers, .duckOthers]) try audioSession.setActive(true, options: .notifyOthersOnDeactivation) } diff --git a/package.json b/package.json index 1b5d4af..f8609ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mykin-ai/expo-audio-stream", - "version": "0.1.29", + "version": "0.1.30", "description": "Expo Play Audio Stream module", "main": "build/index.js", "types": "build/index.d.ts",