Skip to content

RoomCallEventListener

Adnan Mujagić edited this page Oct 1, 2025 · 8 revisions



onRoomJoined(roomJoinedEvent)

Description

This callback method is triggered when the user joins the room.

Arguments

  • roomJoinedEvent: RoomJoinedEvent - Event object representing the room, including the room ID, name, participants, and the recording type.

Returns

  • N/A



onRoomLeft(roomLeftEvent)

Description

This callback method is triggered when the user leaves the room.

Arguments

  • roomLeftEvent: RoomLeftEvent - Event object containing details about how the room was left, including any error codes.

Returns

  • N/A



onError(errorEvent)

Description

This callback method is triggered when a call encounters an error but does not hang up the call.

Arguments

  • errorEvent: ErrorEvent - Event object containing details about the error, including error codes.

Returns

  • N/A



onCameraVideoAdded(cameraVideoAddedEvent)

Description

This callback method is triggered when a local camera video stream is added to the call.

Arguments

  • cameraVideoAddedEvent: CameraVideoAddedEvent - Event object representing the local camera RTC video track.

Returns

  • N/A



onCameraVideoUpdated(cameraVideoUpdatedEvent)

Description

This callback method is triggered when the local camera video stream is updated during the call.

Arguments

  • cameraVideoUpdatedEvent: CameraVideoUpdatedEvent - Event object representing the updated local camera video RTC track.

Returns

  • N/A



onCameraVideoRemoved(cameraVideoRemovedEvent)

Description

This callback method is triggered when the local camera video stream is removed during the call.

Arguments

  • cameraVideoRemovedEvent: CameraVideoRemovedEvent - Event object representing the reason for the removal of the camera video.

Returns

  • N/A



onScreenShareAdded(screenShareAddedEvent)

Description

This callback method is triggered when screen sharing is started locally on the call.

Arguments

  • screenShareAddedEvent: ScreenShareAddedEvent - Event object representing the screen share track added to the call.

Returns

  • N/A



onScreenShareRemoved(screenShareRemovedEvent)

Description

This callback method is triggered when screen sharing is stopped locally on the call.

Arguments

  • screenShareRemovedEvent: ScreenShareRemovedEvent - Event object representing the reason for the removal of the screen share.

Returns

  • N/A



onParticipantJoining(participantJoiningEvent)

Description

This callback method is triggered when a participant attempts to join the room.

Arguments

  • participantJoiningEvent: ParticipantJoiningEvent - Event object representing the participant attempting to join the room, including participant details.

Returns

  • N/A



onParticipantJoined(participantJoinedEvent)

Description

This callback method is triggered when a participant successfully joins the room.

Arguments

  • participantJoinedEvent: ParticipantJoinedEvent - Event object representing the participant who joined the room, including participant details.

Returns

  • N/A



onParticipantLeft(participantLeftEvent)

Description

This callback method is triggered when a participant leaves the room.

Arguments

  • participantLeftEvent: ParticipantLeftEvent - Event object representing the participant who left the room, including participant details.

Returns

  • N/A



onParticipantCameraVideoAdded(participantCameraVideoAddedEvent)

Description

This callback method is triggered when a participant's camera video is added to the room.

Arguments

Returns

  • N/A



onParticipantCameraVideoRemoved(participantCameraVideoRemovedEvent)

Description

This callback method is triggered when a participant's camera video is removed from the room.

Arguments

Returns

  • N/A



onParticipantScreenShareAdded(participantScreenShareAddedEvent)

Description

This callback method is triggered when a participant starts sharing their screen during the room call.

Arguments

Returns

  • N/A



onParticipantScreenShareRemoved(participantScreenShareRemovedEvent)

Description

This callback method is triggered when a participant stops sharing their screen during the room call.

Arguments

Returns

  • N/A



onParticipantMuted(participantMutedEvent)

Description

This callback method is triggered when a participant mutes themselves during the room call.

Arguments

  • participantMutedEvent: ParticipantMutedEvent - Event object representing the participant who muted themselves.

Returns

  • N/A



onParticipantUnmuted(participantUnmutedEvent)

Description

This callback method is triggered when a participant mutes themselves during the room call.

Arguments

  • participantMutedEvent: ParticipantMutedEvent - Event object representing the participant who muted themselves.

Returns

  • N/A



onParticipantDeaf(participantDeafEvent)

Description

This callback method is triggered when a participant has been deafened in the room call.

Arguments

  • participantDeafEvent: ParticipantDeafEvent - Event object representing the participant who was deafened.

Returns

  • N/A



onParticipantUndeaf(participantUndeafEvent)

Description

This callback method is triggered when a participant has been undeafened in the room call.

Arguments

  • participantUndeafEvent: ParticipantUndeafEvent - Event object representing the participant who was undeafened.

Returns

  • N/A



onParticipantBlinded(participantBlindedEvent)

Description

This callback method is triggered when a participant has been blinded in the room call.

Arguments

Returns

  • N/A



onParticipantUnblinded(participantUnblindedEvent)

Description

This callback method is triggered when a participant has been unblinded in the room call.

Arguments

Returns

  • N/A



onParticipantStartedTalking(participantStartedTalkingEvent)

Description

This callback method is triggered when a participant starts talking during the room call.

Arguments

Returns

  • N/A



onParticipantStoppedTalking(participantStoppedTalkingEvent)

Description

This callback method is triggered when a participant stops talking during the room call.

Arguments

Returns

  • N/A



onReconnecting(reconnectingEvent)

Description

This callback method is triggered when the room call initiates the reconnecting process.

Arguments

  • reconnectingEvent: ReconnectingEvent - Event object representing the initiation of the room call reconnecting process, with no additional data.

Returns

  • N/A



onReconnected(reconnectedEvent)

Description

This callback method is triggered when the room call has been successfully reconnected.

Arguments

  • reconnectedEvent: ReconnectedEvent - Event object representing the successful reconnecting of the room call.

Returns

  • N/A



onParticipantDisconnected(participantDisconnectedEvent)

Description

This callback method is triggered when a participant disconnects from the room.

Arguments

  • participantDisconnectedEvent: ParticipantDisconnectedEvent - Event object representing the participant who has disconnected from the room.

Returns

  • N/A



onParticipantReconnected(participantReconnectedEvent)

Description

This callback method is triggered when a participant reconnects to the room.

Arguments

  • participantReconnectedEvent: ParticipantReconnectedEvent - Event object representing the participant who has reconnected to the room.

Returns

  • N/A



onRoomRecordingStarted(roomRecordingStartedEvent)

Description

This callback method is triggered when the room call recording starts.

Arguments

  • roomRecordingStartedEvent: RoomRecordingStartedEvent - Event object containing details about the recording type when room call recording is started.

Returns

  • N/A



onStartedTalking(startedTalkingEvent)

Description

This callback method is triggered when the local participant starts talking.

Arguments

  • startedTalkingEvent: StartedTalkingEvent - Event object representing the start of local participant's speech. This event does not include any additional data.

Returns

  • N/A



onStoppedTalking(stoppedTalkingEvent)

Description

This callback method is triggered when the local participant stops talking.

Arguments

  • stoppedTalkingEvent: StoppedTalkingEvent - Event object representing the end of local participant's speech. This event does not include any additional data.

Returns

  • N/A

Tutorials

Migration guides

Reference documentation

Clone this wiki locally