Howdy Justin,
There are two projects in the community currently that allow
for
interaction between python code and the client core. Both of
these
projects were originally designed as test tools, allowing
the core to be
scripted for automated testing and as such, tend to have
that focus.
The two projects are the PyPlayer and the SOAP Test Client
(which has a
python interface but really uses SOAP messages between
python and the
core). Of these, the PyPlayer is probably closest to what
you are
looking for.
I didn't write the PyPlayer but I've used it a bunch and
I've chatted
some about it with JFarr, the person who did write it. From
what I
understand PyPlayer used SWIG to create an interface between
the python
call stack and the c/c++ call stack in the core which allows
one to use
python to send calls directly to the client core and to
receive
callbacks from the client core.
Unfortunately, there has not been any development on
PyPlayer in quite a
while. The two main issues we have run into with it is that
it does not
build 'out of the box' with the Ribosome build system and it
must be
statically linked with a specific version of python. Also
the way that
preferences work in the client has changed so it's unlikely
that the
preference calls it contains will work (and they will likely
generate
exceptions).
My feeling is that the PyPlayer isn't exactly what you need
and it's a
tad out of date, but it is likely the best place to start.
Hope this helps.
Peter Fawcett
Lead SDET - Real/Helix Player QA
> -------- Original Message --------
> Subject: [Player-dev] Python Interface with pyplayer
> Date: Wed, 13 Dec 2006 15:37:07 -0800
> From: Justin Gallardo <jirwin osuosl.org>
> To: player-dev helixcommunity.org
>
> Hey there,
> I am looking into what it would take to create a GUI
using pygtk as
> a framework. I stumbled across pyplayer, and saw that
it implements
> everything in hxplay. Is this anywhere close to where I
should be
> thinking for starting a player, or is there a good
place I could look
> for more info? Thanks a bunch!
>
> --
> Justin Gallardo
>
> _______________________________________________
> Player-dev mailing list
> Player-dev helixcommunity.org
> http://lists.helixcommunity.org/mailman/listinfo/play
er-dev
>
>
_______________________________________________
Player-dev mailing list
Player-dev helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/play
er-dev
|