You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The callback of AVAudioSession.requestRecordPermission may not be called on main thread, so the timer in start method may doesn't start, due to absence of runloop.
The solution:
AVAudioSession.sharedInstance().requestRecordPermission(){ allowed inDispatchQueue.main.async{
if allowed {self.start(url)}else{self.update(nil)}}}
The text was updated successfully, but these errors were encountered:
The callback of
AVAudioSession.requestRecordPermission
may not be called on main thread, so the timer instart
method may doesn't start, due to absence of runloop.The solution:
The text was updated successfully, but these errors were encountered: