Skip to content

Commit

Permalink
Merge pull request #371 from marinat/master
Browse files Browse the repository at this point in the history
Fix to work together with agora sdk
  • Loading branch information
bardram authored Jun 28, 2021
2 parents edcff7f + 2a85775 commit 6e39240
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public class SwiftAudioStreamerPlugin: NSObject, FlutterPlugin, FlutterStreamHan
func startRecording() {
engine = AVAudioEngine()

try! AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.record)
try! AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.playAndRecord, options: .mixWithOthers)
try! AVAudioSession.sharedInstance().setActive(true)

let input = engine.inputNode
let bus = 0
Expand Down

0 comments on commit 6e39240

Please sign in to comment.