diff --git a/protocol/rtsp/rtsp.go b/protocol/rtsp/rtsp.go index 2e8427d7..8aae8a9c 100644 --- a/protocol/rtsp/rtsp.go +++ b/protocol/rtsp/rtsp.go @@ -236,7 +236,7 @@ func (s *Session) Options(urlStr string) (*Response, error) { } func (s *Session) Setup(urlStr, transport string) (*Response, error) { - req, err := NewRequest(SETUP, urlStr+"/track1", s.nextCSeq(), nil) + req, err := NewRequest(SETUP, urlStr, s.nextCSeq(), nil) if err != nil { panic(err) } @@ -260,7 +260,7 @@ func (s *Session) Setup(urlStr, transport string) (*Response, error) { } func (s *Session) Play(urlStr, sessionId string) (*Response, error) { - req, err := NewRequest(PLAY, urlStr, s.nextCSeq(), nil) + req, err := NewRequest(PLAY, urlStr+"/", s.nextCSeq(), nil) if err != nil { panic(err) }