mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +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.
|
// 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)
|
||||||
|
Reference in New Issue
Block a user