code: def _process_response(self,msg):
          '''处理响应消息'''
          status,headers,body = self._parse_response(msg)
          rsp_cseq = int(headers['cseq'])
          if self._cseq_map[rsp_cseq] != 'GET_PARAMETER':
              PRINT(self._get_time_str() + '\n' + msg)
          if status == 302:
              self.location = headers['location']
          if status != 200:
              self.do_teardown()
          if self._cseq_map[rsp_cseq] == 'DESCRIBE':
              track_id_str = self._parse_track_id(body)
              self.do_setup(track_id_str)
          elif self._cseq_map[rsp_cseq] == 'SETUP':
              self._session_id = headers['session']
              self.do_play(CUR_RANGE,CUR_SCALE)
              self.send_heart_beat_msg()
          elif self._cseq_map[rsp_cseq] == 'PLAY':
              self.playing = Truf _process_response(self,msg):
          '''处理响应消息'''
          status,headers,body = self._parse_response(msg)
          rsp_cseq = int(headers['cseq'])
          if self._cseq_map[rsp_cseq] != 'GET_PARAMETER':
              PRINT(self._get_time_str() + '\n' + msg)
          if status == 302:
              self.location = headers['location']
          if status != 200:
              self.do_teardown()
          if self._cseq_map[rsp_cseq] == 'DESCRIBE':
              track_id_str = self._parse_track_id(body)
              self.do_setup(track_id_str)
          elif self._cseq_map[rsp_cseq] == 'SETUP':
              self._session_id = headers['session']
              self.do_play(CUR_RANGE,CUR_SCALE)
              self.send_heart_beat_msg()
          elif self._cseq_map[rsp_cseq] == 'PLAY':
              self.playing = True
docs: 处理响应消息