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 canceled. | |
The call was connected. | |
The call ended. | |
The call type changed. | |
A user declined the call. | |
A user didn't respond. | |
A user was busy. | |
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 msg);
Parameter | Type | Description |
code | int | The error code. |
msg | String | The error message. |
void onCallReceived(String callerId, List<String> calleeIdList, String groupId,TUICallDefine.MediaType callMediaType, String userData);
Parameter | Type | Description |
callerId | String | The user ID of the inviter. |
calleeIdList | List | The invitee list. |
groupId | String | The group ID. |
callMediaType | The call type, which can be video or audio. | |
userData | String |
void onCallCancelled(String userId);
Parameter | Type | Description |
userId | String | The user ID of the inviter. |
void onCallBegin(TUICommonDefine.RoomId roomId, TUICallDefine.MediaType callMediaType, TUICallDefine.Role callRole);
Parameter | Type | Description |
roomId | The room ID. | |
callMediaType | The call type, which can be video or audio. | |
callRole | The role, which can be caller or callee. |
void onCallEnd(TUICommonDefine.RoomId roomId, TUICallDefine.MediaType callMediaType, TUICallDefine.Role callRole, long totalTime);
Parameter | Type | Description |
roomId | The room ID. | |
callMediaType | The call type, which can be video or audio. | |
callRole | The role, which can be caller or callee. | |
totalTime | long | The call duration. |
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. |
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 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<String, Integer> | 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();
Was this page helpful?