Drive RC interface via code?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Jinja
Blank Cone
Blank Cone
Posts: 14
Joined: 08 Jul 2005 18:23

Drive RC interface via code?

Postby Jinja » 18 Jul 2005 21:15

Hi,

I have a .NET application from which I would like to play and control video using VLC.

Could anyone give me a clue as to how I would best do this?

I would like to be able to launch the player from my app with the RC interface, and then send commands to this interface from the same code.

How best would I do this, or is there an easier way?

Many thanks,

David

Jinja
Blank Cone
Blank Cone
Posts: 14
Joined: 08 Jul 2005 18:23

Redirect standard in?

Postby Jinja » 19 Jul 2005 11:24

Hi,

Let me redo my original post from a different angle:

On XP Home:

Can I run "vlc.exe --intf rc" in a dos box, and redirect the standardIn of this dos box from within my vb.net application?

If so, I could then use StreamWriter to write commands to vlc.....
Can this be done?

I'm trying it and it doesn't seem to work....

Related to this, from a DOS box, if I type "vlc.exe --help > out.text", I should be redirecting Standard Out to the text file, but this doesn't work either.
Could someone tell me why this is? Any help appreciated......

zorglub
Cone that earned his stripes
Cone that earned his stripes
Posts: 482
Joined: 21 Nov 2003 02:53
Location: Paris - France
Contact:

Postby zorglub » 19 Jul 2005 15:30

Hello,

I don't know much about this under windows, but your problem might be related to stuff about TTY emulation.

I would suggest using the ability of the RC interface to bind on a network socket and using network (over localhost) communication to communicate with RC.
Zorglub
Clément Stenac

Guest

Re: Redirect standard in?

Postby Guest » 19 Aug 2005 23:50

Hi,
Can I run "vlc.exe --intf rc" in a dos box, and redirect the standardIn of this dos box from within my vb.net application?

If so, I could then use StreamWriter to write commands to vlc.....
Can this be done?
I did something similar from Java on Solaris. In order to make it actually work as expected I had to use the (not very well documented) --rc-fake-tty option. It also doesn't hurt to make sure you are consuming the stdout and stderr from VLC or you could end up with a deadlocked process.
Related to this, from a DOS box, if I type "vlc.exe --help > out.text", I should be redirecting Standard Out to the text file, but this doesn't work either.
Could someone tell me why this is? Any help appreciated......
I noticed this on Windows, and frankly find it really annoying. I wanted to capture some text from the output of vlc -vvv and not only is file redirection bypassed, but the console window that opens doesn't cooperate with text selection.

jarekf
New Cone
New Cone
Posts: 6
Joined: 10 Dec 2004 20:22
Contact:

you can use sockets

Postby jarekf » 20 Aug 2005 03:29

I once had similar questions, then I got several very good advices and I was able to make it to work with socket interface (instead of RC). See viewtopic.php?t=6065

I wish it was possible to control more options remotely. It is good now but still some options (e.g. Extended Gui) are not available via remote socket control.

Jarek

Jinja
Blank Cone
Blank Cone
Posts: 14
Joined: 08 Jul 2005 18:23

Cool

Postby Jinja » 20 Aug 2005 12:18

Thanks Jarek, I didn't come across that thread, and didn't know about those switches either. Will play with it ASAP.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests