mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
update examples
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// This example shows how to connect to a server and print informations about
|
// This example shows how to connect to a server and print informations about
|
||||||
// tracks published on a certain path.
|
// tracks published on a path.
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
u, err := base.ParseURL("rtsp://myserver/mypath")
|
u, err := base.ParseURL("rtsp://myserver/mypath")
|
||||||
@@ -38,5 +38,5 @@ func main() {
|
|||||||
panic(fmt.Errorf("server returned status %d", res.StatusCode))
|
panic(fmt.Errorf("server returned status %d", res.StatusCode))
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("tracks: %v\n", tracks)
|
fmt.Println("available tracks: %v\n", tracks)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user