protocol/rtsp: fixing url usage

This commit is contained in:
Saxon 2019-04-10 14:01:13 +09:30
parent 6b9f552610
commit 1160985b2a
1 changed files with 2 additions and 2 deletions

View File

@ -236,7 +236,7 @@ func (s *Session) Options(urlStr string) (*Response, error) {
} }
func (s *Session) Setup(urlStr, transport 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 { if err != nil {
panic(err) panic(err)
} }
@ -260,7 +260,7 @@ func (s *Session) Setup(urlStr, transport string) (*Response, error) {
} }
func (s *Session) Play(urlStr, sessionId 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 { if err != nil {
panic(err) panic(err)
} }