Skip to content

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

@Madriix

Description

@Madriix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions