Question

I'm trying to launch VideoLan (or the default local video player) from the browser, but not embedded in it.

The idea is to create a small movie list with an .hta file (or similar). I want to run it, see the movie list and select the one I want to play. But all I need is that particular movie to be played locally, out of the browser; just the same as me double clicking on the file.

Is this difficult?

I'm open to any answer, not just ".hta" kind. I'd like my app to run on a browser, but it's OK to use any other platform.

Was it helpful?

Solution

use shell.run to execute the video(the following codes are JScript):

 shell = new ActiveXObject("WScript.shell") ;
 shell.run('"C:\\path\\to\\video.mp4"');   

...what will open the video with the default-player

to open it with VLC use:

shell.run('"C:\\path\\to\vlc.exe" "C:\\path\\to\\video.mp4"');   
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top