implement automatic protocol switching; fix #13

This commit is contained in:
aler9
2020-11-21 13:11:53 +01:00
parent 13bcdbaebf
commit a6d0fc140b
9 changed files with 208 additions and 108 deletions

View File

@@ -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)
})