2013-04-10, 01:41
Disclaimer: I am not an expert at C++, especially complex gui applications; but I can usually make C++ do what I want it to do if I keep at it long enough.
I want to use xbmc as a two way controller for my Dune player. It is currently easy enough to have xbmc launch a movie into a dune (see, for example, http://forum.xbmc.org/showthread.php?tid=123648). However, as soon as the movie is launched, xbmc loses all control over the external player. Since the Dune gets a receives http commands, I was hoping to edit the XBMC source code in order to have (for example) the xbmc PAUSE command send an http "pause" command to the Dune. I have attempted to edit ExternalPlayer.cpp as follows:
void CExternalPlayer:ause()
{
CURL url("http://192.168.0.103/cgi-bin/do?cmd=set_playback_state&speed=0");
}
But this doesn't do anything when I use click "pause". What am I missing?
Thanks in advance.
I want to use xbmc as a two way controller for my Dune player. It is currently easy enough to have xbmc launch a movie into a dune (see, for example, http://forum.xbmc.org/showthread.php?tid=123648). However, as soon as the movie is launched, xbmc loses all control over the external player. Since the Dune gets a receives http commands, I was hoping to edit the XBMC source code in order to have (for example) the xbmc PAUSE command send an http "pause" command to the Dune. I have attempted to edit ExternalPlayer.cpp as follows:
void CExternalPlayer:ause()
{
CURL url("http://192.168.0.103/cgi-bin/do?cmd=set_playback_state&speed=0");
}
But this doesn't do anything when I use click "pause". What am I missing?
Thanks in advance.