ReplayKit previews black screen videos!

Another ReplayKit problem: After calling the replay window several times to preview just recorded videos, the next video is simply black. From that point on no recording is possible since only black screen are shown in the preview. The only solution is to kill the app (remove it completely from the taks list) and restart it. Then recording works again...well at least until the next black window, which comes definitely after several recordings.


Any of you experiencing similar problems?

Tested on iPhone5S, iOS 9.1

Yes. I am experiencing this as well on 6s and 5s.

I have this problem too. iPhone 5s.

I'd encountered this problem while testing on iOS 9.1 with an iPhone 5s too. I can't seem to replicate it at the moment (on iOS 9.2), but I recall having solved it by discarding the previous recording and setting the previewViewController to `nil` before starting a new recording. I'm unsure if one or both of those steps were necessary. The solution looked something like this:


func discardScreenRecording() {
    RPScreenRecorder.sharedRecorder().stopRecordingWithHandler() { (previewViewController: RPPreviewViewController?, error: NSError?) in
        RPScreenRecorder.sharedRecorder().discardRecordingWithHandler {
            self.previewViewController = nil
        }
    }
}


// MARK: - RPPreviewViewControllerDelegate
func previewControllerDidFinish(previewController: RPPreviewViewController) {
    previewViewController?.dismissViewControllerAnimated(true) {
        self.discardScreenRecording()
    }
}

Currently on iOS 9.2 and I can't get screen recording to work if I don't allow microphone recording in permissions.

Anyone else see this problem?

I cant find any documentation either.

ReplayKit previews black screen videos!
 
 
Q