replaykit

RPBroadcastSampleHandler any method not getting called

只谈情不闲聊 提交于 2020-01-23 08:00:26
问题 I want to implement screen sharing functionality like skype(when app is in background then also it will share screen of iPhone), and for that i am using broadcast extension. Here its my code in my viewcontroller.swift import UIKit import ReplayKit @available(iOS 12.0, *) class ViewController: UIViewController { var broadcastPicker: RPSystemBroadcastPickerView? var broadcastSession : NSObject? override func viewDidLoad() { super.viewDidLoad() let kPickerFrame = CGRect(x: 100.0, y: 100.0, width

ReplayKit access to recording and custom preview actions

自古美人都是妖i 提交于 2020-01-01 19:27:29
问题 I am using the replayKit to record my game. After the recording is done, I want to upload the video to my server. 1. How do I access the recording from my app 2. The preview has "save" and "cancel" actions. How do I make my own custom actions like "share" etc? 来源: https://stackoverflow.com/questions/43206209/replaykit-access-to-recording-and-custom-preview-actions

Can you test replaykit in the simulator in Xcode?

落花浮王杯 提交于 2019-12-24 05:47:18
问题 Im in the ipad air 2 simulator and trying to test replaykit and see if the window pops up to view the video of the recorded screen. When I do that I get an error saying this. Is that because Im testing it in the simulator? plugin com.apple.ReplayKit.RPVideoEditorExtension interrupted Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.ReplayKit.RPVideoEditorExtension" UserInfo={NSDebugDescription=connection to service named com.apple.ReplayKit

How to detect when the RPSystemBroadcastPickerView is tapped

余生颓废 提交于 2019-12-24 05:43:18
问题 I am using RPSystemBroadcastPickerView to start a system-wide screen recording from my app. The RPSystemBroadcastPickerView is completely autonomous in starting the recording and everything, which I guess makes sense - only user can start the screen recording by explicitly tapping the button. I need to know when the RPSystemBroadcastPickerView is tapped. Right now the UI is showing keyboard, which I want to keep showing (it is a chat app). However, the form showing the list of broadcast

Where does a host app handle NSExtensionContext#completeRequest?

柔情痞子 提交于 2019-12-22 05:43:12
问题 When you call completeRequest(returningItems:completionHandler:) from an extension, where does this get handled by the host app? 回答1: Disclaimer: did not checked my assumptions , but may be this helps. 1) documentation states: Call the completeRequestReturningItems:completionHandler: method, which signals the host app that its original request is complete 2) here - Figure 2-3 shows that "Host"-app - is app that starts some work with extension. For example, "Host" may be the app in which user

Replay kit Not working IPAD IOS11 BUG

泪湿孤枕 提交于 2019-12-19 10:16:24
问题 I am using following code to record screen. It is working fine for ios10 and 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

Send Replay Kit Audio samples(not Microphone) Over Webrtc

浪尽此生 提交于 2019-12-13 15:26:57
问题 I am able to send Replaykit video samples to the remote peer but with no Audio. What to use instead of RTCVideoFrame? Is there a way I can send a Audio Video data together? Below is the snippet: var peerConnectionFactory: RTCPeerConnectionFactory? var localVideoSource: RTCVideoSource? var videoCapturer: RTCVideoCapturer? func setupVideoCapturer(){ // localVideoSource and videoCapturer will use localVideoSource = self.peerConnectionFactory!.videoSource() videoCapturer = RTCVideoCapturer()

iOS 12: ReplayKit is broken

落爺英雄遲暮 提交于 2019-12-12 10:12:28
问题 I have been using ReplayKit for all past updates, but now with iOS 12 my recordings sometimes work, sometimes don't... but usually they don't. Most of the time when I stop the recording this is what I get: a completely black screen. This hasn't happened to me before and it is extremely frustrating. This is how I use ReplayKit to record the screen: import ReplayKit class ViewController: UIViewController, AVCaptureVideoDataOutputSampleBufferDelegate, UIImagePickerControllerDelegate,

ReplayKit stops screen recording in background mode of the application or outside the app?

旧时模样 提交于 2019-12-12 09:51:34
问题 I've implemented screen recording with ReplayKit in foreground mode of the application. But when I'm going outside the app with home button app stops background record. --> There is an app available In App Store which allows background screen record. --> If I have to use Broadcast upload and UI extension then please provide me some programming guide. I've added both in my app but still it stops recording in background mode. Below is my code import UIKit import ReplayKit class ViewController:

how to prevent screen record in ios11

ぃ、小莉子 提交于 2019-12-07 08:20:17
问题 To some reasons, our APP dont't want people record screen, but in ios11 a new feature can let user record there iphone screen, so is there an API or notification indicate me user is recording now thank u very much 回答1: You can detect if the screen is being recorded with: UIScreen.main.isCaptured // True if this screen is being captured (e.g. recorded, AirPlayed, mirrored, etc.) You can't prevent it using project settings, but you could use a modal or something to request the user to disable