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

Video getting stuck after the other user leaves the room #14

Closed
shrey1608 opened this issue Aug 1, 2020 · 2 comments
Closed

Video getting stuck after the other user leaves the room #14

shrey1608 opened this issue Aug 1, 2020 · 2 comments

Comments

@shrey1608
Copy link

when the user leaves the room the video gets stuck and doesn't clear out after some time.

@micaiah-effiong
Copy link

You need to close the connection of the user that just left...

  • To do this you will have to listen to a socket disconnect event on the server, and run io.emit with the corresponding peerId.
  • On the front listen for disconnect, and run
    myPeer.connections[peerId][0].close()

Hope this helps...
Waiting to get your feedback

@akkhilaysh
Copy link

Take a look at my recently opened Pull Request #25. It offers a solution to this issue.

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

3 participants