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

App name displayed in ReplayKit permissions

I'm working on an app which records the user's screen using ReplayKit. When the permissions modal pops up, it displays the wrong app name. So, if my app were named, "foo", for example, I'd want the persmissions dialog to display: Allow screen…
Anna Dickinson
  • 3,307
  • 24
  • 43
0
votes
2 answers

Could not build Objective-C module 'Your Framework'

I am using broadcast extension to capture my iPhone screen, In same project I am using some framework, which are working perfect in my project target, If same Framework I am importing in BroadCast Extension target like in side "SampleHandler"…
jayprakash
  • 75
  • 9
0
votes
1 answer

How to make a screen-record guiding video for iOS device

I'm creating an iOS app on recording screen by using ReplayKit. I want to make a user operation video to guide user on how to use my app to record screen. So I need to record a video on how to record screen and this approach is a bit awkward. I…
Mekits
  • 1
0
votes
0 answers

iOS Swift: run screen recording programmatically

Is it possible to start screen recording (through Control Center) without user prompt? I mean to ask user permission for the first time and after that to start and stop recording programmatically only? I need to record screen only for specific…
Rougher
  • 834
  • 5
  • 19
  • 46
0
votes
1 answer

RPSystemBroadcastPickerView subviews odd behaviour when initial size not set

I have view with RPSystemBroadcastPickerView view. In documentation apple shows example with assigning frame to this view like so: https://developer.apple.com/documentation/replaykit/rpsystembroadcastpickerview?language=objc When set frame +…
vpoltave
  • 1,612
  • 3
  • 14
  • 31
0
votes
1 answer

ReplayKit 2 didn't show my app when start broadcasting from my app or from system

I'm new to iOS programming. I'm trying to write an app for screen broadcasting/recording. Follow the guide of WWDC2018. 1. new target of "Broadcast Upload Extension" and "Broadcast Setup UI Extension". Note: neither SampleHandler.swift nor…
WeiHung
  • 109
  • 2
  • 10
0
votes
1 answer

How to record audio and video separately at the same time in Swift

Currently I am developing an iOS app that records the screen with Replaykit and at the same time record the user from the front camera in a given time. I receive the audio from the screen recording and the front camera's audio is disabled. I would…
Mehmet Baykar
  • 367
  • 3
  • 11
0
votes
1 answer

Broadcast Extension with ReplayKit Xamarin iOS not working

I'm trying to add a broadcast extension to a Xamarin iOS app but the extension is not visible when I want to start a broadcast from either in the app or the control center. I added both a BroadcastUploadExtension as a BroadcastUpload UI Extension to…
Jørgen
  • 2,157
  • 1
  • 23
  • 24
0
votes
0 answers

How to get consistent deep copy of MTLTexture contents?

I am receiving YUV 420 CMSampleBuffers of the screen in my System Broadcast Extension, however when I attempt to access the underlying bytes, I get inconsistent results: artefacts that are a mixture of (it seems) past and future frames. I am…
Rhythmic Fistman
  • 34,352
  • 5
  • 87
  • 159
0
votes
1 answer

RPScreenRecorder.shared().startCapture won't write / keeps failing

When trying to record and save audio/video with ReplayKit I keep getting errors. I'm using Xcode: Version 11.2.1 Swift 5 iOS 13 iPhone 7+ physical device When I set the filePath I'm already using URL(fileURLWithPath: ). The file extension and…
Lance Samaria
  • 17,576
  • 18
  • 108
  • 256
0
votes
0 answers

how to get video stream only through 'ReplayKit' iOS Swift

I am using ReplayKit for getting a video stream. callback is continuously calling but rpSampleType returns something else. I want the video buffer only. Here is my code RPScreenRecorder.shared().startCapture(handler: { (cmSampleBuffer, rpSampleType,…
0
votes
1 answer

Is there a method that uses less memory than NSKeyedArchiver to archive an object?

I have created a ReplayKit Broadcast Extension, so the maximum amount of memory I can use is 50 MB. I am taking samples of the broadcasted stream to send those images with a CFMessagePortSendRequest call. As that function accepts only CFData type, I…
iSpain17
  • 2,502
  • 3
  • 17
  • 26
0
votes
1 answer

Saving a video to my camera roll returns error: The operation couldn’t be completed. (Cocoa error -1.)

I'm attempting to use ReplayKit and save the video of the screen capture to my camera roll. However I'm getting an error when I try to save it at the very bottom of my code, that last error check: "Video did not save for some reason" Optional(Error…
Zack Shapiro
  • 6,648
  • 17
  • 83
  • 151
0
votes
1 answer

ReplayKit with broadcast extension receiving audio

I am using a replaykit broadcast extension to share an iOS devices screen over twilio. The problem is that I can't receive audio from the remote party. Is this possible? Or is the broadcaster one-way only?
user426132
  • 1,341
  • 4
  • 13
  • 28
0
votes
1 answer

ReplayKit Won't Record Twice in One Session

I am using ReplayKit in an app to record the visible screen with some text and a video playing. The issue I am facing is that ReplayKit is working just fine for the first screen recording, but if I am to record again in the same session (ie without…