多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
设置采集视频镜像为yes 本地预览镜像为NO(Set the captured video image to yes and the local preview image to No) self.localView.isPreviewMirror = NO; param.videoMirrored = YES; 保证下面的方法会执行,在该方法中对beautyManager赋值。 (Ensure that the following method will be executed, and assign a value to beautymanager in this method.) ``` RCRTCEngine sharedInstance].defaultVideoStream.videoSendBufferCallback = ^CMSampleBufferRef _Nullable(BOOL valid, CMSampleBufferRef _Nullable sampleBuffer) { __strong typeof(weakSelf) strongSelf = weakSelf; if (!strongSelf) { return sampleBuffer; } CMSampleBufferRef processedSampleBuffer = [strongSelf.chatGPUImageHandler onGPUFilterSource:sampleBuffer]; CVPixelBufferRef pixelBuffer = CMSampleBufferGetImageBuffer(processedSampleBuffer); OSType formatType = CVPixelBufferGetPixelFormatType(pixelBuffer); [self.beautyManager processWithRoatePixelBuffer:pixelBuffer formatType:formatType\]; if (!processedSampleBuffer) { return sampleBuffer; } return processedSampleBuffer; }; } ```