How to detect participant disconnection or leaving from room #6254
Replies: 2 comments 4 replies
-
Hi @FarhodKurbonov, There are 2 callbacks that you can check. Whenever someone leaves the room or is dropped for some reason, you will receive a TRACK_LIST_UPDATED event which means that either someone joined or left. Then, you can call getBroadcastObject with room name. It returns the broadcast object from the broadcastObject info callback. You can check the subtracts to see the current participant list. |
Beta Was this translation helpful? Give feedback.
-
@mustafaboleken We're glad to hear that TRACK_LIST_UPDATED event works when people join or leave the room. We're also working on reconnection functionality. However, we noticed that when someone disconnects while in the room, others don't receive the TRACK_LIST_UPDATED event. We'd appreciate any insights on how to handle this situation for a smoother user experience. |
Beta Was this translation helpful? Give feedback.
-
Short Description: Goal - Determine which of the conference participant left the room or not publishing own stream. There are situations when a participant’s mobile device may have low battery and can die or the conference application has been closed for some reason by user.
Use case:
User A
andUser B
joined the room, published/played local/remote streamsUser B
left the room for some reason (phone battery died, user killed the app etc)Expected Result:
User A
should detect thatUser B
is no longer publishing own stream and as a result it is not participant of the room immediately.Additional Info:
It is fair to note possibility of room participants by periodically (3, 5, 10 seconds) checking it via sending getRoomInfo request. Drawback of it next iteration of room information is binding to a timer that user has to set. Is there any other way to know if user is actively streaming or not on webRTC level? There were Server Side Notification such as
streamLeaved
but it has been deleted due to cluster issueBeta Was this translation helpful? Give feedback.
All reactions