bring kcp to tm, fix disconnections
This commit is contained in:
1 parent
515bb65cbf
commit
5f4d0636fa
10 files changed
+195
-11
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package tunnel
|
||||
|
||||
import "github.com/pion/webrtc/v4"
|
||||
|
||||
func DrainSenderRTCP(sender *webrtc.RTPSender) {
|
||||
if sender == nil {
|
||||
return
|
||||
}
|
||||
buf := make([]byte, 1500)
|
||||
for {
|
||||
if _, _, err := sender.Read(buf); err != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user