Skip to content

Commit

Permalink
fix volume +- buttons
Browse files Browse the repository at this point in the history
The category set on audioSession made volume buttons unusable once the start function was called
  • Loading branch information
mirupal authored Dec 20, 2018
1 parent c79e510 commit a9db550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/src/ios/DBMeter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ import AVFoundation

do {
let audioSession: AVAudioSession = AVAudioSession.sharedInstance()
try audioSession.setCategory(AVAudioSessionCategoryRecord)
try audioSession.setCategory(AVAudioSessionCategoryPlayAndRecord)
try audioSession.setActive(true)

self.audioRecorder = try AVAudioRecorder(url: url, settings: settings)
Expand Down

0 comments on commit a9db550

Please sign in to comment.