文档

基础美颜

更新时间:

本文介绍如何开启和调节连麦中的基础美颜。

说明

  • 基础美颜只支持美白和磨皮。

  • 基础美颜在加入连麦前后都可以开启和调节。

基础美颜API使用示例

iOS端(Objective-C):

// 设置基础美颜
id<AIRBRoomChannelProtocol> room = [[AIRBRoomEngine sharedInstance] getRoomChannelWithRoomID:@"xxx"]
[room.rtc setBasicFaceBeauty:(BOOL)enable
              whiteningLevel:(float)whiteningLevel
             smoothnessLevel:(float)smoothnessLevel]; // whiteningLevel 美白等级[0-1.0] smoothnessLevel 磨皮等级[0-1.0]

Android端(Java):

// 设置基础美颜
rtcService.setBasicFaceBeauty(true, 0.6f, 0.6f);

/**
 * @param enable          基础美颜开关
 * @param whiteningLevel  美白等级[0-1.0]
 * @param smoothnessLevel 磨皮等级[0-1.0]
 */
// int setBasicFaceBeauty(boolean enable, float whiteningLevel, float smoothnessLevel);
  • 本页导读 (1)
文档反馈