合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
``` //实现FUCameraDelegate方法 -(void)didOutputVideoSampleBuffer:(CMSampleBufferRef)sampleBuffer { CVPixelBufferRef pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer) ; NSTimeInterval startTime =  [[NSDate date] timeIntervalSince1970]; //渲染 OSType formatType = CVPixelBufferGetPixelFormatType(pixelBuffer); [self.beautyManager processWithPixelBuffer:pixelBuffer formatType:formatType];     TRTCVideoFrame* videoFrame = [TRTCVideoFrame new]; videoFrame.bufferType= TRTCVideoBufferType_PixelBuffer; videoFrame.pixelFormat= TRTCVideoPixelFormat_32BGRA; videoFrame.pixelBuffer= CMSampleBufferGetImageBuffer(sampleBuffer); TRTCVideoRotation rotation = TRTCVideoRotation_0; [_trtc sendCustomVideoData:videoFrame]; } ```