Questions tagged [replaykit]

ReplayKit is an iOS framework available from iOS 9 that provides the ability to record video, audio and camera within an app or game.

ReplayKit is an iOS framework that provides the ability to record video, audio and camera within an app or game.

Users can share the resulting recordings with other users through social media, or live broadcast the content to sharing services.

Availability From iOS 9 and up

Limitations ReplayKit is not compatible with AVPlayer content and as such cannot record videos.

222 questions
17
votes
6 answers

ReplayKit's RPSystemBroadcastPickerView not showing preferredExtension

I am using RPSystemBroadcastPickerView to show a picker view, from which a user can select a broadcast service to record the screen. Based on documentation, preferredExtension should allow me to set which broadcast extension should the picker…
Milan Nosáľ
  • 19,169
  • 4
  • 55
  • 90
12
votes
4 answers

Recording interrupted by multitasking and content resizing

A try to start a screen recording with RPScreenRecorder. I got the following error: Recording interrupted by multitasking and content resizing func startRecording() { let recorder = RPScreenRecorder.shared() …
janosdupai
  • 519
  • 1
  • 5
  • 16
12
votes
1 answer

Does replaykit allow to record the screen and then broadcast the screen?

Im having a problem where after I broadcast my screen live, I then try to record the screen but it doesn't work. Same thing happens when I record my screen and then I try to broadcast the screen live. Im not trying to do them together btw. This is…
coding22
  • 689
  • 1
  • 7
  • 28
9
votes
1 answer

Where does a host app handle NSExtensionContext#completeRequest?

When you call completeRequest(returningItems:completionHandler:) from an extension, where does this get handled by the host app?
Marty
  • 5,926
  • 9
  • 53
  • 91
9
votes
0 answers

ReplayKit using WebRTC stops working after going to background repeatedly

I'm using WebRTC to create a peer to peer connection for sharing screen and audio. I'm capturing the screen using ReplayKit, which generates CMSampleBufferRef; using that I can create RTCVideoFrame. To get the CMSampleBufferRef I'm…
DiegoQ
  • 1,114
  • 11
  • 20
9
votes
2 answers

RPScreenRecorder stopRecording block not getting called

I have searched enough but failed to get a solution. I am using ReplayKit to record the screen of my app. I have started recording the screen by calling let sharedRecorder = RPScreenRecorder.shared() sharedRecorder.startRecording() { error in …
iPeter
  • 1,330
  • 10
  • 26
9
votes
3 answers

How to implement uploading in broadcast upload extension (iOS)?

Is anybody know is there an ability to upload frame buffers from Broadcast Upload Extension to the host app or I should load them directly to back-end ? My goal to intercept frame buffers from replay kit, send them to my application and broadcast…
Seliver
  • 343
  • 1
  • 2
  • 13
8
votes
4 answers

Replaykit, startCaptureWithHandler() not sending CMSampleBufferRef of Video type in captureHandler

I've implemented a RPScreenRecorder, which records screen as well as mic audio. After multiple recordings are completed I stop the recording and merge the Audios with Videos using AVMutableComposition and then Merge all the videos to form Single…
Talha Ahmad Khan
  • 3,416
  • 5
  • 23
  • 38
8
votes
1 answer

How to forward Screen Capture in iOS 11 Control Center to your App?

I saw that TeamViewer allows iOS Screen Capturing by leveraging the Screen Recorder feature from the Control Center in iOS 11. As seen here: How is that possible? I checked out the ReplayKit, but couldn't find any feature that would hook up to the…
Flupp
  • 856
  • 10
  • 24
7
votes
1 answer

Using WebRTC to send an iOS devices’ screen capture using ReplayKit

We would like to use WebRTC to send an iOS devices’ screen capture using ReplayKit. The ReplayKit has a processSampleBuffer callback which gives CMSampleBuffer. But here is where we are stuck, we can’t seem to get the CMSampleBuffer to be sent to…
Niro
  • 91
  • 1
  • 4
7
votes
3 answers

Saving video from CMSampleBuffer while streaming using ReplayKit

I'm streaming a content of my app to my RTMP server and using RPBroadcastSampleHandler. One of the methods is override func processSampleBuffer(_ sampleBuffer: CMSampleBuffer, with sampleBufferType: RPSampleBufferType) { switch sampleBufferType…
DmitryoN
  • 310
  • 2
  • 11
6
votes
3 answers

RPBroadcastSampleHandler any method not getting called

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…
Govind Rakholiya
  • 427
  • 6
  • 24
6
votes
1 answer

Video produced by ReplayKit is constantly skipping frames in Xamarin

I have a very basic video recording project that was working perfectly in Swift, but the same code ported into a blank project in Xamarin is producing a video that is constantly skipping frames every few seconds. The code starts in ViewDidLoad and…
spogebob92
  • 1,474
  • 4
  • 23
  • 32
6
votes
1 answer

Why won't RPScreenRecorder stopRecordingWithHandler work?

I am testing usability of a website and am using WKWebView in a native app. The reason for this is so that I can use COSTouchVisualizer to show the touches, and RPScreenRecorder to record the interaction and the 'talk out loud' with the mic. I have…
Shane Davis
  • 952
  • 1
  • 6
  • 22
5
votes
3 answers

ReplayKit with SwiftUI

I want to record the screen with ReplayKit. I have researched the method with UIKit. But my project used SwiftUI, so I want to use the ReplayKit to record the screen with SwiftUI. How I record the screen with SwiftUI? - When I use the stopRecording…
Jerry Lee
  • 823
  • 2
  • 7
  • 13
1
2 3
14 15