Class

RPScreenRecorder

The shared recorder object providing the ability to record audio and video of your app.

Declaration

@interface RPScreenRecorder : NSObject

Overview

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 sharedRecorder 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

+ sharedRecorder

Returns an app’s instance of the shared screen recorder.

Controlling App Recording

- startRecordingWithHandler:

Starts recording the app display.

- stopRecordingWithHandler:

Stops the current recording.

- startCaptureWithHandler:completionHandler:

Starts screen and audio capture.

RPSampleBufferType

The type of media clip sample being buffered.

- stopCaptureWithHandler:

Stops screen capture

- discardRecordingWithHandler:

Discards the current recording.

- startRecordingWithMicrophoneEnabled:handler:

Starts recording the app’s audio and video.

Deprecated

Accessing Screen Recorder Properties

available

A Boolean value that indicates whether the screen recorder is available for recording.

recording

A Boolean value that indicates whether the app is currently recording.

microphoneEnabled

A Boolean value that indicates whether the microphone is currently enabled.

cameraEnabled

A Boolean value that indicates whether the camera is currently enabled.

cameraPreviewView

A view containing the contents of the front-facing camera.

cameraPosition

The camera position to be used.

RPCameraPosition

The position of the camera being accessed.

delegate

The delegate for the screen recorder.

RPScreenRecorderDelegate

The protocol you implement to receive notifications from the screen recorder.

Relationships

Inherits From

See Also

Replay Sharing

RPPreviewViewController

An object that displays a user interface where users preview and edit a screen recording created with ReplayKit.