code: def play_state(self):
          
          # TODO: extract to a convert module
          state = self._setstate.playbackState
          if state == 1:
              return const.PLAY_STATE_PLAYING
          if state == 2:
              return const.PLAY_STATE_PAUSED
  
          return const.PLAY_STATE_PAUSED
docs: Play state, e.g. playing or paused.