Instance Method

broadcastController(_:didFinishWithError:)

Tells the delegate that a broadcast ended due to an error.

Declaration

optional func broadcastController(_ broadcastController: RPBroadcastController, didFinishWithError error: Error?)

Parameters

broadcastController

The current controller instance.

error

An RPRecordingErrorCode error indicating why the broadcast finished.

Discussion

Use the returned error to inform the user why the broadcast failed and provide an option to resume the broadcast, if applicable.