Closed klk2x closed 6 months ago
Room participants all open and close in the PC browser and there is no such problem.
Unfortunately there's now way to work around this. It will take a couple of seconds on an abrupt leave of a participant until the server can safely mark it as disconnected.
This time is currently too long. Can this time be customized? On the subscription side, this picture is still and the feeling is poor.
@lukasIO
you can look at the return value of useConnectionQuality
. If a participant transitions to ConnectionQuality.LOST
it's an indicator that it might have lost connection. There's no other way to customize it. You can try to hook into specific browser APIs (e.g. pageleave
events) and call room.disconnect()
manually there. But FWIW that's already what our SDK is doing, too.
Select which package(s) are affected
\@livekit/components-core, \@livekit/components-react
Describe the bug
The subscriber opens it on the PC segment, and the publisher directly closes the web page or tab after joining the room on the mobile terminal. If directly close the tab to exit instead of clicking hang up, the subscriber's screen will freeze, and it will take >5-10 seconds before the subscriber is considered to have left the meeting.
Reproduction
After entering the room, turn on the camera, connect directly to the web page or tab
Logs
No response
System Info
Severity
annoyance
Additional Information
No response