Page 1 of 1

controlling VlcMediaPlayer instance using oldrc interface

Posted: 13 Sep 2010 18:36
by Zingaro2002
Hi!
I am developing an application in VB.net 2005 using libvlc.dll and following this article
http://www.helyar.net/2009/libvlc-media-player-in-c/
(I updated it and modified it to work with vb.net and VLC 1.1.4; by the way: THANKS George Helyar!!!)

I am able to have a VlcMediaPlayer instance inside a panel (or a picturebox) in my form; it can open and play a network stream.
Now I want to control it using rc interface (oldrc).
I have used "--extraintf", "oldrc","--rc-host=192.168.0.188:9292", "--rc-quiet",
as arguments in libvlc_new.
The rc interface starts; I can connect to it (with hyperterminal) but when I try to start the network stream it is played on a new different window (hardware YUV overlay DirectX output), and my panel stays empty.
If I open the stream using my VlcMediaPlayer instance then I cannot control it using rc commands (if I type "info" it answers "no input").
-------
I also tried using libvlc_add_intf(...,...) without putting those "--extraintf", "oldrc" args in libvlc_new.
The behaviour is identical!

Can someone tell me, please, if it is possible to use oldrc interface to control VlcMediaPlayer instance created with libvlc.dll?
I mean: is it possible to have another interface (I need oldrc) linked to the SAME VlcMediaPlayer instance?

If not, why the hell there is libvlc_add_intf function? It is useless...

Re: controlling VlcMediaPlayer instance using oldrc interfac

Posted: 14 Sep 2010 03:46
by Rémi Denis-Courmont
No. No. And it is very useful because VLC itself uses that function.

Re: controlling VlcMediaPlayer instance using oldrc interfac

Posted: 14 Sep 2010 10:17
by Zingaro2002
Why not?
ehm... I don't mean libvlc_add_intf is useless in general, but, as far as I can understand, it's useless inside a VlcMediaPlayer instance that uses libvlc.dll (I mean inside an external application).
I'll try to be clearer: in which scenarios can I use libvlc_add_intf? How can an extra interface be used inside an external application that uses libvlc.dll?
And it is very useful because VLC itself uses that function.
OK, so why does it work correctly inside VlcMediaPlayer and doesn't work when we use libvlc.dll inside an external application?

Anyway thanks for your answer (maybe next time try a little bit to add also some explanation to your "No. No." :) :) or I'll always be bound to reply: "why not?")

Re: controlling VlcMediaPlayer instance using oldrc interfac

Posted: 15 Sep 2010 03:33
by Rémi Denis-Courmont
It works fine in an external application. It simply does not do what you think it would.

Re: controlling VlcMediaPlayer instance using oldrc interfac

Posted: 15 Sep 2010 11:19
by Zingaro2002
ok, maybe I misunderstood the meaning of words "remote control".
If I can't "control" my instance (created with libvlc.dll inside my vb.net application) using a remote control interface... what can I do with it?

Can you show me, please, some examples (I don't need source code; a simple sample-scenario is enough).

If I can control another instance (not linked to the one I created with libvlc.dll inside my vb.net application) why do I have to specify it with libvlc_add_intf function?

anyway, thanks again for your answers.

Re: controlling VlcMediaPlayer instance using oldrc interfac

Posted: 16 Sep 2010 03:03
by Rémi Denis-Courmont
The RC interface is just the historical name of the CLI. It's named that way because it's mostly used by ad-hoc scripts controlling VLC, often through the network.

You will note that an "instance" (libvlc_instance_t) is NOT a "player" (libvlc_player_t).