70 lines
3.3 KiB
Markdown
70 lines
3.3 KiB
Markdown
<p align="center">
|
||
<a href="https://trtc.io/">
|
||
<img width="200" src="https://web.sdk.qcloud.com/trtc/webrtc/assets/trtc.io-logo.png">
|
||
</a>
|
||
</p>
|
||
|
||
<h1 align="center" style="margin-top: -40px">TUICallEngine WX SDK</h1>
|
||
|
||
<div align="center">
|
||
|
||
An object-oriented TUICallEngine SDK library
|
||
|
||
 [](https://www.npmjs.com/package/@trtc/call-engine-lite-wx) [](https://www.npmjs.com/package/@trtc/call-engine-lite-wx) [](https://cloud.tencent.com/document/product/647/78761) [](https://github.com/tencentyun/TUICallKit)
|
||
|
||
</div>
|
||
|
||
<div align="center"> English | <a href="https://github.com/Tencent-RTC/rtc-call-engine/tree/main/Web/demo-vue3" target="_blank"> 简体中文</a> </div>
|
||
|
||
|
||
## Install
|
||
npm:
|
||
```
|
||
$ npm install @trtc/call-engine-lite-wx --save
|
||
```
|
||
|
||
yarn:
|
||
```
|
||
$ yarn add @trtc/call-engine-lite-wx
|
||
```
|
||
|
||
Download manually:
|
||
|
||
1. download [@trtc/call-engine-lite-wx](https://www.unpkg.com/@trtc/call-engine-lite-wx@latest).
|
||
2. copy `@trtc/call-engine-lite-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.
|
||
|
||
- [Demo Quick Run](https://web.sdk.qcloud.com/component/trtccalling/doc/TUICallEngine/web/en/tutorial-00-%E5%AE%9E%E7%8E%B0%E5%8F%8C%E4%BA%BA%E9%80%9A%E8%AF%9D.html)
|
||
- [TUICallEngine Github Demo](https://github.com/Tencent-RTC/rtc-call-engine/tree/main/Web/demo-vue3)
|
||
|
||
Explore SDK documents:[TUICallEngine WX SDK](https://cloud.tencent.com/document/product/647/78761)
|
||
|
||
|
||
## API Overview
|
||
- [tuiCallEngine](https://cloud.tencent.com/document/product/647/78761#createinstance) instance, provides the core capability for real-time audio and video calls.
|
||
- Start single or group calls [calls](https://cloud.tencent.com/document/product/647/78761#calls)
|
||
- Accept call [accept](https://cloud.tencent.com/document/product/647/78761#accept)
|
||
- Reject call [reject](https://cloud.tencent.com/document/product/647/78761#reject)
|
||
- Hangup call [hangup](https://cloud.tencent.com/document/product/647/78761#hangup)
|
||
- Turn on camera [openCamera](https://cloud.tencent.com/document/product/647/78761#opencamera)
|
||
- Turn on microphone [openMicrophone](https://cloud.tencent.com/document/product/647/78761#openmicrophone)
|
||
- Turn off camera [closeCamera](https://cloud.tencent.com/document/product/647/78761#closecamera)
|
||
- Turn off microphone [closeMicrophone](https://cloud.tencent.com/document/product/647/78761#closemicrophone)
|
||
- Play remote video [startRemoteView](https://cloud.tencent.com/document/product/647/78761#startremoteView)
|
||
- Stop playing remote video [stopRemoteView](https://cloud.tencent.com/document/product/647/78761#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
|
||
```
|
||
` |