DCOP is a very interesting technology for communicating with desktop applications for KDE. KDE is a very popular desktop environment for the Linux platform.
The DCOP protocol can be used to control applications from any external scripting language.
This class makes it possible to use PHP as a scripting language that controls any DCOP capable desktop application.
This class can be used to execute actions in KDE applications running in a local desktop machine.
It establishes a DCOP protocol connection to retrieve the list of currently running KDE based applications, as well the list of actions supported by a given application. Then it can validate arguments and execute any of the supported application actions.
You can for example connect to your mediaplayer and control it.