Making a call
#
Make a callCall feature is essential for the modern day communication. Call sdk allows users to make a one to one audio/video call with the another sdk user.
Note: Permissions are handled in SDK.
#
Required permissionsFor audio call, the below permissions:
You can use the below method to check audio call permissions:
For video call, we need below permissions:
You can use the below method to check video call permissions:
#
Call MetadataTo send custom data while making a call, use the optional metaData
parameter in all makecall methods.This parameter accepts an array of type CallMetadata
caution
Call SDK process only the first three metadata elements, and ensure the metadata doesn't include large data that could interfere with the successful transfer of the VOIP call payload.
#
Make a voice callMake voice call feature allows users to make a one to one audio call with the another sdk user along with call metadata. You can make a voice call using the below method.
Argument | Type | Description |
---|---|---|
TO_USERID | String | Id of the callee |
CALL_METADATA | [CallMetadata] | Optional Call metadata information(Maximum size is 3) |
caution
If one to one call feature unavailable for your plan then it will throw 403 exception.
#
Make a video callMake video call feature allows users to make a one to one video call with the another sdk user along with call metadata. You can make a video call using the below method.
Argument | Type | Description |
---|---|---|
TO_USERID | String | Id of the callee |
CALL_METADATA | [CallMetadata] | Optional Call metadata information(Maximum size is 3) |
caution
If one to one call feature unavailable for your plan then it will throw 403 exception.
#
Make a group voice callMake group voice call feature allows users to make a voice call with multiple sdk users along with call metadata. You can make a group voice call using the below method.
Argument | Type | Description |
---|---|---|
USERID_LIST | [String] | Userid list of the callee's |
GROUP_ID | String | ID of the group from which call is initiated |
CALL_METADATA | [CallMetadata] | Optional Call metadata information(Maximum size is 3) |
caution
If group call feature unavailable for your plan then it will throw 403 exception.
#
Make a group video callMake group video call feature allows users to make a video call with multiple sdk users along with call metadata. You can make a group video call using the below method.
Argument | Type | Description |
---|---|---|
USERID_LIST | [String] | Userid list of the callee's |
GROUP_ID | String | ID of the group from which call is initiated |
CALL_METADATA | [CallMetadata] | Optional Call metadata information(Maximum size is 3) |
caution
If group call feature unavailable for your plan then it will throw 403 exception.
#
Add participants to the callAfter call is connected, you can able to add users to the ongoing call. sdk provides methods to invite users to the call, once they accepted the incoming call, they will join in the ongoing call.
Argument | Type | Description |
---|---|---|
USERID_LIST | [String] | Userid list of the callee's |
caution
If group call feature unavailable for your plan then it will throw 403 exception.
#
Receiving a incoming audio/video callWhenever you receive the audio/video call from the another sdk user, it should be reported to FlyCallSDK through NotificationCenter.
Through 'messageDict' pass the payload of the call.
Params | Type | Description |
---|---|---|
room_id | String | room id of the call |
call_status | String | status of the call |
call_mode | String | mode of the call |
call_type | String | type of the call |
Jid | String | user id of the call |
users | String | users of the call |
invite | String | invited users of the call |
group_id | String | room id of the call |
meta_data | String | Metadata String |
#
Disconnect the ongoing callWhenever you make the audio/video call to the another sdk user and you just want to disconnect the call before getting connected or If you want to just disconnect a connected call after the end of conversation, whenever user presses the disconnect button from your call UI , you need to call the below sdk method to disconnect the call and notify the caller.