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-1e3d0e0-4be0e.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-1e3d0e0-4be0e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?