i create a simple single view ios project to test bradcast.
Following is viewController code, i don't edit any other code at all.
i got an error, the user interface to select a broadcast service don't display.
there is some error log, but i don't know what's it and how to solve it.
once i uninstall mobcrush, i got one meesage notify me to select live streaming app at app store,
after i install mobcrush, i got the following error.
Anyone, please, help.
there is too few document and sample code about replaykit broadcast.
i use latest ios, xcode and os x.
2016-09-20 15:12:55.725071 direct[458:45758] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2016-09-20 15:12:55.726130 direct[458:45758] [MC] Reading from public effective user settings.
nil
<RPBroadcastActivityViewController: 0x100c0d730>
2016-09-20 15:12:56.525943 direct[458:45758] viewServiceDidTerminateWithError:: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "(null)" UserInfo={Message=Service Connection Interrupted}
import UIKit
import ReplayKit
class ViewController: UIViewController, RPBroadcastActivityViewControllerDelegate {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
RPBroadcastActivityViewController.load { broadcastAVC, erro in
if let broadcastAVC = broadcastAVC {
print(erro)
print(broadcastAVC)
broadcastAVC.delegate = self
self.present(broadcastAVC, animated: true)
}
}
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
public func broadcastActivityViewController(_ broadcastActivityViewController: RPBroadcastActivityViewController, didFinishWith broadcastController: RPBroadcastController?, error: Error?) {
print("didFinish")
}
}