cleanup examples

This commit is contained in:
aler9
2021-11-12 18:08:21 +01:00
parent 9efdb91b7f
commit b89bb8d08e

View File

@@ -12,13 +12,13 @@ import (
// 2. get and print informations about tracks published on a path. // 2. get and print informations about tracks published on a path.
func main() { func main() {
u, err := base.ParseURL("rtsp://myserver/mypath") c := gortsplib.Client{}
u, err := base.ParseURL("rtsp://localhost:8554/mypath")
if err != nil { if err != nil {
panic(err) panic(err)
} }
c := gortsplib.Client{}
err = c.Start(u.Scheme, u.Host) err = c.Start(u.Scheme, u.Host)
if err != nil { if err != nil {
panic(err) panic(err)