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

Display UI (storyboard possibly) with Broadcast UI Extension

I'm a bit new to IOS programming, I'm trying to start a live broadcast using Replaykit, I've made some progress in calling the broadcast service picker view from the App and also in creating 2 extensions (Broadcast Upload Extension and Broadcast UI…
Olli
  • 512
  • 3
  • 6
  • 22
5
votes
2 answers

How to detect when RPSystemBroadcastPickerView is dismissed?

In the app, I am using a RPSystemBroadcastPickerView to start a system-wide screen recording. I need to react to the user starting screen record or dismissing the shown picker view. In both cases, the system view gets dismissed. I assumed that…
Milan Nosáľ
  • 19,169
  • 4
  • 55
  • 90
5
votes
0 answers

iOS crash due to memory exceeding 50 mb limit error ReplayKit

We are using ReplayKit framework to use the iOS screen recording feature for our app. We are processing the CMSampleBufferRef and doing a conversion into UIImage using VideoToolBox framework. After processing a few buffers the extension is crashing…
5
votes
2 answers

How to detect when the RPSystemBroadcastPickerView is tapped

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…
Milan Nosáľ
  • 19,169
  • 4
  • 55
  • 90
5
votes
2 answers

iOS 11 Objective-C - Processing Image Buffers From ReplayKit Using AVAssetWriterInputPixelBufferAdaptor

I'm trying to record my app's screen using ReplayKit, cropping out some parts of it while recording the video. Not quite going well. ReplayKit will capture the entire screen, so I decided to receive each frame from ReplayKit (as CMSampleBuffer via…
Ryoichiro Oka
  • 1,949
  • 2
  • 13
  • 20
5
votes
2 answers

Replaykit asset writer status fails randomly

Use Case I'm using iOS 11 Replaykit framework to try to record frames from the screen, and audio from both the app and the microphone. Problem Randomly, when I call my .append(sampleBuffer) get AVAssetWriterStatus.failed with the AssetWriter.Error…
stanley
  • 1,113
  • 1
  • 12
  • 26
5
votes
2 answers

replaykit startrecording sometimes never enters completion handler

I am using replay kit to save a video of my screen during gameplay but randomly on occasion startRecordingWithMicrophoneEnabled and recorder.stopRecordingWithHandler never enters the completion handler it doesn't throw an error, it just runs and…
stanley
  • 1,113
  • 1
  • 12
  • 26
5
votes
2 answers

How to start ReplayKit screen recording in SpriteKit SKScene class

I have implemented ReplayKit in my SpriteKit game, but since everything is done within the GameViewController the record button appears too early. Please see my GameViewController class below: class GameViewController: UIViewController,…
iGetIt
  • 695
  • 5
  • 20
4
votes
1 answer

How to programatically stop a ReplayKit 2 system broadcast without RPSystemBroadcastPickerView

I am trying to implement a broadcast upload extension and I want the user to be able to click a button in my app to stop the broadcast. As far as I can tell from the docs, the only ways to stop a system broadcast are: Show…
Atlante45
  • 333
  • 1
  • 10
4
votes
0 answers

ReplayKit doesn't rotate

When trying to record the screen with RPScreenRecorder there's an issue when trying to rotate the device, the device orientation is not changing while the screen recorder is active. After the screen recorder stops, the orientation changes works…
4
votes
0 answers

ReplayKit broadcast extension crash EXC_RESOURCE RESOURCE_TYPE_MEMORY on mic on

I am trying to use ReplayKit broadcast extension to record screen in iOS. I am facing an issue when the user start recording from the app with Mic off and then goes to control centre and start mic audio. Then the extension reaches its memory limit…
Santosh
  • 1,254
  • 2
  • 16
  • 31
4
votes
2 answers

Communication between iOS Broadcast Upload Extension, Frameworks and App

I have a sample app with ViewController.swift and Broadcast Upload app Extension. Inside my project, I have two frameworks that I've created : MySDK, is a swift framework using to analyze and process CMSampleBuffer in order to avoid that Broadcast…
Vjardel
  • 1,065
  • 1
  • 13
  • 28
4
votes
0 answers

Broadcast Upload Extension is suppressing the volume output from other applications

I have successfully implemented Broadcast Upload Extension and I am able to record video and audio from microphone. In my SampleHandler class from the extension, I am handling RPSampleBufferTypeAudioMic and RPSampleBufferTypeVideo samples and save…
4
votes
1 answer

How do you implement sharing with ReplayKit?

I am trying to use ReplayKit to record my app, and then give the user the option to share or delete the recording. The deleting works fine, but I can't get the sharing part to work properly. I've tried to use RPPreviewViewControllerMode with…
4
votes
2 answers

Attempted to start an invalid broadcast session in live broadcasting using replaykit ios

I'm currently working on live screen broadcasting app which allows the user's to share their screen on Youtube, Facebook, Mobcrush like apps. Everything is working fine but sometimes broadcast automatically getting stopped and throwing below error,…
Vikram Chaudhary
  • 580
  • 4
  • 14
1
2
3
14 15