-
Notifications
You must be signed in to change notification settings - Fork 775
录音过短时没有readyStopRecord #45
Copy link
Copy link
Open
Description
录音过短时没有stop recorder, 录音一直在录制,当超过60s时会回调stopRecord
if self.audioTimeInterval.int32Value > 60 { self.stopRecord() }
导致还会录音成功。
虽然在stopRecord里面调用了 self.operationQueue.cancelAllOperations() 如果录音时长小于0.5s时,但是子线程的while循环一直在跑,因为recorder.isRecording 是true
cancelAllOperations() 的文档是这样描述:
For operations that are already executing, the operation object itself must check for cancellation and stop what it is doing so that it can move to the finished state.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels