Skip to content
winjer edited this page Sep 13, 2010 · 2 revisions

The following events are supported within the Squeal system:

isqueal.IPlayerStateChange

Fired when a player connects, disconnects or changes it’s playing state. The event object used is squeal.net.slimproto.StateChanged:

class StateChanged(object):
    implements(IPlayerStateChange)

    class State:
        DISCONNECTED = 0
        ESTABLISHED = 1
        STOPPED = 2
        PAUSED = 3
        PLAYING = 4
        UNDERRUN = 5 # end of playback, not an error
        READY = 6

    def __init__(self, player, state):
        self.player = player
        self.state = state

Clone this wiki locally