mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
update examples
This commit is contained in:
@@ -29,9 +29,9 @@ func main() {
|
||||
}
|
||||
defer conn.Close()
|
||||
|
||||
// read RTP packets
|
||||
// read packets
|
||||
err = 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))
|
||||
})
|
||||
panic(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user