update examples

This commit is contained in:
aler9
2021-11-01 10:36:45 +01:00
parent a59f840d81
commit 7e978595b5
11 changed files with 15 additions and 15 deletions

View File

@@ -22,12 +22,12 @@ func main() {
defer conn.Close()
for {
// read RTP packets
// read packets
done := make(chan struct{})
go func() {
defer close(done)
conn.ReadFrames(func(trackID int, streamType gortsplib.StreamType, payload []byte) {
fmt.Printf("frame from track %d, type %v, size %d\n", trackID, streamType, len(payload))
fmt.Printf("packet from track %d, type %v, size %d\n", trackID, streamType, len(payload))
})
}()