rpscreenrecorder

Saving a screen recording with RPScreenRecorder start capture

戏子无情 提交于 2020-05-28 05:30:07
问题 I am attempting to use RPScreenRecorder.shared().startCapture to save a screen recording to firebase. I know how to save videos from AVCapture but cant figure out how to process The CMSampleBuffer to create a file to save to firebase. Please help I cant find documentation on this anywhere yet, here is the method call: let recorder = RPScreenRecorder.shared() if #available(iOS 11.0, *) { recorder.startCapture(handler: { (videoBuffer, bufferType, error) in print(videoBuffer) print(bufferType) }

RPScreenRecorder startCaptureWithHandler: not returning microphone sound in sample handler

放肆的年华 提交于 2020-01-16 06:57:42
问题 I am trying to use RPScreenRecorder startCaptureWithHandler:completionHandler: api on my iPad with iOS 11.4 to grab audio and video directly. It works well with the app screen, app audio and the camera, but when I turn on the microphone using microphoneEnabled = YES, I never get any audio sample for the mic in the callback. I added the microphone privacy usage key in the info.plist but that did not help. I am not sure what I can do next to try to resolve this issue. Thanks. 回答1: This code

Replaykit, startCaptureWithHandler() not sending CMSampleBufferRef of Video type in captureHandler

我们两清 提交于 2019-11-30 03:58:05
问题 I've implemented a RPScreenRecorder , which records screen as well as mic audio. After multiple recordings are completed I stop the recording and merge the Audios with Videos using AVMutableComposition and then Merge all the videos to form Single Video. For screen recording and getting the video and audio files, I am using - (void)startCaptureWithHandler:(nullable void(^)(CMSampleBufferRef sampleBuffer, RPSampleBufferType bufferType, NSError * _Nullable error))captureHandler completionHandler