mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
update doc
This commit is contained in:
@@ -17,7 +17,7 @@ func main() {
|
||||
}
|
||||
defer conn.Close()
|
||||
|
||||
// read RTP frames
|
||||
// read RTP 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))
|
||||
})
|
||||
|
Reference in New Issue
Block a user