Skip to content

detecting the order of users added into the room #35

Open
@mudcube

Description

@mudcube

I made some tweaks to my local copy that allow dev's to retrieve the index of a user added to the room. My project requires only the first users camera to be used, but this could be used for other purposes as well, I would imagine.

Basically, you end up with (on the client side):

rtc.users[socket.id] = userIndex;

This requires some small updates to the server branch, sending "roomList" and "you" from within new_peer_connected and get_peers.

Would this be something you'd like to include?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions