@property
def state(self):
    'Return the state of the device.'
    if (self._players is None):
        return STATE_OFF
    if (len(self._players) == 0):
        return STATE_IDLE
    if ((self._properties['speed'] == 0) and (not self._properties['live'])):
        return STATE_PAUSED
    else:
        return STATE_PLAYING
Return the state of the device.
@property
def state(self):
    
    if (self._players is None):
        return STATE_OFF
    if (len(self._players) == 0):
        return STATE_IDLE
    if ((self._properties['speed'] == 0) and (not self._properties['live'])):
        return STATE_PAUSED
    else:
        return STATE_PLAYING