Class

RPBroadcastSampleHandler

An object that processes buffer objects as they are received from ReplayKit.

Overview

Subclass this class to handle CMSampleBuffer objects as they are captured by ReplayKit. Enable this mode of handling by setting RPBroadcastProcessMode in the extension's Info.plist file to RPBroadcastProcessModeSampleBuffer.

Topics

Handling Sample Buffer Clips

func broadcastFinished()

Performs any actions that are required after the live broadcast is finished.

func broadcastPaused()

Performs any actions that are required after a live broadcast is paused.

func broadcastResumed()

Performs any actions that are required after a live broadcast is resumed.

func broadcastStarted(withSetupInfo: [String : NSObject]?)

Performs any actions that are required after a live broadcast has started.

func finishBroadcastWithError(Error)

Stops the broadcast and passes an error back to the broadcasting app.

func processSampleBuffer(CMSampleBuffer, with: RPSampleBufferType)

Processes video and audio data as it becomes available during a live broadcast.

Relationships

Inherits From

Conforms To

See Also

Media Clip Processing

class RPBroadcastController

An object containing methods for starting and controlling a broadcast.

class RPBroadcastHandler

An object that sends messages to the broadcasting app.

class RPBroadcastMP4ClipHandler

An object that processes MP4 movie clips from ReplayKit.

Deprecated