i am using ReplayKit but my problem is that i need to acquire the video (or the temp video), without having to go through RPPreviewViewController i am using the following, but RPPreviewViewController has to be used, is there any other way?
- (void)stopScreenRecording {
RPScreenRecorder *sharedRecorder = RPScreenRecorder.sharedRecorder;
[sharedRecorder stopRecordingWithHandler:^(RPPreviewViewController *previewViewController, NSError *error) {
if (error) {
NSLog(@"stopScreenRecording: %@", error.localizedDescription);
}
if (previewViewController) {
previewViewController.previewControllerDelegate = self;
self.previewViewController = previewViewController;
// RPPreviewViewController only supports full screen modal presentation.
self.previewViewController.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:previewViewController animated:YES completion:nil];
}
}];