August 2017
Beginner
298 pages
7h 4m
English
Now that you have a link, we need to make a user join the room using that link. The process is simple: when the user opens the link, he joins the room and video of all the participants is displayed to him. To make a user join a room, SimpleWebRTC has the joinRoom('roomName') method, where the room name string is passed as a parameter. Once a user is in a room, it will look for the videos of other users connected in the room and will fire a videoAdded event for each video it finds, along with a callback function, which has the video object and the peer object of that user.
Let's strategize on how the process should work:
Read now
Unlock full access