tencent cloud

Tencent Real-Time Communication

Beauty Settings

下载
聚焦模式
字号
最后更新时间: 2025-06-23 14:21:00
本文档由 AI 翻译
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.
iOS
Android
import RTCRoomEngine
import TXLiteAVSDK_Professional

let beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager()

let beautyLevel = 6
beautyManager.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.
iOS
Android
import RTCRoomEngine
import TXLiteAVSDK_Professional

let beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager()

let whitenessLevel = 6
beautyManager.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.
iOS
Android
import RTCRoomEngine
import TXLiteAVSDK_Professional

let beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager()

let ruddyLevel = 6
beautyManager.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:
If you need to use more beauty effect related features, please see TXBeautyManager.



帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈