How do I use replaykit2 to record a screen?

I want to record the screen using the feature that replaykit2 can record across app. Now I have integrated Broadcast Upload Extension and can use

- (void)processSampleBuffer:(CMSampleBufferRef)sampleBuffer withType:(RPSampleBufferType)sampleBufferType

to get each frame of data in CMSampleBufferRef format, how to synthesize these frames into video in real time?

May.22,2021

Brother, have you solved it? do you have demo without Replaykit2 screencap

Menu