mirror of https://bitbucket.org/ausocean/av.git
protocol/rtsp/cmd/stream: using NewClient rather than NewSession
This commit is contained in:
parent
14cb6f7f07
commit
4998d8d4d6
|
@ -69,7 +69,7 @@ func main() {
|
||||||
trackPtr := flag.String("track", "track1", "The track that we would like to receive media from.")
|
trackPtr := flag.String("track", "track1", "The track that we would like to receive media from.")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
sess, err := rtsp.NewSession(*rtspServerPtr)
|
sess, err := rtsp.NewClient(*rtspServerPtr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(fmt.Sprintf("creating RTSP session failed with error: %v", err))
|
panic(fmt.Sprintf("creating RTSP session failed with error: %v", err))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue