mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
rename buf into payload
This commit is contained in:
@@ -52,8 +52,8 @@ func main() {
|
||||
}
|
||||
|
||||
// read RTP frames
|
||||
err = conn.ReadFrames(func(trackID int, typ gortsplib.StreamType, buf []byte) {
|
||||
fmt.Printf("frame from track %d, type %v, size %d\n", trackID, typ, len(buf))
|
||||
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))
|
||||
})
|
||||
panic(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user