a minimalistic gstreamer based media sample player for the Raspberry Pi trigerred by GPIO or OSC callbacks.
  $ sudo piplayer /path/to/dir
- port : 12345
 - play address : /play/1
 - stop address : /play/0
 
- play channel : 22
 - play method : RISING between PIN 1 (3.3V power) and PIN 15 (GPIO 22)
 - stop channel : 24
 - stop method : RISING between PIN 1 (3.3V power) and PIN 18 (GPIO 24)
 
 $ sudo apt-get install python python-pip python-setuptools python-gobject \
                        python-gst0.10 gstreamer0.10-plugins-base gir1.2-gstreamer-0.10 \
                        gstreamer0.10-plugins-good gstreamer0.10-plugins-bad \
                        gstreamer0.10-plugins-ugly gobject-introspection python-liblo
 $ sudo python setup.py install 
 $ sudo cp -ra etc/* /etc/
 $ sudo update-rc.d piplayer defaults 5 1
Override daemon start and options by editing /etc/default/piplayer
Some properties (ports, channels) and options (like "auto next" and "looping") are tunable in the PiPlayer class:
class PiPlayer(object):
    
    osc_port = 12345
    gpio_channel_play = 22
    gpio_channel_stop = 24
    playing = False
    looping = False
    auto_next = False
    alsa_device = 'hw:0'
    ...