mirror of https://bitbucket.org/ausocean/av.git
protocol/rtsp: fixing url usage
This commit is contained in:
parent
6b9f552610
commit
1160985b2a
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue