Skip to content

LiteAVSDK/TRTC_Web

Repository files navigation

TRTC Web SDK

English | 简体中文

Introduction

TRTC Web SDK is an object-oriented WebRTC SDK of Tencent Cloud's real-time communication solution. Web developers can use TRTC Web SDK to establish an audio/video calls or live streaming services on your website.

Supported Browsers

TRTC Web SDK supports major modern browsers. For details, please refer to Browsers Supported.

Chrome
Chrome
IE / Edge
Edge
Firefox
Firefox
Safari
Safari
iOS Safari
iOS Safari
Opera
Opera
56+ 80+ 56+ 11+ 11+ 46+

Install

npm:

$ npm install trtc-sdk-v5 --save

yarn:

$ yarn add trtc-sdk-v5

Download manually:

  1. download trtc.js.
  2. copy trtc.js to your project.

Usage

Refer to the following two tutorials for a quick run-through of the demo and how to use the SDK to implement basic audio and video calling functionality.

Explore SDK API documents:TRTC Web SDK.

API Overview

Directory

.
├── README.md
├── quick-demo-js           -- TRTC Web quick demo (JavaScript edition).
├── quick-demo-vue2-js      -- TRTC Web quick demo (Vue.js 2 edition).
├── quick-demo-vue3-ts      -- TRTC Web quick demo (Vue.js 3 edition).
├── SDK                     -- TRTC Web SDK v5.x (Recommended).
└── v4                      -- TRTC Web SDK v4.x (Not recommended).

SDK

quick-demo-js

  • Description: quick-demo-js is a TRTC Web quick running demo (native JS version), integrating the basic audio and video communication and device selection functions of TRTC Web SDK. It is developed in native JS and can be directly run in the browser.
  • Running: Refer to the README in the folder.
  • Online experience: Quick-demo-js online experience address.

quick-demo-vue2-js

  • Description: quick-demo-vue2-js is a TRTC Web quick running demo (Vue2 version), integrating the basic audio and video communication and device selection functions of TRTC Web SDK. It is developed in Vue2 + JavaScript and requires you to install the Node environment to run the experience according to the instructions below.
  • Running: Refer to the README in the folder.
  • Online experience: Quick-demo-vue2-js online experience address.

quick-demo-vue3-ts

  • Description: quick-demo-vue3-ts is a TRTC Web quick running demo (Vue3 version), integrating the basic audio and video communication and device selection functions of TRTC Web SDK. It is developed in Vue3 + TypeScript and requires you to install the Node environment.
  • Running: Refer to the README in the folder.
  • Online experience: Quick-demo-vue3-ts online experience address.

Contact Us

  • If you have questions, see FAQs.
  • Contact us for technical support.
  • To report bugs, please create an issue.