'Return the media state.'

@property
def state(self):

    if (self.status.get('status') == 'playing'):
        return STATE_PLAYING
    elif (self.status.get('status') == 'paused'):
        return STATE_PAUSED
    return STATE_OFF
