You can either watch the video above or follow the steps below.
- Start the Video Server. By default, the Video Server launches 3 sockets, each acting as a server:
- WebSocket Server (runs on port 1234)
- MJPEG Server (runs on port 4444)
- Camera Server (runs on port 4321)
- Install the app on your phone.
- Navigate to the app's settings screen and set up your camera server's IP. For example:
192.168.178.101:4321 - Open the stream screen and click the "Start streaming" button.
- Your phone is now sending video data to your Camera Server.
The stream can be watched from either your browser, the Web App, or apps like VLC Media Player.
Open your favorite web browser and navigate to your MJPEG Server's IP address. For example:
http://192.168.178.101:4444
Open VLC Media Player. Go to File → Open Network → Network and enter your MJPEG Server's IP address. For example:
http://192.168.178.101:4444/
- Navigate to the Web App's root directory and execute
webpack servein your terminal. - Open your browser and go to
http://localhost:8080/. - Go to the settings page and enter your WebSocket Server's IP address. For example:
192.168.178.101:1234 - Navigate to the streaming page at
http://localhost:8080/stream.htmland click the "Connect" button.
Note: This section is only required if you'd like to take screenshots from the Web App.
- Open the Web App's server project.
- Open
index.jsand edit the connection object to match your MySQL credentials. - Create the required tables by executing the SQL query located in
user.sql. - From the root directory, run
node index.jsin your terminal. - You may have to update the IP that the Web App connects to. You can edit this IP in the Web App's
stream.htmlfile (see theBACKEND_URLconstant). - Create a user through the Web App at
http://localhost:8080/register.html. - Take screenshots from
http://localhost:8080/stream.html. - View your screenshots at
http://localhost:8080/gallery.html.





