Socket Interface to RC
Posted: 14 Aug 2009 23:54
Hi,
I'm having some trouble sending rc commands to VLC using a socket connection. My simple test is to send "stop" followed by "play" from a test app on PC1 to VLC on PC2.
What I'm seeing is that the "stop" command is processed by VLC on PC2 but the "play" command is not.
I'm using synchronus socket connection, Windows OS. Something like this:
socket.Connect(hostEndPoint);
socket.Send("stop\r\n");
socket.Send("play\r\n"):
socket.Close();
Can rc interface accept multiple commands sent in sequence like this or is there some sort of 2-way communication that has to occur after each command, or some type of wait period?
Regards,
tcc
I'm having some trouble sending rc commands to VLC using a socket connection. My simple test is to send "stop" followed by "play" from a test app on PC1 to VLC on PC2.
What I'm seeing is that the "stop" command is processed by VLC on PC2 but the "play" command is not.
I'm using synchronus socket connection, Windows OS. Something like this:
socket.Connect(hostEndPoint);
socket.Send("stop\r\n");
socket.Send("play\r\n"):
socket.Close();
Can rc interface accept multiple commands sent in sequence like this or is there some sort of 2-way communication that has to occur after each command, or some type of wait period?
Regards,
tcc