code: def playstate_str(state):
      
      if state == const.PLAY_STATE_NO_MEDIA:
          return 'No media'
      if state == const.PLAY_STATE_IDLE:
          return 'Idle'
      if state == const.PLAY_STATE_LOADING:
          return 'Loading'
      if state == const.PLAY_STATE_PAUSED:
          return 'Paused'
      if state == const.PLAY_STATE_PLAYING:
          return 'Playing'
      if state == const.PLAY_STATE_FAST_FORWARD:
          return 'Fast forward'
      if state == const.PLAY_STATE_FAST_BACKWARD:
          return 'Fast backward'
      return 'Unsupported'
docs: Convert internal API playstate to string.