rg-test-call-engine
v3.0.4
Published
腾讯云 TRTC TUICallEngine
Downloads
4
Maintainers
Readme
An object-oriented TUICallEngine SDK library
Introduction
TUICallEngine Web SDK is based on Tencent Cloud's IM and Tencent Cloud's real-time communication solution. Supports audio and video calls in two-person and multi-person scenarios.
- Online Demo
- Changelog
- We offer SDKs for Web, Android, iOS, MiniProgram, Flutter, explore more in trtc.io.
Environment Supports
TUICallEngine Web SDK supports major modern browsers. For details, please refer to Browsers Supported.
Please be sure to use HTTPS protocol or localhost to deploy your Web App, otherwise a navigator.mediaDevices not found error will occur!
| Chrome | Edge | Firefox | Safari | iOS Safari | Opera | | --------- | --------- | --------- | --------- | --------- | --------- | | 56+ | 80+ | 56+ | 11+ | 11+ | 46+ |
Install
npm:
$ npm install tuicall-engine-webrtc --save
yarn:
$ yarn add tuicall-engine-webrtc
Download manually:
- download tuicall-engine-webrtc.js.
- copy
tuicall-engine-webrtc.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:TUICallEngine Web SDK
API Overview
- TUICallEngine is the main entry for TUICallEngine SDK, providing APIs such as create tuiCallEngine instance TUICallEngine.createInstance, tuiCallEngine.login, tuiCallEngine.call, tuiCallEngine.groupCall.
- tuiCallEngine instance, provides the core capability for real-time audio and video calls.
- Start Call call
- Accept call accept
- Reject call reject
- Hangup call hangup
- Turn on camera openCamera
- Turn on microphone openMicrophone
- Turn off camera closeCamera
- Turn off microphone closeMicrophone
- Play remote video startRemoteView
- Stop playing remote video stopRemoteView
Directory
├── README.md
├── index.d.ts // ts declaration file
├── package.json
└── tuicall-engine-webrtc.js // sdk file base on ES modules