ReplayKit records and live-broadcasts the audio and video of your app and gameplay on iOS, macOS, tvOS, and visionOS. Use RPScreenRecorder to capture or stream the screen, present RPPreviewViewController to let users review and share a recording, and add RPSystemBroadcastPickerView or RPBroadcastActivityViewController to start a broadcast through a third-party service. Configure broadcasts with RPBroadcastController and RPBroadcastConfiguration, and process the live stream in a broadcast extension by subclassing RPBroadcastSampleHandler or RPBroadcastMP4ClipHandler, working with sample buffers identified by RPSampleBufferType and camera input described by RPCameraPosition.
Screen Recording 2
Capture and stream the screen and audio of your app and gameplay.
- ClRPScreenRecorder@class RPScreenRecorder
- PrRPScreenRecorderDelegateA protocol for responding to changes in the availability and state of the screen recorder.
Recording Preview and Sharing 2
Let users review, edit, and share a finished screen recording.
- ClRPPreviewViewControllerA view controller that lets users preview, edit, and share a screen recording.
- PrRPPreviewViewControllerDelegateA protocol for responding to interactions with a recording preview view controller.
Starting a Broadcast 3
Present pickers and activity controllers that begin a broadcast through a third-party service.
- ClRPBroadcastActivityViewController@class RPBroadcastActivityViewController
- PrRPBroadcastActivityViewControllerDelegateA protocol for responding to the result of presenting a broadcast activity view controller.
- ClRPSystemBroadcastPickerView@class RPSystemBroadcastPickerView
Controlling and Configuring Broadcasts 3
Manage an active broadcast session and supply its configuration.
- ClRPBroadcastController@class RPBroadcastController
- PrRPBroadcastControllerDelegateA protocol for responding to changes in the state of a broadcast controller.
- ClRPBroadcastConfigurationAn object that contains the configuration settings for a broadcast.
Broadcast Extension Handlers 3
Process the live broadcast stream in a broadcast upload extension.
- ClRPBroadcastHandler@class RPBroadcastProcessExtension
- ClRPBroadcastSampleHandler@class RPBroadcastSampleHandler
- ClRPBroadcastMP4ClipHandler@class RPBroadcastMP4ClipHandler
Sample Buffers and Camera 2
Identify stream sample buffer types and describe camera input during a broadcast.
- EnRPSampleBufferTypeConstants that identify the type of sample buffer delivered to a broadcast extension.
- EnRPCameraPositionConstants that specify the position of the camera used as input during a broadcast.
Errors 1
Error codes reported by recording and broadcasting operations.
- EnRPRecordingErrorCodeiOS 9.0+Error codes returned by screen recording and broadcasting operations.