'Return player state.'

@property
def state(self):

    state = STATE_OFF
    if ('playback_position' in self._state):
        state = STATE_PLAYING
    if (self._state['player_state'] in ('playing', 'buffering')):
        state = STATE_PLAYING
    if (int(self._state.get('playback_speed', 1234)) == 0):
        state = STATE_PAUSED
    if (self._state['player_state'] == 'navigator'):
        state = STATE_ON
    return state
