Reputation: 729
I want to create java program that can pause / play the vlc video being played.
I made a java program where a client connects to a server and can then send #p messages, which will move the cursor to where the user said the play/pause button was and click,
but I'm looking for a better way so it would work if the VLC window isn't up or so you can move the VLC window and not have to get new coordinates from the user.
How can I do this?
Upvotes: 1
Views: 1754
Reputation: 729
I found the answer.
I went into Tools -> Preferences -> Select Show All -> Interface -> Main interface -> RC Typed in 127.0.0.1:a_port
then in java just open a stream with that ip and port and send your commands. For example "pause" will play (or pause it if it's already playing)
Upvotes: 2