Skip to content

Latest commit

 

History

History

README.md

This document describes how to run the TRTC web quick demo (Vue.js 2.0).

English | 简体中文

Online Demo

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.

How to Run

  1. Clone this repository
git clone https://github.com/LiteAVSDK/TRTC_Web.git
  1. Enter this folder
cd ./TRTC_Web/quick-demo-vue2-js
  1. 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.

  2. Enter the SDKAppID and SDKSecretKey. For detailed directions, see TRTC RTC Engine.

Try the demo

  • 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

Others

  • 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