iOS ReplayKit Support

allan_o3h

New Member
I'm developing an iOS application which uses ReplayKit within the app to record the screen + microphone and generate a video used with in the application ecosystem.

The problem I have is that if a user is using OBS (or any other software which captures the device screen) ReplayKit will fail to start when triggered from inside the app.

Having users able to stream while using my app is something I'd very much like to support and I'm looking for some alternative ways to accommodate this.

I'm wondering if anyone else has encountered this situation and if so how did they resolved it? Otherwise a couple ideas I've had are:

1. Always running replaykit while my app is open. Exposing this via some kind of video stream that OBS can consume.
2. Hooking into the existing video stream that OBS is pulling from the device and saving it locally to a video file.

Are any of these currently possible? or would they integrate with the current plugin framework (willing to do any plugin work required myself)?
 

allan_o3h

New Member
An update on this.

I was able to (prototype at least) broadcast a RTMP stream directly from my app pointing to a RTMP server running on a local computer and point OBS to that.

Then I run replaykit in the app and send the generated CMSampleBufferRefs to both the stream and my local video file encoder.

In theory this should work with a SRT stream going directly to OBS as well, but I think the srt library I'm using has a bug with handling the sample stream that I need to sort out still.
 
Top