code: def _buildStartOpts(self, streamUrl, playList=False):
          
  
          """ Test for newer MPV versions as it supports different IPC flags. """
          p = subprocess.Popen([self.PLAYER_CMD, "--input-ipc-server"], stdout=subprocess.PIPE, stdin=subprocess.PIPE, shell=False)
          out = p.communicate()
          if "not found" not in str(out[0]):
              if logger.isEnabledFor(logging.DEBUG):
                  logger.debug("--input-ipc-server is supported.")
              newerMpv = 1;
          else:
              if logger.isEnabledFor(logging.DEBUG):
                  logger.debug("--input-ipc-server is not supported.")
              newerMpv = 0;
  
          if playList:
              if newerMpv:
                  opts = [self.PLAYER_CMD, "--quiet", "--playlist", streamUrl, "--input-ipc-server=/tmp/mpvsocket"]
              else:
                  opts = [self.PLAYER_CMD, "--quiet", "--playlist", streamUrl, "--input-unix-socket=/tmp/mpvsocket"]
          else:
              if newerMpv:
                  opts = [self.PLAYER_CMD, "--quiet", streamUrl, "--input-ipc-server=/tmp/mpvsocket"]
              else:
                  opts = [self.PLAYER_CMD, "--quiet", streamUrl, "--input-unix-socket=/tmp/mpvsocket"]
          if self.USE_PROFILE == -1:
              self.USE_PROFILE = self._configHasProfile()
  
          if self.USE_PROFILE == 1:
              opts.append("--profile=pyradio")
              if (logger.isEnabledFor(logging.DEBUG)):
                  logger.debug("using profile [pyradio]")
          return opts
docs: Builds the options to pass to subprocess.