dushyant18033 / simple-peer-video-call

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple-peer-video-call

How to run the server

1. Clone this repository into your local machine.
2. Change into this cloned directory using cd command.
3. Run the command "node server.js".

This will start a local web server that can be accessed within this local machine at the address http://localhost:3000.
You can host a proxy server to provide public access to this server.

Main routes in the WebApp

1. http://localhost:3000/ returns a json string with ids of all the connected users, separately for student and teacher types.
2. http://localhost:3000/begin opens up a teacher page and a session is started with the teacher's id as the session id.
3. http://localhost:3000/join opens up a student page.

How to start or join a session

1. The teacher upon opening the begin page can fetch currently logged in users and send them an invite to join the session.
2. The student upon opening the join page can either manually enter a session id or accept an invitation followed by clicking on connect to join a session.

About


Languages

Language:HTML 79.3%Language:JavaScript 20.7%