This document describes how to run the TRTC web quick demo (Vue.js 2.0).
English | 简体中文
We offer an online web demo (Vue.js 2.0) for you to experience TRTC calling capability.
Enter your application’s SDKAppID and SDKSecretKey on the webpage to enter a room. For how to get the SDKAppID and SDKSecretKey, see TRTC RTC Engine.
When entered the room, you can use the share link to invite others to try the audio/video call feature with you.
- Clone this repository
git clone https://github.com/LiteAVSDK/TRTC_Web.git- Enter this folder
cd ./TRTC_Web/quick-demo-vue2-js-
Run the demo
Note: A node environment of v14.16.0 and above is recommended.
npm start
The http://localhost:8080/ address will be opened in your default browser automatically.
-
Enter the
SDKAppIDandSDKSecretKey. For detailed directions, see TRTC RTC Engine.
- Input userId and roomId
- Click the "Enter Room" button to enter the room
- Click the "Start Local Audio/Video" button to capture microphone or camera
- Click the "Stop Local Audio/Video" button to stop capturing microphone or camera
- Click the "Start Share Screen" button to start screen sharing
- Click the "Stop Share Screen" button to stop screen sharing
-
To package the code to deploy to production, run the command below:
npm run build
-
If an "eslint" error occurs when you modify the code, run the command below to troubleshoot the issue:
npm run lint:fix