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
2
votes
2 answers

Swift Broadcast Replaykit Stop Recording

I have this code for running the BroadCast now I need one Button in App to stop broadcast without going to Notification Centre is that possible. override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after…
MidDev
  • 182
  • 1
  • 15
2
votes
0 answers

how to use Replaykit to record screen in background of outside the app

I followed some tutorials to implement a screen recorder with Replaykit. for example this one https://www.appcoda.com/replaykit/ . it works fine and no special problem exists. but the main problem is that it does not record in background. I mean…
neda Derakhshesh
  • 1,103
  • 2
  • 20
  • 43
2
votes
2 answers

App not showing up as a broadcast service in RPBroadcastActivityViewController

I'm trying to use Replaykit to start a broadcast session (recording the App screen works ok) and it opens up a picker from where broadcasting Apps can be picked, Youtube, Facebook and Periscope show up but not my App, code: if #available(iOS 10.0,…
Olli
  • 512
  • 3
  • 6
  • 22
2
votes
3 answers

Use ReplayKit to record any app on screen

I am trying to create an iPhone app that records not only the app's screen but if put into the background it records everything on the screen, including other apps. This is how recording from "Control Center" works. The difference is I want to get…
user1720256
2
votes
0 answers

Send Replay Kit Audio samples(not Microphone) Over Webrtc

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? …
user2801184
  • 329
  • 7
  • 27
2
votes
2 answers

Save Video in RPPreviewController to a specific place instead saving to camera roll?

i´m screen recording with ReplayKit and when the delegate method previewController(_:didFinishWithActivityTypes:) is called when i click the save button, it automatically saves into the camera roll. How can i change that? I want to save the video…
SwiftiSwift
  • 7,528
  • 9
  • 56
  • 96
2
votes
0 answers

CMSampleBuffer to audio file for Broadcast

New to iOS 12 development and wondering if someone can help. I am trying to take the audio from the recording of Broadcast Upload Extension. Specifically, from this code: override func processSampleBuffer(_ sampleBuffer: CMSampleBuffer, with…
2
votes
1 answer

Is there a way to finish broadcast gracefully from within RPBroadcastSampleHandler?

I am implementing a broadcast upload extension in iOS using my own custom SampleHandler extending RPBroadcastSampleHandler. The problem is pretty easy - I need a way to gracefully end the broadcast from within the extension. The requirement is to…
Milan Nosáľ
  • 19,169
  • 4
  • 55
  • 90
2
votes
0 answers

Error by RPSystemBroadcastPickerView "Unbalanced calls to begin/end appearance transitions"

I am using RPSystemBroadcastPickerView to enable the user start broadcast in simpler way. I've created new iOS "Single View App" project, added the code to ViewController class: override func viewDidLoad() { super.viewDidLoad() // Do…
Bws Sluk
  • 478
  • 5
  • 11
2
votes
0 answers

iOS 12: ReplayKit is broken

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…
J.Treutlein
  • 963
  • 8
  • 23
2
votes
0 answers

ReplayKit stops buffering after going to background repeatedly

I'm trying to use ReplayKit to create a live broadcast inside of my app. Basically I want to share my screen and see the screen of the other user. To get the buffers, ReplayKit offers the next function: func startCapture(handler captureHandler:…
DiegoQ
  • 1,114
  • 11
  • 20
2
votes
0 answers

Proper way to "store" CMSampleBuffer or CVPixelBuffer to use later

Currently working on Replay Kit Upload extension and RTMP streaming. Replay Kit works great but it only provide CMSampleBufferRef when there is any change on screen, so if user stay on a screen and nothing moves, it stops providing…
user3806731
  • 889
  • 2
  • 8
  • 14
2
votes
2 answers

How to trigger broadcast upload extension by iOS 11 Control Center?

I have added a broadcast upload extension and my APP shows in the Control Center. But I am not able to fetch the video samples in the upload extension when I tapped the start live button. What's wrong? Anybody knows why? I would appreciate your…
yingzhuo
  • 91
  • 1
  • 3
2
votes
2 answers

RPScreenRecorder How recording screen audio and video of an app Action Extension?

I would like to record the screen, audio, and video of my app with target Action Extension. If I put this code in a normal app, it works, but in an Action Extension doesn't. @IBAction func recButton(_ sender: Any) { if…
Simone Pistecchia
  • 2,746
  • 3
  • 18
  • 30
2
votes
0 answers

ReplayKit broadcast to Web

With regards to ReplayKit, can the receiver of an A/V stream be a web browser? I’m trying to validate if it’s possible to broadcast an iOS screen and receive it on a web browser. What does this conceptually look like? So far, all examples seem to be…
charper
  • 21
  • 3