HTML links to videos?

Associate
Joined
2 Sep 2010
Posts
2,049
Location
Somerset
I have made a small website for home that has information for all my movies and tv shows etc that I have backed up. Is there any way to create a link that opens the video? I want to be able to click the link and then VLC or MPC-HC opens with the selected video playing.

I know this is a long shot but worth a try XD

Cheers!
 
A normal hyperlink to the video file (assuming it's a local file) should open it up in whatever program you have assigned to that extension.
 
Ah. Strange, it threw up an error message when I tried that. I had to moves the html folder to the drive that the file was on in order for it to work. How do I do it when the files are on multiple drives?
 
Ah, I got it working :D. Is there anyway I could batch add files? I have a lot (more than 2000) that I would like to add.
 
Are they all in the same directory, or scattered about everywhere?

You could use javascript to list all the files in a directory (and subdirectories) that could automatically generate a link to the file
 
Are they all in the same directory, or scattered about everywhere?

You could use javascript to list all the files in a directory (and subdirectories) that could automatically generate a link to the file

I've got them all in one directory but in their own subdirectory.
 
Last edited:
bump this over the weekend and I'll see what I can work up if you want.

Workin 12 hour shifts right now, so no time until then :p

But essentially, to do it.... get Javascript to recursively list the contents of directories...
 
Back
Top Bottom