docs: def _sendCommand(self, command):
          """ send keystroke command to player """
  
          if(self.process is not None):
              try:
                  if logger.isEnabledFor(logging.DEBUG):
                      logger.debug("Command: {}".format(command).strip())
                  self.process.stdin.write(command.encode('utf-8', 'replace'))
                  self.process.stdin.flush()
              except:
                  msg = "Error when sending: {}"
                  if logger.isEnabledFor(logging.ERROR):
                      logger.error(msg.format(command).strip(), exc_info=True)