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.
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:
Note:
If you have not installed CocoaPods yet, you can refer to this link to learn how to install it. Step 2: Configure Demo
2. Open the/iOS/Example/Debug/GenerateTestUserSig.swift
Document,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.
Step 4: Voice Live Streaming
Note:
In order to allow you to experience the complete video live broadcast process, please log in two users on two devices to use the Demo, one as the host and the other as the audience.
1. Log in & Signup
Please enter your UserId
in the User ID field. If your current User ID has not been used before, you will be taken to the Registration page where you can set an avatar and nickname for yourself.
Anchor(mike) |
| Audiece(vince) |
|
| | | |
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 anchor starts the Voice Live Room
Click the Start Live button in the middle of the bottom of the homepage to enter the broadcast preview page, and then click Start Live to start the live broadcast.
3. Viewers join the Voice Live Room.
Click on any room in the live broadcast list to enter the live broadcast room.
Was this page helpful?