https://github.com/mozhn/cordova-plugin-agoracall
Cordova Plugin for Agora
https://github.com/mozhn/cordova-plugin-agoracall
Last synced: about 1 month ago
JSON representation
Cordova Plugin for Agora
- Host: GitHub
- URL: https://github.com/mozhn/cordova-plugin-agoracall
- Owner: mozhn
- License: mit
- Created: 2021-02-24T10:58:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-02-04T14:03:18.000Z (4 months ago)
- Last Synced: 2025-04-24T06:52:43.690Z (about 1 month ago)
- Language: Java
- Size: 225 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# cordova-plugin-agoracall
Cordova Plugin for Agora voice call. Video call will be added soon.## Installation
- Add this to the 'package.json'
- In the dependencies section:
```
"me.mazlum.agoracall": "https://github.com/mozhn/cordova-plugin-agoracall"
```- In the cordova plugins section:
```
"me.mazlum.agoracall": {}
```## Usage
### Init Engine
```
cordova.plugins.AgoraCall.init(appId, eventCallback);
```### Join Channel
```
cordova.plugins.AgoraCall.join(accessToken, channelName, uid);
```### Leave Channel
```
cordova.plugins.AgoraCall.leave();
```### Switch Speaker
```
cordova.plugins.AgoraCall.switchSpeaker(status);
```### Switch Audio
```
cordova.plugins.AgoraCall.switchAudio(status);
```