'Return the media state.'

@property
def state(self):

    if (self._status is None):
        return STATE_OFF
    elif (self._status['state'] == 'play'):
        return STATE_PLAYING
    elif (self._status['state'] == 'pause'):
        return STATE_PAUSED
    return STATE_ON
