Beauty Settings
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 RTCRoomEngineimport TXLiteAVSDK_Professionallet beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager()let beautyLevel = 6beautyManager.setBeautyLevel(beautyLevel) // Replace with the Int value for the desired level (context: code line content)
TXBeautyManager beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager();int beautyLevel = 6;beautyManager.setBeautyLevel(beautyLevel); // Replace with the Int value for the desired level
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 RTCRoomEngineimport TXLiteAVSDK_Professionallet beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager()let whitenessLevel = 6beautyManager.setWhitenessLevel(whitenessLevel) // Replace with the Int value for the desired level (context: code line content)
TXBeautyManager beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager();int whitenessLevel = 6;beautyManager.setWhitenessLevel(whitenessLevel); // Replace with the Int value for the desired level
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 RTCRoomEngineimport TXLiteAVSDK_Professionallet beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager()let ruddyLevel = 6beautyManager.setRuddyLevel(ruddyLevel) // Replace with the Int value for the desired level (context: code line content)
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)