Page 1 of 1

How to stop VLC web process?

Posted: 21 Jan 2009 14:03
by uhilger
Hi everyone,

I brought the VLC web interface to work using the command line with command vlc -I http --http-host localhost:8090
But what is the command to stop the VLC process again?

Thanks for any hints.
Ulrich

Re: How to stop VLC web process?

Posted: 21 Jan 2009 15:02
by revolunet
just add vlc:quit to the playlist and play this item.

this will kill the remote process

Re: How to stop VLC web process?

Posted: 21 Jan 2009 16:24
by uhilger
Thank you for that tip. Unfortunately it does not work at least on my side.

1. I start the http user interface from the command line using the command I stated in my previous post
2. I start Firefox and open http://localhost:8090/
3. I use the web interface to add an mp3 file to the play list as first item
4. I use the web interface to add vlc:quit to the play list as second item
5. I use the web interface to play the play list
6. The play list plays
7. First item is over
8. Second item gets played (i.e. vlc:quit)

But the process is still there.. :(

I also tried it with vlc:quit as the only item in the play list, did not work either..


PS: I use VLC 0.9.8a Grishenko on Windows Vista 32 Bit

Re: How to stop VLC web process?

Posted: 21 Jan 2009 16:30
by revolunet
use vlc://quit instead

i just tried here, vlc quits when playing this item

Re: How to stop VLC web process?

Posted: 21 Jan 2009 16:33
by uhilger
Yes! That did it, thank you very much for your very fast help!

Re: How to stop VLC web process?

Posted: 13 Feb 2009 15:06
by daphatmac
I could kiss you guys - I've been trying to work out for the last 3 days how to play single, local files in the Mozilla plugin without it looping through a playlist every time I add a subsequent video. I tried playing the file and then clearing the playlist & that didn't work. I tried delays, I tried timers, I tried removing items from the playlist, I tried nested arrays - I'm sure you get the idea by now...

If anyone else is looking to simply play a single file and then a different single file (we're using our own playlist format which caters for multiple media) then try this:

Code: Select all

vlc.playlist.add("localfile1.avi", "", options); vlc.playlist.add("vlc://quit"); vlc.playlist.play(); vlc.playlist.add("localfile2.avi", "", options); vlc.playlist.add("vlc://quit"); vlc.playlist.play();
and so on - if you have heaps of files, just do what I've done and setup an array and loop through the array replacing the local file name to add on every iteration. The "vlc://quit" part is the key.

Awesome.