Page 1 of 1
How do you add a file to playlist?
Posted: 10 Sep 2008 05:11
by alexbib
This may sound like a stupid question, but is there a way to add a file to the playlist using the command line? If I want to play a file, I type "vlc filename". What do I type to add to playlist instead?
Thanks,
Alex
Re: How do you add a file to playlist?
Posted: 10 Sep 2008 11:46
by dionoea
Which OS and VLC version do you use?
Re: How do you add a file to playlist?
Posted: 10 Sep 2008 20:56
by alexbib
Oh, sorry, I forgot about that. I run vlc 0.9.1 on linux.
Re: How do you add a file to playlist?
Posted: 13 Sep 2008 00:51
by dionoea
You need to enable one instance mode first in the preferences. Then restart all your vlcs and it'll work as you expected.
Re: How do you add a file to playlist?
Posted: 13 Sep 2008 21:15
by alexbib
Thanks, but that's not quite what I'm trying to do. I want to make a custom action for my file manager so I can right-click on a file and add it to the vlc playlist (like you can do in windows). That way depending on what I want to do, I can either run the file and cancel what's playing now, or simply add the file to the playlist, without having to change the preferences every time.
Cheers,
Alex
Re: How do you add a file to playlist?
Posted: 14 Sep 2008 00:19
by dionoea
And doesn't what I just suggested do that? (except the enqueue bit)
On windows, we add the following options to file associations:
--started-from-file --playlist-enqueue
or --started-from-file --no-playlist-enqueue.
And we provide a --one-instance-when-started-from-file option (to set in the prefs) which makes it possible to disable the normal one instance mode and enable it only if you double click on a file (because that would add the --started-from-file option to the command line). Of course all of this would work on linux too ... if the code wasn't ifdef-ed out. I'll fix that right away so the options will be available in 0.9.2 for linux.
(The --playlist-enqueue option is already available in 0.9.0/0.9.1 on linux so you could use it with the --one-instance mode option I mentioned in my previous comment)
Re: How do you add a file to playlist?
Posted: 14 Sep 2008 00:38
by dionoea
The change is done. Will be available both in the dev version and in tomorrow's 0.9.2 release. See our win32 install script for an example of how to use the new "--started-from-file" option:
http://git.videolan.org/gitweb.cgi?p=vl ... =HEAD#l272
This adds 2 contextual menu items: "Play with VLC" and "Add to VLC playlist".
Re: How do you add a file to playlist?
Posted: 20 Sep 2008 06:54
by alexbib
Thanks a lot! Your effort is greatly appreciated.
Cheers,
Alex