This document mainly introduces how to use the RTC Room Engine
SDK to implement beauty-related features.
Prerequisites
Before using the beauty settings features provided by the RTC Room Engine
SDK, you need to complete the SDK login. User Guide
Set beauty filter effect level
You can set the beauty level by calling the setBeautyLevel
API and passing an Int value.
The Int value represents the beauty level, ranging from 0 to 9; 0 means disabled, 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 brightening filter effect level
You can set the whiteness level by calling the setWhitenessLevel
API and passing an Int value.
The Int value represents the whiteness level, ranging from 0 to 9; 0 means disabled, 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 filter effect level
You can set the ruddy level by calling the setRuddyLevel
API and passing an Int value.
The Int value represents the ruddy level, ranging from 0 to 9; 0 means disabled, 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 for the desired level
Note:
If you need to use more beauty-related features, refer to TXBeatyManager. (context: highlighted block content)
Was this page helpful?