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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37b0f-4063f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37b0f-4063f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?