AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
**实现如下的代理方法,采集格式一定要是**TRTCVideoPixelFormat_32BGRA ! ``` -(void)didOutputVideoSampleBuffer:(CMSampleBufferRef)sampleBuffer { CVPixelBufferRefpixelBuffer = 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]; } ```