jjzjj

RPRecordingErrorDomain

全部标签

ios - Replaykit 生成日志 "The operation couldn’ t 完成。 (com.apple.ReplayKit.RPRecordingErrorDomain error -5803.)”开始录音

funcstartRecording(){letrecorder=RPScreenRecorder.shared()recorder.startRecording(withMicrophoneEnabled:false,handler:{(error)inifletunwrappedError=error{print(unwrappedError.localizedDescription)}else{self.videoRecButton.addTarget(self,action:#selector(self.stopRecording),for:.touchUpInside)}})