mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 06:46:42 +08:00
client: remove channel from ReadFrames()
This commit is contained in:
@@ -30,7 +30,7 @@ func main() {
|
||||
defer conn.Close()
|
||||
|
||||
// read RTP frames
|
||||
err = <-conn.ReadFrames(func(trackID int, typ gortsplib.StreamType, buf []byte) {
|
||||
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))
|
||||
})
|
||||
panic(err)
|
||||
|
Reference in New Issue
Block a user