Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//
// MARK: - RPBroadcastActivityViewControllerDelegate Protocol
//
extension RecorderViewController: RPBroadcastActivityViewControllerDelegate
{
/**
El usuario acaba de seleccionar uno de los servicios
de broadcasting que tiene instalados en su equipo.
Nos devuelve un objeto `RPBroadcastController` con el que
se controla la emisión en vivo.
*/
func broadcastActivityViewController(_ broadcastActivityViewController: RPBroadcastActivityViewController, didFinishWith broadcastController: RPBroadcastController?, error: Error?) -> Void
{
if let error = error
{
print("Cerrando la selección de servicios de broadcasting...")
print(error.localizedDescription)
}
broadcastActivityViewController.dismiss(animated: true, completion: nil)
// Guardamos la referencia para poder iniciar
// o detener la retransmisión.
self.broadcastController = broadcastController
self.startScreenBroadcasting()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.