This is a Node.js application for streaming video content over HTTP using the Express.js framework. It allows you to efficiently serve large video files to clients while supporting partial content requests.
Before getting started, ensure you have the following dependencies installed on your system:
- Node.js: You can download it from https://nodejs.org/.
-
Clone this repository or download the source code.
git clone https://github.com/thesmartcoder7/video-streaming-server.git
-
From here, navigate to the project directory
cd video-streaming-server
-
Install the npm packages
npm install
Place your video file (e.g., Chris-Do.mp4) in the root directory of the project.
Start the server by running the following command:
node server.js
This will start the server, and you will see the message "Listening on port 8000!" in the console, indicating that the server is running.
To access the video stream, open a web browser and navigate to http://localhost:8000/video. You should be able to stream the video.