diff --git a/examples/client-read-tcp.go b/examples/client-read-tcp.go index 192dfd0f..9e97b17f 100644 --- a/examples/client-read-tcp.go +++ b/examples/client-read-tcp.go @@ -25,7 +25,7 @@ func main() { readerDone := make(chan struct{}) defer func() { <-readerDone }() - // read frames + // read frames from the server conn.OnFrame(func(id int, typ gortsplib.StreamType, buf []byte, err error) { if err != nil { fmt.Printf("ERR: %v\n", err) @@ -33,7 +33,6 @@ func main() { return } - fmt.Printf("frame from track %d, type %v: %v\n", - id, typ, buf) + fmt.Printf("frame from track %d, type %v: %v\n", id, typ, buf) }) } diff --git a/examples/client-read-udp.go b/examples/client-read-udp.go index 944e523c..789516dd 100644 --- a/examples/client-read-udp.go +++ b/examples/client-read-udp.go @@ -22,7 +22,7 @@ func main() { readerDone := make(chan struct{}) defer func() { <-readerDone }() - // read frames + // read frames from the server conn.OnFrame(func(id int, typ gortsplib.StreamType, buf []byte, err error) { if err != nil { fmt.Printf("ERR: %v\n", err) @@ -30,7 +30,6 @@ func main() { return } - fmt.Printf("frame from track %d, type %v: %v\n", - id, typ, buf) + fmt.Printf("frame from track %d, type %v: %v\n", id, typ, buf) }) }