Skip to content

Between-Threads-Project/Live-Streaming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Between Threads - Live Streaming

Small local streaming project with a simple web interface.

The application allows you to:

  • turn the camera on
  • turn the camera off
  • display an MJPEG stream in the browser
  • see whether the status is OFFLINE or LIVE

Project Files

  • index.html: page structure
  • style.css: interface styling
  • script.js: front-end logic for turning the camera on and off
  • server.js: Node.js server and video stream handling with ffmpeg

Requirements

  • node
  • ffmpeg
  • a camera available at /dev/video0
  • a Linux environment compatible with video4linux2

Run the Project

From the project folder:

node server.js

Then open in your browser:

http://localhost:8000

How It Works

The server starts ffmpeg when the camera is enabled.
The stream is sent as MJPEG on the /stream route.
The front end also uses:

  • /status to check the camera status
  • /cam/on to start the camera
  • /cam/off to stop the camera

Note

This project is designed for local or private network use, with a simple and minimal setup.

About

Web interface used to live stream the puppet.

Topics

Resources

License

Stars

Watchers

Forks

Contributors