Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When the publisher exits directly on the mobile browser, it takes a long time for the PC-based subscribers to receive the exit message. #2561

Open
klk2x opened this issue Mar 9, 2024 · 0 comments

Comments

@klk2x
Copy link

klk2x commented Mar 9, 2024

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.

There is no problem if you close the tab directly on PC

I tried to use html5 pagehide and beforeunload events to handle it and close it manually, but it had no effect

It can also be reproduced in "https://meet.livekit.io/"

Server

  • Version: [1.5.2]
  • Environment: ubuntu 20

Client

  • SDK: @livekit/components-core, @livekit/components-react client-sdk-js
  • Version: latest

To Reproduce
Steps to reproduce the behavior:

  1. two clients are connected to room
  2. One of the publishers opens in a mobile browser, Safari or Chrome or in APP web
  3. close publish mobile page or tab

log in pc close tab :
rtc/signalhandler.go:58 client leaving room

log in mobile close tab :
service/rtcservice.go:379 exit ws read loop for closed connection service/rtcservice.go:266 finishing WS connection connectionquality/scorer.go:405 quality drop rtc/transport.go:644 ice connection state change unexpected rtc/transport.go:644 ice connection state change unexpected

Why is this situation not considered as leaving the room?
Subscribers will see a paused screen for a long time, which is a very bad experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant