Web
This document describes how to quickly complete the TUILiveKit demo project and experience high-quality live. With this document, you can run through the Demo in 10 minutes and start your own live.
| |
Environment Preparation
Node.js version: Node.js ≥ 16.19.1 (It is recommended to use the official LTS version, and the npm version should match the node version).
Modern browser, supporting WebRTC APIs.
Download Demo
1. Open the Terminal, copy and paste the sample command to clone the repository.
git clone https://github.com/Tencent-RTC/TUILiveKit.git
2. Install dependencies.
cd TUILiveKit/Web/web-vite-vue3
npm install
Configure Demo
1. Activate the TUILiveKit service。get the SDKAppID and SDKSecretKey.
2. Open the
TUILiveKit/web /web-vite-vue3/src/config/basic-info-config.js
file and enter the SDKAppID and SDKSecretKey obtained when activating the service:
Run Demo
1. Run Demo by typing the command in the terminal.
#cd TUILiveKit/Web/web-vite-vue3npm run dev
Note:
For local environment, please access under localhost protocol, please refer to the description of network access protocol.
2. The browser window opens automatically.
3. Click on New Live Room to start your first live.
4. Click the Share link button in the upper left corner to get a link to the room. Viewers can enter the room by typing the link in their browser.
5. Viewers type the link in their browser and are redirected to the login page without login information.
6. After successful login, it will automatically jump to the live page.
Other documents
Communication and feedback
If you have any needs or feedback, you can contact: info_rtc@tencent.com.