Run Sample Code

This document mainly introduces how to quickly run through the Conference (TUIRoomKit) sample project and experience a high-quality multi-person video conference. By following this document, you can run through the demo within 10 minutes and ultimately experience a multi-person video conference feature with a complete UI interface.
Conference creation page
Conference main page







Prerequisites

iOS 13.0 or later.
Xcode 15.0 or later.

Download the Demo

1. Download the TUIRoomKit Demo source code from GitHub, or directly execute the following command in the command line:
2. Enter the iOS project directory in the command line:
cd TUIRoomKit/iOS/Example
3. Load the dependent libraries:
pod install
Note:
If you haven't installed CocoaPods, you can refer to this for instructions on how to install.

Configure the Demo

1. Activate the Conference services, to obtain the SDKAppID and SDKSecretKey.



2. Open the project, and within it, find the iOS/Example/Debug/GenerateTestUserSig.swift file. Enter the corresponding SDKAppID and SDKSecretKey obtained from Back:




Running the Demo

1. In Xcode, select the device you want to run the Demo on as shown below:



2. After selecting, click to run and our TUIRoomKit iOS Demo will run on the target device.
APP main page
Conference creation page







Create your first conference

Click on the Create Room button to create your first meeting room. The room types are On-stage Speaking Room and Free Speech Room.
Free Speech Room: Regular users can freely speak and have the liberty to turn their microphones and cameras on or off.
On-stage Speaking Room: Only users on stage can freely turn their microphones and cameras on or off. Regular audience members can apply to become stage users by raising their hand.
Free speech room member management panel
On-stage speaking room member list panel







Join conference

After clicking Join Room, participants can join the meeting created by the host by filling in the corresponding RoomId.
Join conference page
Conference main page