client: remove default client

This commit is contained in:
aler9
2021-10-31 13:01:36 +01:00
committed by Alessandro Ros
parent a66a038a23
commit fdb0d70870
14 changed files with 54 additions and 36 deletions

View File

@@ -14,8 +14,10 @@ import (
// 4. repeat
func main() {
c := gortsplib.Client{}
// connect to the server and start reading all tracks
conn, err := gortsplib.DialRead("rtsp://localhost:8554/mystream")
conn, err := c.DialRead("rtsp://localhost:8554/mystream")
if err != nil {
panic(err)
}