No solution is working which I found on the internet to convert CMSampleBufferRef to UIIMage.
I need a screenshot of it.
@property (nonatomic, strong) AVSampleBufferDisplayLayer *displayLayer;
- (void)handleSampleBufferRef:(CMSampleBufferRef)sampleBuffer {
[self.displayLayer enqueueSampleBuffer:sampleBuffer];
}