[vlc] Only one VLC instance

Rafaël Carré funman at videolan.org
Thu Oct 18 12:45:27 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dotan Cohen a écrit :
> On 15/10/2007, Rafaël Carré <funman at videolan.org> wrote:
>>>> For now, I suppose you could use --extraintf rc --rc-unix /tmp/vlc_socket
>>>> and check for the existence of the socket, then adding the file through
>>>> the socket before exiting if it exists.
>> You can add those settings in ~/.vlc/vlcrc, and replace /usr/bin/vlc by
>> your wrapper, which would call /usr/bin/vlc.orig
>>
>> That way, you'll keep the running instance, and files will just enqueue
>> in the playlist
>>
> 
> I have added the line "--extraintf rc --rc-unix /tmp/vlc_socket" to
> ~/.vlc/vlcrc, however, when vlc opens it overwrites the file and
> removes that line. Needless to say, vlc's behaviour has not changed,
> and she has multiple instances opening. What must I do?


look for those lines in vlcrc:
#rc-unix=
#extraintf=

and put instead:
rc-unix=/tmp/vlc_socket
extraintf=rc


You can also have a look at http://wiki.videolan.org/Console

You'll need to connect to the unix socket, you can use socat for that.

keep us informed, if you succeed, that could be a good idea to share
your script with people using 0.8.6

- --
Rafaël Carré
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHFzlHYWCeGMCv8Q8RAtxEAKCEFYoeFCAgPQmi/1rMvFOSylk7EACgiPyH
lvIKHAJ6dXmfeNy2seVNxQA=
=2n4G
-----END PGP SIGNATURE-----



More information about the vlc mailing list