def mediaState(self): s = PyBASS.status(); #if s == vlc.State.NothingSpecial: # return MP_NOTHINGSPECIAL #elif s == vlc.State.Opening: # return MP_OPENING if s == PyBASS.P_STALLED: return MP_BUFFERING elif s == PyBASS.P_PLAYING: return MP_PLAYING elif s == PyBASS.P_PAUSED: return MP_PAUSED #elif s == PyBASS.P_STOPPED: # return MP_STOPPED elif s == PyBASS.P_STOPPED: return MP_ENDED #elif s == vlc.State.Error: # return MP_ERROR else: print "Unknown State: %s"%s return MP_UNKOWN
def mediaState(self): s = PyBASS.status() #if s == vlc.State.NothingSpecial: # return MP_NOTHINGSPECIAL #elif s == vlc.State.Opening: # return MP_OPENING if s == PyBASS.P_STALLED: return MP_BUFFERING elif s == PyBASS.P_PLAYING: return MP_PLAYING elif s == PyBASS.P_PAUSED: return MP_PAUSED #elif s == PyBASS.P_STOPPED: # return MP_STOPPED elif s == PyBASS.P_STOPPED: return MP_ENDED #elif s == vlc.State.Error: # return MP_ERROR else: print "Unknown State: %s" % s return MP_UNKOWN