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 RTCRoomEngine
import TXLiteAVSDK_Professional
let beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager()
let beautyLevel = 6
beautyManager.setBeautyLevel(beautyLevel)
TXBeautyManager beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager();
int beautyLevel = 6;
beautyManager.setBeautyLevel(beautyLevel);
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 RTCRoomEngine
import TXLiteAVSDK_Professional
let beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager()
let whitenessLevel = 6
beautyManager.setWhitenessLevel(whitenessLevel)
TXBeautyManager beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager();
int whitenessLevel = 6;
beautyManager.setWhitenessLevel(whitenessLevel);
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 RTCRoomEngine
import TXLiteAVSDK_Professional
let beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager()
let ruddyLevel = 6
beautyManager.setRuddyLevel(ruddyLevel)
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:
If you need to use more beauty effect related features, please see TXBeautyManager.