Call Features
#
Mute audio in callWhenever you are in the audio/video call, you can able to mute the mic so that receiver don't hear your voice or surrounding noise. In order the use the mute faeture you can utilise the method below:
Argument | Type | Description |
---|---|---|
MUTE_AUDIO | boolean | Pass true , if you want to disable audio else pass false |
#
Mute video in callWhenever you are in the video call, you can able to turn off the camera so that receiver don't see your video. In order the use the video mute faeture you can utilise the method below:
Argument | Type | Description |
---|---|---|
MUTE_VIDEO | boolean | Pass true ,if you want to disable audio else pass false |
#
Check mute status of user in callAt any time during a call, you can check the audio/video mute status of the end user.
#
Check Audio mute statusTo check the audio
muted status, call the below method:
Argument | Type | Description |
---|---|---|
USER_JID | String | UserJid of the user, optional param default Current User JID |
#
Check Video mute statusTo check the video
muted status, call the below method:
Argument | Type | Description |
---|---|---|
USER_JID | String | UserJid of the user, optional param default Current User JID |
#
Audio device typesTo get the Available Audio Devices from Plugin, you can use the below method
Param Names | Description |
---|---|
id | Device ID |
type | Device Type |
name | Device Name |
#
Route audio via another deviceTo route audio to another output device, call the below method and pass the device of your choice.
ROUTE_TYPE | Description |
---|---|
bluetooth | To route Audio to Connected Bluetooth Device |
headset | To route Audio to Connected Headset |
receiver | To route Audio to Device Receiver |
speaker | To route Audio to Device speaker |
Note: whenever you are connected to bluetooth headset while using sdk call, if the gsm call arrives and if you attends it then gsm call will take priority for the bluetooth headset.so, even if you disconnect the gsm call, bluetooth headset will not connect back to the sdk call.
#
Switching between camera in video callWhenever you are in video call, you can able to switch between camera's by using the below method.
#
switch audio call to video callWhenever you are in one to one audio call, you can able to switch to video call by using the below method.
#
Handling audio call to video call switch requestsYou need to check the below boolean flag using below method
If the above method returns true
, you may need to show call switch requesting dialog with ACCEPT and REJECT buttons.
if the user accepts
call switch then you need to call the below method to notify the call switch requested user.
If the user rejects
call switch then you need to call the below method to notify the call switch requested user.
#
Getting call logs from the sdkCall sdk keeps a local db for storing call logs which inlcudes all types of call logs with required information for the each and every call log. you can able to retrieve the call logs by using the below sdk method.
Argument | Type | Description |
---|---|---|
PAGE_NUMBER | Int | number of the page |
Note : To get a call logs of respective page, pass the page number
pageNumber
parameter.
#
Observing call logs changes from the sdkIn order to observe the call log changes in sdk, you can set the below listener.
Whenever a call log is updated in the db you will get notified by the onCallLogsUpdated()
callback.
#
Getting missed call countThe plugin maintains a local database for storing missed call logs, including the necessary information for each call log. You can retrieve the count of unread missed calls using the following method.
#
Reset Missed Call CountWhen the user reads the missed calls in the UI, you need to notify the plugin using the below method to keep track of the actual unread missed call count.
#
Delete call logThe plugin maintains a local database for storing call logs, which includes all types of call logs with the necessary information for each entry. You can delete a single or all call logs using the following method.
Argument | Type | Description |
---|---|---|
CALL_LOG_ID | <String> | Ids of the call log |
IS_CLEAR_ALL | Boolean | Pass true for clear all logs else false |
#
Sync all call logsThe plugin keeps a local database for storing call logs, including all types of call logs with the required information for each entry. You can synchronize all call logs to the API using the following method.