I have a container app and a broadcast upload extension. The broadcast upload extension's SampleHandler inherits RPBroadcastSampleHandler When I tap on broadcast picker view and start the broadcast - SampleHandler's broadcastStarted() is called. I tried to google and go through apple docs to find a way to invoke pauseBroadcast() and resumeBroadcast() on tap of a button in container app's interface but no success. On below URL I found out that "ReplayKit calls this method when the the broadcasting app calls its pauseBroadcast() method."https://developer.apple.com/documentation/replaykit/rpbroadcastsamplehandler/2143174-broadcastpaused. Though the pauseBroadcast is invoked automatically when I tap on the broadcastPickerView and alert comes. Is there any way to invoke pauseBroadcast() and resumeBroadcast() on tap of a button in container app's interface? I tried to call pauseBroadcast() by following but no success. let rpController = RPBroadcastController() rpController.pauseBroadcast()
let handler = RPBroadcastSampleHandler() handler.broadcastPaused()