Tag: replaykit

你可以在Xcode的模拟器中testingreplaykit吗?

我在ipad air 2模拟器,并试图testingreplaykit,看看是否popup窗口来查看录制的屏幕的video。 当我这样做,我得到一个错误说这个。 那是因为我在模拟器中testing它吗? 插件com.apple.ReplayKit.RPVideoEditorExtension中断 集线器连接错误错误域= NSCocoaErrorDomain代码= 4097“连接到服务名为com.apple.ReplayKit.RPVideoEditorExtension”UserInfo = {NSDebugDescription =连接到服务名为com.apple.ReplayKit.RPVideoEditorExtension}

如何将iOS 11控制中心中的屏幕捕捉转发到您的应用程序?

我看到,TeamViewer通过利用iOS 11中的控制中心的屏幕录像function,允许iOS屏幕捕捉。如下所示: 这怎么可能? 我检查了ReplayKit,但找不到任何可以连接到控制中心的function。

RPScreenRecorder stopRecording块没有被调用

我已经足够的search,但没有得到解决办法。 我正在使用ReplayKit来logging我的应用程序的屏幕。 我已经开始通过电话录制屏幕了 let sharedRecorder = RPScreenRecorder.shared() sharedRecorder.startRecording() { error in if let error = error { self.showScreenRecordingAlert(message: error.localizedDescription) } } 当我按下我正在呼叫的stopRecordbutton时 let sharedRecorder = RPScreenRecorder.shared() sharedRecorder.stopRecording { previewViewController, error in if let error = error { self.showScreenRecordingAlert(message : error.localizedDescription) return } } 但是我面对的问题是,程序控制不进入stopRecording块内部。 当我做po sharedRecorder.isRecording ,它总是返回false。 我已经做了我所知道的一切,但没有得到解决办法。

replaykit startrecording有时候永远不会input完成处理程序

我正在使用重放套件来保存游戏中的屏幕video,但随机时有时startRecordingWithMicrophoneEnabled和recorder.stopRecordingWithHandler永远不会进入完成处理程序 它不会抛出一个错误,它只是运行并无限期地挂起。 if recorder.available && recorder.microphoneEnabled { recorder.startRecordingWithMicrophoneEnabled(true) { [unowned self] (error) in if let unwrappedError = error { print(unwrappedError.localizedDescription) } else { print("called") self.manager.instructions.text = "Click to Start Game" } } } if recorder.available && recorder.microphoneEnabled { print("initiating stop recording") recorder.stopRecordingWithHandler { [unowned self] (RPPreviewViewController, error) in print("in completion handler") if let previewView = […]

重放套件不工作IPAD IOS11 BUG

我正在使用下面的代码来logging屏幕。 它工作正常的ios10和ios9 @IBAction func btnRecordTapped(_ sender: UIButton) { if RPScreenRecorder.shared().isAvailable { if #available(iOS 10.0, *) { RPScreenRecorder.shared().startRecording(handler: { (error) in guard error == nil else { print("Record failed with error \(error!.localizedDescription)") return } DispatchQueue.main.async { sender.removeTarget(self, action: #selector(self.btnRecordTapped(_:)), for: .touchUpInside) sender.addTarget(self, action: #selector(self.stoprecording(button:)), for: .touchUpInside) sender.setTitle("Stop", for: .normal) sender.setTitleColor(.red, for: .normal) } }) } else […]

ReplayKit:startRecording()完成处理程序从不input

问题描述 即使显示“允许在$ AppName中logging屏幕”popup窗口,也不会inputstartRecording()完成处理程序。 偶尔会显示“在$ AppName中允许屏幕录制”popup窗口。 这也发生在我删除应用程序,重新启动设备,并干净/build立在项目上。 我正在使用iOS 11和Xcode 9的iPad Air 2。 研究 这个问题在早期版本中似乎也是一个问题,请看这里: replaykit startrecording有时从来没有进入完成处理程序我不能批准closuresWiFi或有一个稳定的互联网连接解决这个问题,这个问题也没有解决在iOS 11。 这是我正在使用的代码: @IBAction func recordButtonTapped(_ sender: UIButton) { if !recorder.isRecording { startRecording(sender) } else { stopRecording(sender) } } private func startRecording(_ sender: UIButton) { guard recorder.isAvailable else { print("Recording is not available at this time.") // Display UI for recording […]