[rtcEngine setBeautyFaceStatus:NO beautyLevel:0 brightLevel:0];
[rtcEngine setLocalVideoFrameCaptureFormat:TTTRtc_VideoFrameFormat_Texture isVideoSizeSameWithProfile:NO];
- (int)setupLocalVideo:(TTTRtcVideoCanvas*)local;
- (void)rtcEngine:(TTTRtcEngineKit *)engine localVideoFrameCaptured:(TTTRtcVideoFrame *)videoFrame {
//不要变更线程 美颜 videoFrame.textureBuffer
//...美颜
//美颜接口调用之后处理下面代码
CVPixelBufferRef pixelBuffer = videoFrame.textureBuffer;
//下载文件TTTMetalPlayer.h TTTMetalPlayer.m使用TTTMetalPlayer做渲染
//注意视频的显示模式,通过contentMode设置
[_metalPlayer display:pixelBuffer];
}