Beauty Settings
this document primarily introduces how to use
RTC Room Engine
SDK to implement beauty effect-related features.Prerequisites
Before using the beauty settings-related features provided by the
RTC Room Engine
SDK, you need to log in to the SDK first.User Guide
Set Beauty Level
You can call the
setBeautyLevel
API and input an Int value to set the beauty level.The passed in Int value represents the beauty level, with a permissible range of 0 - 9; 0 means disabling, and 9 means the most obvious effect.
import RTCRoomEngineimport TXLiteAVSDK_Professionallet beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager()let beautyLevel = 6beautyManager.setBeautyLevel(beautyLevel) // Replace with the Int value of the level you need to set
TXBeautyManager beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager();int beautyLevel = 6;beautyManager.setBeautyLevel(beautyLevel); // Replace with the Int value of the level you need to set
Set Beauty Level
You can call the
setWhitenessLevel
API and input an Int value to set the whitening level.The passed in Int value represents the whitening level, with a permissible range of 0 - 9; 0 means disabling, and 9 means the most obvious effect.
import RTCRoomEngineimport TXLiteAVSDK_Professionallet beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager()let whitenessLevel = 6beautyManager.setWhitenessLevel(whitenessLevel) // Replace with the Int value of the level you need to set
TXBeautyManager beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager();int whitenessLevel = 6;beautyManager.setWhitenessLevel(whitenessLevel); // Replace with the Int value of the level you need to set
Set Rosy Level
You can call the
setRuddyLevel
API and input an Int value to set the ruddy level.The passed in Int value represents the ruddy level, with a permissible range of 0 - 9; 0 means disabling, and 9 means the most obvious effect.
import RTCRoomEngineimport TXLiteAVSDK_Professionallet beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager()let ruddyLevel = 6beautyManager.setRuddyLevel(ruddyLevel) // Replace with the Int value of the level you need to set
TXBeautyManager beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager();int ruddyLevel = 6;beautyManager.setRuddyLevel(ruddyLevel); // Replace with the Int value of the level you need to set
Note: