Skip to content

Instantly share code, notes, and snippets.

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...")
broadcastActivityViewController.dismiss(animated: true, completion: nil)
// Guardamos la referencia para poder iniciar
// o detener la retransmisión.
self.broadcastController = broadcastController
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment