How to stop VLC web process?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
uhilger
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Jan 2009 19:07
Operating System: Windows Vista
Location: Frankfurt, Germany
Contact:

How to stop VLC web process?

Postby uhilger » 21 Jan 2009 14:03

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

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: How to stop VLC web process?

Postby revolunet » 21 Jan 2009 15:02

just add vlc:quit to the playlist and play this item.

this will kill the remote process
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

uhilger
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Jan 2009 19:07
Operating System: Windows Vista
Location: Frankfurt, Germany
Contact:

Re: How to stop VLC web process?

Postby uhilger » 21 Jan 2009 16:24

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

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: How to stop VLC web process?

Postby revolunet » 21 Jan 2009 16:30

use vlc://quit instead

i just tried here, vlc quits when playing this item
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

uhilger
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Jan 2009 19:07
Operating System: Windows Vista
Location: Frankfurt, Germany
Contact:

Re: How to stop VLC web process?

Postby uhilger » 21 Jan 2009 16:33

Yes! That did it, thank you very much for your very fast help!

daphatmac
New Cone
New Cone
Posts: 5
Joined: 13 Feb 2009 14:53

Re: How to stop VLC web process?

Postby daphatmac » 13 Feb 2009 15:06

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.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 1 guest