Instance Method

broadcastStarted(withSetupInfo:)

Perform any required actions after starting a live broadcast.

Declaration

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

Parameters

setupInfo

A dictionary supplied by the ReplayKit UI extension that contains any required setup information.

Discussion

ReplayKit calls this method when the the broadcasting app calls its startBroadcast(handler:) method.

See Also

Handling Sample Buffer Clips

func broadcastPaused()

Perform any required actions after a live broadcast is paused.

func broadcastResumed()

Perform any required actions after a live broadcast is resumed.

func broadcastFinished()

Perform any required actions after a live broadcast is finished.

func broadcastAnnotated(withApplicationInfo: [AnyHashable : Any])

Perform any required actions after starting a live broadcast.

func processSampleBuffer(CMSampleBuffer, with: RPSampleBufferType)

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

func finishBroadcastWithError(Error)

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