mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
cleanup examples
This commit is contained in:
@@ -12,13 +12,13 @@ import (
|
||||
// 2. get and print informations about tracks published on a path.
|
||||
|
||||
func main() {
|
||||
u, err := base.ParseURL("rtsp://myserver/mypath")
|
||||
c := gortsplib.Client{}
|
||||
|
||||
u, err := base.ParseURL("rtsp://localhost:8554/mypath")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
c := gortsplib.Client{}
|
||||
|
||||
err = c.Start(u.Scheme, u.Host)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Reference in New Issue
Block a user