SecureStream is a simple video streaming application that demonstrates how to securely stream video content from a server to a client without allowing direct download of the video files.
- Using
createReadStream
from thefs
module of Node.js to stream video files to the client, prevents users from downloading the entire video content directly. - Instead, the video is sent to the client in smaller chunks, making it challenging for users to download or save the complete video file.
Follow these steps to run the project locally:
-
Clone the repository to your local machine:
git clone <repository-url>
-
Navigate to the project directory:
cd <project-directory>
-
Install dependencies for both the client and server:
cd client npm install cd ../server npm install
-
Add video file in
server/public
& update the URL as per file name inserver/app.js
-
Start the Express server:
npm start
-
Start the React client:
cd ../client npm start
-
Open your browser and visit
http://localhost:5173/
to view the SecureStream app.
- React.js
- Express.js
- Node.js
react-player
for video playback in the frontend
Contributions are welcome! Feel free to open issues or submit pull requests to improve the project.
For any inquiries or feedback, feel free to get in touch with me.