2008/7/16 Christophe-Marie Duquesne <firstname.lastname@example.org
Thank you for the answer.
As I am not sure you really did understand what I want to do, I'm just going to explain a little more, in order to be sure of what to do.
. I was also told to look at plugger http://fredrik.hubbe.net/plugger.html
I thought (but you seem to be saying I am wrong) that embedding an application is kind of "generic", that's why I was asking on this mailing list. Considering this explanation, do you have another advice?
embedding a plugin is pretty generic. But that doesn't help you. Plugger is a generic way to embed application output from your local machine into a webpage for data the webpage delivered. (Like using your favorite media player to display embedded video) XEmbed uses messaging between apps, but again, all on the same machine.
HTTP is designed as a one-way protocol, data comes from the server to your machine. To get your keystrokes back to the server, you need to use different means. Why don't you use ssh + x11-forwarding? Or nomachine.com
nxserver? Or VNC? Except for x11, they're (mostly) platform-independent and all can be tunneld over port 80, if needed.
For your idea you would need two-way realtime data flow. Unless you're eager to do some heavy apache-mod coding (i doubt even that would help), i don't see any viable way to do this.
The only way this might work is, when you use mplayer to embed a x11 display and somehow pass the keystrokes etc to the app running on that display. I don't think this would work for anything than localhost (I did something similar with an embedded mplayer displaying v4l inputs, works on localhost only).
I don't know if your requirements forbid ssh, if not, i'd always go that way.