Experimental WARP (#4649)

* Experimental WARP

* fix panic

* go dep

* stats
This commit is contained in:
cnderrauber
2026-08-14 16:26:08 +08:00
committed by GitHub
parent df20578a78
commit dbe06aa8d1
16 changed files with 152 additions and 53 deletions
+6
View File
@@ -330,6 +330,7 @@ type TransportParams struct {
DatachannelMaxReceiverBufferSize int
EnableDataTracks bool
EnableWarp bool
}
func newPeerConnection(
@@ -382,6 +383,11 @@ func newPeerConnection(
se.EnableSCTPZeroChecksum(true)
}
if params.EnableWarp {
se.EnableSped(true)
se.EnableSctpSnap(true)
}
//
// Disable SRTP replay protection (https://datatracker.ietf.org/doc/html/rfc3711#page-15).
// Needed due to lack of RTX stream support in Pion.