tencent cloud

Feedback

Beauty Settings

Last updated: 2025-01-09 17:46:42
    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.
    iOS
    Android
    import RTCRoomEngine
    import TXLiteAVSDK_Professional
    
    let beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager()
    
    let beautyLevel = 6
    beautyManager.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.
    iOS
    Android
    import RTCRoomEngine
    import TXLiteAVSDK_Professional
    
    let beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager()
    
    let whitenessLevel = 6
    beautyManager.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.
    iOS
    Android
    import RTCRoomEngine
    import TXLiteAVSDK_Professional
    
    let beautyManager = TUIRoomEngine.sharedInstance().getTRTCCloud().getBeautyManager()
    
    let ruddyLevel = 6
    beautyManager.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)
    
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support