update examples

This commit is contained in:
aler9
2020-11-16 00:10:25 +01:00
parent c2712da906
commit c24d3f677b
2 changed files with 4 additions and 6 deletions

View File

@@ -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)
})
}

View File

@@ -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)
})
}