Contents

broadcastController(_:didFinishWithError:)

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

Declaration

optional func broadcastController(_ broadcastController: RPBroadcastController, didFinishWithError error: (any 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.