TUICallObserver is the callback class of TUICallEngine. You can use it to listen for events.API | Description |
A call occurred during the call. | |
A call invitation was received. | |
The call was connected. | |
The call ended. | |
The call not connected. | |
A user declined the call. | |
A user didn't respond. | |
A user was busy. | |
A user is invited to join a call. | |
A user joined the call. | |
A user left the call. | |
Whether a user had a video stream. | |
Whether a user had an audio stream. | |
The volume levels of all users. | |
The network quality of all users. | |
The current user was kicked offline. | |
The user Sig is expired. |
void onError(int code, String message);
Parameter | Type | Description |
code | int | The error code. |
message | String | The error message. |
void onCallReceived(String callId, String callerId, List<String> calleeIdList,TUICallDefine.MediaType mediaType, TUICallDefine.CallObserverExtraInfo info);
Parameter | Type | Description |
callId | String | Unique ID of this call |
callerId | String | Caller ID |
calleeIdList | List<String> | Callee ID List |
mediaType | The call type, which can be video or audio. | |
info | Extended information |
void onCallBegin(String callId, TUICallDefine.MediaType mediaType, TUICallDefine.CallObserverExtraInfo info);
Parameter | Type | Description |
callId | String | Unique ID of this call |
mediaType | The call type, which can be video or audio. | |
info | Extended information |
void onCallEnd(String callId, TUICallDefine.MediaType mediaType, TUICallDefine.CallEndReason reason,String userId, long totalTime, TUICallDefine.CallObserverExtraInfo info);
Parameter | Type | Description |
callId | String | Unique ID of this call |
mediaType | The call type, which can be video or audio. | |
reason | Call end reason | |
userId | String | Ended by user ID |
totalTime | long | The call duration. |
info | Extended information |
void onCallNotConnected(String callId, TUICallDefine.MediaType mediaType, TUICallDefine.CallEndReason reason,String userId, TUICallDefine.CallObserverExtraInfo info);
Parameter | Type | Description |
callId | String | Unique ID of this call |
mediaType | The call type, which can be video or audio. | |
reason | Call end reason | |
userId | String | Not connected by user ID |
info | Extended information |
void onUserReject(String userId);
Parameter | Type | Description |
userId | String | The user ID of the invitee who rejected the call. |
void onUserNoResponse(String userId);
Parameter | Type | Description |
userId | String | The user ID of the invitee who did not answer. |
void onUserInviting(String userId);
Parameter | Type | Description |
userId | String | The user ID of the invite. |
void onUserLineBusy(String userId);
Parameter | Type | Description |
userId | String | The user ID of the invitee who is busy. |
void onUserJoin(String userId);
Parameter | Type | Description |
userId | String | The ID of the user who joined the call. |
void onUserLeave(String userId);
Parameter | Type | Description |
userId | String | The ID of the user who left the call. |
void onUserVideoAvailable(String userId, boolean isVideoAvailable);
Parameter | Type | Description |
userId | String | The user ID. |
isVideoAvailable | boolean | Whether the user has video. |
void onUserAudioAvailable(String userId, boolean isAudioAvailable);
Parameter | Type | Description |
userId | String | The user ID. |
isAudioAvailable | boolean | Whether the user has audio. |
void onUserVoiceVolumeChanged(Map<String, Integer> volumeMap);
Parameter | Type | Description |
volumeMap | Map | The volume table, which includes the volume of each user ( userId). Value range: 0-100. |
void onUserNetworkQualityChanged(List<TUICallDefine.NetworkQualityInfo> networkQualityList);
Parameter | Type | Description |
networkQualityList | List | The current network conditions for all users ( userId). |
init again.void onKickedOffline();
userSig, and then invoke init again.void onUserSigExpired();
void onCallCancelled(String userId);
Parameter | Type | Description |
userId | String | The user ID of the inviter. |
void onCallMediaTypeChanged(TUICallDefine.MediaType oldCallMediaType,TUICallDefine.MediaType newCallMediaType);
Parameter | Type | Description |
oldCallMediaType | The call type before the change. | |
newCallMediaType | The call type after the change. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback