TUICallEvent
APIs are the callback APIs of the audio/video call component.Event | Description |
An internal error occurred. | |
The SDK is ready. | |
The current user was removed from the room due to repeated login. | |
A user accepted the call. | |
A user joined the call. | |
A user left the call. | |
A user rejected the call. | |
The invitee user did not answer. | |
The line is busy. | |
A remote user turned on/off their camera. | |
A remote user turned on/off their mic. | |
A remote user adjusted their call volume. | |
The invitation list for a group call was updated. | |
You were invited to a call. | |
The call was canceled (received by an invitee). | |
The call ended. | |
The device list was updated. | |
The call type changed. |
let onError = function(error) {console.log(error);};tuiCallEngine.on(TUICallEvent.ERROR, onError);
let onSDKReady = function(event) {console.log(event)};tuiCallEngine.on(TUICallEvent.SDK_READY, onSDKReady);
let handleOnKickedOut = function(event) {console.log(event)};tuiCallEngine.on(TUICallEvent.KICKED_OUT, handleOnKickedOut);
let handleUserAccept = function(event) {console.log(event)};tuiCallEngine.on(TUICallEvent.USER_ACCEPT, handleUserAccept);
let handleUserEnter = function(event) {console.log(event)};tuiCallEngine.on(TUICallEvent.USER_ENTER, handleUserEnter);
let handleUserLeave = function(event) {console.log(event)};tuiCallEngine.on(TUICallEvent.USER_LEAVE, handleUserLeave);
let handleInviteeReject = function(event) {console.log(event)};tuiCallEngine.on(TUICallEvent.REJECT, handleInviteeReject);
let handleNoResponse = function(event) {console.log(event)};tuiCallEngine.on(TUICallEvent.NO_RESP, handleNoResponse);
let handleLineBusy = function(event) {console.log(event)};tuiCallEngine.on(TUICallEvent.LINE_BUSY, handleLineBusy);
let handleUserVideoChange = function(event) {console.log(event)};tuiCallEngine.on(TUICallEvent.USER_VIDEO_AVAILABLE, handleUserVideoChange);
let handleUserAudioChange = function(event) {console.log(event)};tuiCallEngine.on(TUICallEvent.USER_AUDIO_AVAILABLE, handleUserAudioChange);
let handleUserVoiceVolumeChange = function(event) {console.log(event)};tuiCallEngine.on(TUICallEvent.USER_VOICE_VOLUME, handleUserVoiceVolumeChange);
let handleGroupInviteeListUpdate = function(event) {console.log(event)};tuiCallEngine.on(TUICallEvent.GROUP_CALL_INVITEE_LIST_UPDATE, handleGroupInviteeListUpdate);
let handleNewInvitationReceived = function(event) {console.log(event)};tuiCallEngine.on(TUICallEvent.INVITED, handleNewInvitationReceived);
let handleCallingCancel = function(event) {console.log(event)};tuiCallEngine.on(TUICallEvent.CALLING_CANCEL, handleCallingCancel);
let handleCallingEnd = function(event) {console.log(event)};tuiCallEngine.on(TUICallEvent.CALLING_END, handleCallingEnd);
let handleDeviceUpdated = function({ microphoneList, cameraList, currentMicrophoneID, currentCameraID }) {console.log(microphoneList, cameraList, currentMicrophoneID, currentCameraID)};tuiCallEngine.on(TUICallEvent.DEVICED_UPDATED, handleDeviceUpdated);
let handleCallTypeChanged = function({ oldCallType, newCallType }) {console.log(oldCallType, newCallType)};tuiCallEngine.on(TUICallEvent.CALL_TYPE_CHANGED, handleDeviceUpdated);
Was this page helpful?