Skip to content

bkanhu/stream-video

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Streaming from a Public Directory

Stream videos from a public directory hosted on your server directly into VLC media player using Node.js.

Why this?

  • Automatically fetch and list video links hosted on your server.

  • Stream videos one by one in VLC player.

  • Easily start or continue from any video.

How to use this?

Step 1: Fetch Video URLs

  • Open the URL of the directory in browser.
  • Open getVideoUrls.js and copy the code and paste in browser console.
  • It’ll give you an array of video links. Just copy that.

Step 2: Add URLs in links.js

Open links.js and paste the copied video URLs array there.

Example content of links.js:

const videoUrls = [
  "http://your-vps-server.com/videos/video1.mp4",
  "http://your-vps-server.com/videos/video2.mp4",
  // ...other video URLs
];

Step 3: Start Streaming the Videos

Open the terminal and run this command:

npm run start

This will open VLC and start streaming the videos one after another.

Step 4: Continue from Any Video

If you want to resume from a particular video (say the 3rd one), just change the index value in the video.js file.

Future Plan:

Next, we’ll automate video link fetching using Puppeteer, so URLs will be scraped directly from public directories without manual copy-pasting.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors