Page 1 of 1

Shutdown VLC via HTTP

Posted: 25 Apr 2008 16:22
by iasion
This may be a total noob question, but how do I shutdown VLC via the http interface

I have tried

localhost:8080/index.html?id=control&param1=shutdown
localhost:8080/index.html?control=shutdown

I also tried making a simple html page in the http directory like this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml10/DTD/xhtml1 ... tional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<vlc id="control" param1="shutdown" />


</html>

When browsing that page, nothing happens

Re: Shutdown VLC via HTTP

Posted: 18 May 2008 02:09
by arobro
I dont no if this can be done with vlc http interface
This is how I would do it with php if you have a php webserver

(save text as) vlc_shutdown.php

Code: Select all

<?php $bat = "shutdown.bat"; system($bat); ?>
(save text as) shutdown.bat

Code: Select all

TASKKILL /F /IM vlc.exe /IM vlc.exe
(php code will run bat file that will shutdown vlc)


may be useful http://wiki.videolan.org/How_to_shut_down_computer