Sorry to be so short, but I just notice the call to VLC video, on the VLC commands page :
controls.play(uri); launch the movie in the plugin
So my first though is that you call the wrong thing, as
$file seems to be the filename and not the uri, but as I can't check your server, I can't tell for sure. It would be easier if I (and others) can see the errors and what's already working. For now, server doesn't respond or do a 404 error.
I see that you just copy the examples in your php page, that means you do call all included files from the "originals" servers, it's a thing not to be done ^^
You'll have to copy each file near your php script that is called, and rewrite the call in it without uri, just the filename, as it will be in the same folder (or make a subfolder "include", and your calls like this :
<script language="javascript" src="./include/ExternalLibLoader.js"></script> )
But, that way, and with all respect, if you have not a lot of knowledge in php, it takes less interest...
I mean, if you were PHP scripter, you can do a lot of things that would justify to do like you just try to, but if it's not the case, you just lose time to do something twisted and difficult for a newbie in PHP, instead of just including the VLC commands inside a HFS template.
Also people in here are interested in HFS things, here you ask for PHP/apache/lightserver things ^^
I just want to mean that you'll probably get more answer if you ask about how to include the VLC commands in a HFS template
I'm on others things for now, i'll look further into templates later, as it is for me a free way to anything i'll sure do it, but for now no ^^
I'm sure that actuals addicts know how to do this ^^
As template like RAWR's one can show an image an propose action depending on the extension of the file.
So, the procedure should look like this :
- RAWR see a FLV video,
- it shows the miniature image with the same name,
- on click on it, it launches the VLC command (it should be better to propose more buttons, as not every one have VLC, and as people like me do not install such plugins.).
You just have to include the files for VLC (correctly, don't call them from the originals servers), and ask the HFS's templates lovers some help
In fact your PHP script reproduce the file listing done with HFS templates(and is not necssary, as HFS templates do the same), and add HTML/Javascript commands to propose and launch VLC. That, i'm sure HFS can handle, as Javascript is handled by the visitor's navigator.
Just my idea, after, you're free to persist in the PHP way