VLC remote control via TCP
Posted: 17 Mar 2013 20:11
Hi,
i'm trying to remote control my vlc player over a tcp socket.
I enabled the Remote-Control-Interface (oldrc) and set the binding to localhost:2000 (with disabled console).
http://imgur.com/1grGMwr,xGOLa3x#0
http://imgur.com/1grGMwr,xGOLa3x#1
Now i wrote a small java application which establishs a connection to the bound port and sends a simple "pause\r\n" to vlc.
The application itself is a little bit bigger, because i build a GUI around.
Here is the Problem:
The establishment of the connections works fine, but the player itself does nothing. It's completely ignoring the command.
Nowhere i get any kind of errors or exceptions.
I also tried other commands, but there was no response too.
I use VLC 2.0.4 and a song played while testing the pause command.
Hope you can help me.
i'm trying to remote control my vlc player over a tcp socket.
I enabled the Remote-Control-Interface (oldrc) and set the binding to localhost:2000 (with disabled console).
http://imgur.com/1grGMwr,xGOLa3x#0
http://imgur.com/1grGMwr,xGOLa3x#1
Now i wrote a small java application which establishs a connection to the bound port and sends a simple "pause\r\n" to vlc.
Code: Select all
s = new Socket("127.0.0.1",2000);
oos = new ObjectOutputStream(s.getOutputStream());
oos.writeObject("pause\r\n");
oos.flush();
The application itself is a little bit bigger, because i build a GUI around.
Here is the Problem:
The establishment of the connections works fine, but the player itself does nothing. It's completely ignoring the command.
Nowhere i get any kind of errors or exceptions.
I also tried other commands, but there was no response too.
I use VLC 2.0.4 and a song played while testing the pause command.
Hope you can help me.