tencent cloud

Feedback

Last updated: 2024-08-21 15:33:40
    This document will guide you on how to quickly run the Voice Live Streaming Demo. By following this document, you can run the Demo within 10 minutes and eventually experience a complete UI interface for the Voice Live Streaming feature.
    Host: During live streaming
    Audience: Mic Connect
    
    
    
    
    
    

    Environment preparations

    Android 5.0 (SDK API level 21) or above.
    Gradle 4.2.1 or later.
    Two Android 5.0 or newer devices.

    Step 1: Download the Demo

    1. Download the source code of TUILiveKit Demo from GitHub, or directly run the following command in the terminal:
    2. Open the TUILiveKit Android project through Android Studio:
    
    
    

    Step 2: Configure the Demo

    1. Activate the TRTC service, obtain the SDKAppID and SDKSecretKey.
    
    
    
    2. Open the Android/debug/src/main/java/com/tencent/qcloud/tuikit/debug/GenerateTestUserSig.java file, and enter the SDKAppID and SDKSecretKey obtained when Activate the service:
    
    
    

    Step 3: Running the Demo

    1. In the top right corner of Android Studio, select the device you want to run the Demo on as shown below:
    
    
    
    2. After selecting, click run to deploy the TUILiveKit Android Demo on the target device.
    
    
    
    3. Once the Demo successfully runs on the device, you can initiate and watch the live streaming by following the steps below.

    Start Live Streaming

    Note:
    To experience the complete voice live streaming process, please log in Demo on two separate devices as two users, one as the host and the other as the audience.
    1. Log in & Signup
    Please enter the ID at the User ID. If your current UserID has never been used, you will enter the registration screen where you can set an avatar and nickname for yourself.
    
    
    
    Note:
    Try to avoid setting your User ID to simple strings like "1", "123", "111", as TRTC does not support the same User ID being logged into from multiple devices. Such User IDs like "1", "123", "111" are easily occupied by your colleagues during collaborative development, leading to login failures. Therefore, we recommend setting highly recognizable User IDs while debugging.
    2. The host starts live streaming
    Click the "Start Streaming" button at the bottom center of the home page to enter the live streaming preview page, then click Go Live to begin.
    Host: Before entering the room
    Host: Preview
    Host: During live streaming
    
    
    
    
    
    
    
    
    
    3. Audience joins the Live Streaming Room
    Click any room in the Live Streaming List to enter the Live Streaming Room.
    Audience: Before entering the room
    Audience: After entering the room
    
    
    
    
    
    
    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