Instance Method

processSampleBuffer(_:with:)

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

Declaration

func processSampleBuffer(_ sampleBuffer: CMSampleBuffer, with sampleBufferType: RPSampleBufferType)

Parameters

sampleBuffer

A CMSampleBuffer object containing either audio or video data.

sampleBufferType

An RPSampleBufferType identifying the media type of the recorded sample.

See Also

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.