Yes thats right but its also wrapped in a ZApplication as well, and handles some signals for power management and in a version not released yet some other signals such as incoming calls.
As for control, I presume you mean the fact that zmplayer handles the keyboard of the ming. For this you need to install an eventHandler and deal with the QEvent::KeyPress and QEvent::KeyRelease events. As for the key mapping, thats easy enough to figure out by just having the eventHandler print the key pressed and then go ahead and touch buttons. We also create a two way socket to mplayer with socketpair and connect the send socket to stdin of mplayer and the stdout to the recieve socket. We use the "-slave" option of mplayer to accept command on stdin.
Cheers
D.




Reply With Quote
