本文档主要介绍如何快速跑通 TUIRoomKit 示例工程,体验高质量多人视频会议。跟随本文档,您可以在10分钟内跑通 Demo,并最终体验一个包含完备 UI 界面的多人视频会议功能。
![](https://qcloudimg.tencent-cloud.cn/image/document/bed597de6fd5a8983def4a9ad4ec5777.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/bed597de6fd5a8983def4a9ad4ec5777.png)
环境准备
Node.js 版本:Node.js ≥ 16.19.1(推荐使用官方 LTS 版本,npm 版本请与 node 版本匹配)。
现代浏览器, 支持 WebRTC APIs.
下载 Demo
1. 打开终端复制输入示例命令克隆仓库。
2. 安装依赖
cd ./TUIRoomKit/Electron/example/vue3
cd ./TUIRoomKit/Electron/example/vue2
npm install
配置Demo
1. 激活 TUIRoomKit 服务,获取 SDKAppID 和 SDKSecretKey。
![](https://qcloudimg.tencent-cloud.cn/image/document/273f0f49ed9175d02170ae7cf4f4c7f3.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/273f0f49ed9175d02170ae7cf4f4c7f3.png)
2. 打开 TUIRoomKit/Electron/example/vue3/packages/renderer/src/config/basic-info-config.js 文件,并输入激活服务时获得的 SDKAppID 和 SDKSecretKey:
![](https://qcloudimg.tencent-cloud.cn/image/document/c3027f297efc8c3b97452e5392e070be.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/c3027f297efc8c3b97452e5392e070be.png)
注意:
Vue2 项目请打开 TUIRoomKit/Electron/example/vue2/src/config/basic-info-config.js 文件,并输入激活服务时获得的 SDKAppID 和 SDKSecretKey 即可。
跑通 Demo
在终端中输入命令,运行 Demo。
# cd TUIRoomKit/Electron/example/vue3npm run dev
# cd TUIRoomKit/Electron/example/vue2npm run start
注意:
![](https://qcloudimg.tencent-cloud.cn/image/document/50cdececd0a43c52c21594fa593edba1.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/50cdececd0a43c52c21594fa593edba1.png)
创建您的第一个会议
单击
新建房间
创建您的第一个会议房间,房间类型分别为举手发言房间和自由发言房间。1. 自由发言房间
![](https://qcloudimg.tencent-cloud.cn/image/document/69c6f2bf0ef61f69d60b41f396337be8.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/69c6f2bf0ef61f69d60b41f396337be8.png)
2. 举手发言房间
![](https://qcloudimg.tencent-cloud.cn/image/document/9bf23df1a603d8ac283bcf9caf049d4a.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/9bf23df1a603d8ac283bcf9caf049d4a.png)
加入会议
参与者可以通过填写对应的
RoomId
,来加入由会议主持人创建的会议。![](https://qcloudimg.tencent-cloud.cn/image/document/5425fb16ac3c51af62b8eb6fa88a141f.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/5425fb16ac3c51af62b8eb6fa88a141f.png)