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

How to create a close that closes navigator.mediaDevices and all the peers #2

Open
Madriix opened this issue Jul 9, 2020 · 1 comment

Comments

@Madriix
Copy link

Madriix commented Jul 9, 2020

Hi
I imported the direct url <script src="https://meeting.site.com/main.1f19ae8e.js"></script> by putting this all at the bottom of a page remotely, and I'm trying to adapt.
Everything works well, the camera is displayed both locally and remotely, but when I close the camera (without reloading the page) and relaunch the camera, there are duplicate peers and they all come back.
To fix this problem, I thought I might have to create a "close () {}" or "part () {}" in Room.js but I don't know what to update inside. Can you tell me how to create a closure of navigator.mediaDevices.getUserMedia that closes all peers?

salutations

@Madriix Madriix changed the title How to create a close that closes navigator.mediaDevices How to create a close that closes navigator.mediaDevices and all the peers Jul 9, 2020
@Madriix
Copy link
Author

Madriix commented Jul 12, 2020

it is resolved.

I also deleted close(){} which was useless. I opened a ticket here for my other problem: https://mediasoup.discourse.group/t/on-trackended-does-not-work-when-closing-the-webcam/1428

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