RPScreenRecorder
The shared recorder object that provides the ability to record audio and video of your app.
Declaration
class RPScreenRecorderOverview
Apps on a user’s device can share the recording function, with each app having its own instance of RPScreenRecorder. Your app can record the audio and video inside of the app, along with user commentary through the microphone. You get a reference to the recorder through the shared() function and use it to implement start-and-stop recording functionality. You can present a user interface (view controller) where a user can trim and preview recordings, and share them with other users. Only one app at a time can use the recorder on the user’s device. Your app can’t record video from AVPlayer.
Topics
Accessing the Shared Recorder
Inspecting a Screen Recorder
isAvailableisRecordingisMicrophoneEnabledisCameraEnabledcameraPreviewViewcameraPositionRPCameraPositiondelegateRPScreenRecorderDelegate
Controlling App Recording
startRecording(handler:)stopRecording(handler:)stopRecording(withOutput:completionHandler:)startCapture(handler:completionHandler:)RPSampleBufferTypestopCapture(handler:)discardRecording(handler:)startRecording(withMicrophoneEnabled:handler:)