Let's integrate our SDK in few minutes
#
Getting started#
Introduction#
Requirements- Android API Level 21 or above
#
InstallationThe SDK is already compiled into an AAR file. To use the SDK, the below AAR file has to be imported into the project. Call sdk needs kotlin support in your project.
STEPS:
- Create a new Android project or Open a existing project
- Add the following libraries in app/libs folder in the project
- flycommons.aar
- flynetwork.aar
- flywebrtc.aar
Add the following dependencies in app/build.gradle file.
Add the below dependencies required by the SDk in app/build.gradle
Add the below code in the app level build.gradle:
#
Initial setupIn your application class oncreate
method add the below lines:
Argument | Type | Description |
---|---|---|
SIGNAL_SERVER_DOMAIN | String | signal server url |
JANUS_WEBSOCKET_SERVER_DOMAIN | String | janus websocket server url |
CALL_UI_ACTIVITY | Class | Activity which needs to be invoked during incoming call. when a incoming call is received Call sdk will start this activity with the call details |
ICE_SERVERS_LIST | List<IceServer> | Ice servers list( STUN,TURN) |
Note: Pass your current user jid value to this method
CallManager.setCurrentUserJid()
. when you are making a call it will be used as caller jid.
- Java
- Kotlin
#
Setup your call activityCall UI Activity should be defined like below in your manifest
You need to call the below method on your call activityonCreate()
to configure the call activity.
- Java
- Kotlin
You need to call the below method on onStart()
from your call activity to notify
the call sdk to remove the ongoing call notification
.
- Java
- Kotlin
You need to call the below method on onStop()
from your call activity to notify
the call sdk to show the ongoing call notification
.
- Java
- Kotlin
info
Call Sdk requires chat sdk integration for user management.