An object that processes buffer objects as received from ReplayKit.
- iOS 10.0+
- Mac Catalyst 13.0+
- tvOS 10.0+
CMSample objects as captured by ReplayKit, you subclass
RPBroadcast. You enable this mode of handling by setting
RPBroadcast in the extension's
nfo file to
In your subclass, implement the
process method to handle video and audio buffers, as well as the
broadcast methods to handle starting and stopping the broadcast.
ReplayKit invokes methods in your
RPBroadcast subclass in a serial fashion. After invoking one method, ReplayKit won't invoke another method until the first method returns. That means it's safe for your implementations to update their stored state without the use of locks or synchronization to provide thread safety.