Wyler icon indicating copy to clipboard operation
Wyler copied to clipboard

Cannot refuse to start and then start again and allow

Open riderx opened this issue 4 years ago • 1 comments

if user refuse to allow recorder and user click again to start and allow recorder

        implementation.startRecording(saveToCameraRoll: true, errorHandler: { error in
            debugPrint("Error when recording \(error)")
        })

I get this error the second time :

2021-12-02 20:28:40.423860+0000 App[6134:9790803]  [ERROR] -[RPScreenRecorder startCaptureWithHandler:completionHandler:]_block_invoke_2:482 failed to start due to error: Error Domain=com.apple.ReplayKit.RPRecordingErrorDomain Code=-5801 "The user declined application recording" UserInfo={NSLocalizedDescription=The user declined application recording}
2021-12-02 20:28:40.424106+0000 App[6134:9790237]  [ERROR] -[RPScreenRecorder startCaptureWithHandler:completionHandler:]_block_invoke:505 undefined completion handler

riderx avatar Dec 02 '21 20:12 riderx

Fixed here : https://github.com/toupper/Wyler/pull/8

riderx avatar Dec 03 '21 02:12 riderx