trtc-sdk-v5 v5.5.2
An object-oriented WebRTC SDK library
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.
Environment Supports
TRTC Web SDK supports major modern browsers. For details, please refer to Browsers Supported.
Chrome | Edge | Firefox | Safari | iOS Safari | Opera |
---|---|---|---|---|---|
56+ | 80+ | 56+ | 11+ | 11+ | 46+ |
Install
npm:
$ npm install trtc-sdk-v5 --save
yarn:
$ yarn add trtc-sdk-v5
Download manually:
- download trtc.js.
- 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 documents:TRTC Web SDK
API Overview
- TRTC is the main entry for TRTC SDK, providing APIs such as create trtc instance(TRTC.create), TRTC.getCameraList, TRTC.getMicrophoneList, TRTC.isSupported.
- trtc instance, provides the core capability for real-time audio and video calls.
- Enter room trtc.enterRoom
- Exit room trtc.exitRoom
- Turn on camera trtc.startLocalVideo
- Turn on microphone trtc.startLocalAudio
- Turn off camera trtc.stopLocalVideo
- Turn off microphone trtc.stopLocalAudio
- Play remote video trtc.startRemoteVideo
- Stop playing rmeote video trtc.stopRemoteVideo
- Mute/unmute remote audio trtc.muteRemoteAudio
Directory
├── README.md
├── package.json
├── trtc.js // sdk file(umd format)
├── trtc.esm.js // sdk file base on ES modules(esm format)
└── index.d.ts // ts declaration file
Changelog
4 days ago
4 days ago
4 days ago
7 days ago
10 days ago
10 days ago
9 days ago
10 days ago
10 days ago
11 days ago
17 days ago
21 days ago
21 days ago
21 days ago
24 days ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
7 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago