startVideoCall

suspend fun startVideoCall(    context: Context,     recipient: STWRecipientSingle,     callPriority: Int = STWCallPriority.NORMAL): ApiResult<STWVCall>

Call this method to start a new video call using recipient

Return

a ApiResult.Success of STWVCall object if the call started successfully otherwise will return ApiResult.Error

Parameters

context

: the application context

recipient

: the other recipient information of type STWRecipientSingle

callPriority

: the call priority , see STWCallPriority


suspend fun startVideoCall(    context: Context,     threadId: Int,     callPriority: Int = STWCallPriority.NORMAL): ApiResult<STWVCall>

Call this method to start a new video call using thread id

Return

a ApiResult.Success of STWVCall object if the call started successfully otherwise will return ApiResult.Error

Parameters

context

: the application context

threadId

: The conversation id

callPriority

: the call priority , see STWCallPriority