An open API service indexing awesome lists of open source software.

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

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);
```