Skip to content

Commit

Permalink
Fix to work together with agora sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
marinat committed Jun 23, 2021
1 parent afad156 commit 6bbe619
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 6bbe619

Please sign in to comment.