newbie: sending keystrokes over ssh
I have a centos 6 desktop machine that is playing a video in firefox. If I tap the keyboard space bar while it's playing I can pause and continue the video at will. The video will also pause and continue with a mouse click if the pointer is on the image.
However I need to simulate this key tap from another machine using a command in an ssh terminal. Is it possible to control the video this way from another machine?
I've tried xdotool but I can't get it to work, it doesn't do anything via an ssh console, maybe I'm doing something wrong but I can't get any support on it.
Is there any other method whereby I could send keystroke commands to the machine playing the video and thereby control the playback of the video? thanks for any help.