ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
* [ ] 确认MHBeautyManager是否初始化,MHSDK版本是否正确。 * [ ] 腾讯直播SDK的话需要实现美颜代理方法 ``` - (void)beautyEffectWithLevel:(NSInteger)beauty whitenessLevel:(NSInteger)white ruddinessLevel:(NSInteger)ruddiness { //用腾讯的美颜  TXBeautyManager *manager = [_pusher getBeautyManager]; [manager setBeautyStyle:TXBeautyStyleSmooth]; [manager setBeautyLevel:beauty]; [manager setWhitenessLevel:white]; [manager setRuddyLevel:ruddiness]; } ``` * [ ] 腾讯直播SDK的代理方法中添加MHBeautyManager的渲染方法。 ``` - (GLuint)onPreProcessTexture:(GLuint)texture width:(CGFloat)width height:(CGFloat)height{ [_beautyManager processWithTexture:texture width:width height:height]; return texture; } ``` * [ ] 调用MHBeautyManager对美型效果赋值(大眼瘦脸等)时,一定要在下面等方法之后进行: ``` [self.beautyManager processWithTexture:texture width:width height:height]; ```