code: def setup(self,resource_path = "track1"):
          
          self.rtsp_seq += 1
  
          uri = '/'.join([s.strip('/') for s in (self.server,self.stream_path,resource_path)])
          
          ## example: SETUP rtsp://example.com/foo/bar/baz.rm RTSP/2.0
          request = f"SETUP rtsp://{uri} {RTSP_VER}\r\n"
          request+= f"CSeq: {self.rtsp_seq}\r\n"
          request+= f"Transport: RTP/AVP;unicast;client_port=5000-5001\r\n"#,RTP/SAVPF,RTP/AVP;unicast;client_port=5000-5001,RTP/AVP/UDP;unicast;client_port=5000-5001\r\n"
          #request+= f"Accept-Ranges: npt, smpte, clock\r\n"
          request+= f"User-Agent: python\r\n\r\n"
  
          reply = self.sendMessage(request.encode('UTF-8'))
          return reply
docs: SETUP method defined by RTSP Protocol - https://tools.ietf.org/html/rfc7826#section-13.3