mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
implement automatic protocol switching; fix #13
This commit is contained in:
@@ -24,7 +24,7 @@ func main() {
|
||||
defer conn.Close()
|
||||
|
||||
for {
|
||||
// read frames from the server
|
||||
// read track frames
|
||||
readerDone := conn.OnFrame(func(id int, typ gortsplib.StreamType, buf []byte) {
|
||||
fmt.Printf("frame from track %d, type %v: %v\n", id, typ, buf)
|
||||
})
|
||||
|
Reference in New Issue
Block a user