Shutdown VLC via HTTP

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
iasion
New Cone
New Cone
Posts: 3
Joined: 24 Apr 2008 10:57

Shutdown VLC via HTTP

Postby iasion » 25 Apr 2008 16:22

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

arobro
Blank Cone
Blank Cone
Posts: 14
Joined: 18 May 2008 00:13
Operating System: win & linux
Location: NZ

Re: Shutdown VLC via HTTP

Postby arobro » 18 May 2008 02:09

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


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 5 guests