Skip to content

Commit

Permalink
Merge pull request cph-cachet#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 3b7db8d + 6bbe619 commit fc997a1
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 fc997a1

Please sign in to comment.