tencent cloud

Feedback

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

    Environment preparations

    Xcode 15 or later.
    iOS 13.0 or later.
    To install the CocoaPods environment, please click Viewing.
    If you encounter any problems with access and use, please refer to FAQs.

    Step 1: Download the Demo

    1. Download the source code of TUILiveKit Demo from GitHub, or directly run the following command in the terminal:
    git clone https://github.com/Tencent-RTC/TUILiveKit.git
    2. Enter the iOS project directory in the command line:
    cd TUILiveKit/iOS/Example
    3. Load the dependent libraries:
    pod install
    Note:
    If you have not installed CocoaPods yet, you can refer to this link to learn how to install it.

    Step 2: Configure Demo

    1. Activate the TRTC service, obtain the SDKAppID and SDKSecretKey.
    
    
    
    2. Open the/iOS/Example/Debug/GenerateTestUserSig.swiftDocument,file, and enter the SDKAppID and SDKSecretKey obtained when Activate the service:
    
    
    

    Step 3: Running the Demo

    1. In XCode, select the device you want to run the Demo on as shown below:
    
    
    
    2. After selection, click run to deploy our Demo onto the target device.
    3. After the Demo is successfully running on the device, you can start a Voice Live Streaming and join a Voice Live Streaming by following these steps.

    Start Voice Live Streaming

    Note:
    To experience the complete voice chat room process, please log in the Demo on two devices with two different users, one as the host and the other as the viewer.
    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 the Voice Live Room
    Click the "Start Broadcasting" button at the bottom center of the homepage to enter the broadcast preview page, then click Go Live to successfully create a Voice Chat Room.
    Host: Before entering the room
    Host: Preview
    Host: During live streaming
    
    
    
    
    
    
    
    
    
    3. Audience joins the Voice Live Room
    Click any room in the Live Streaming List to enter the Voice Live 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