2.9.0-beta.0 • Published 5 months ago
rg-engine-wx v2.9.0-beta.0
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.
Install
npm:
$ npm install @tencentcloud/call-engine-wx --save
yarn:
$ yarn add @tencentcloud/call-engine-wx
Download manually:
- download @tencentcloud/call-engine-wx.
- copy
@tencentcloud/call-engine-wx
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 WX 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-zh_CN.md
├── README.md
├── index.js // sdk file base on UMD modules
├── index.esm.js // sdk file base on ESM modules
├── index.cjs.js // sdk file base on CommonJS modules
├── index.d.ts // ts declaration file
└── package.json
`
2.9.0-beta.0
5 months ago