Experimental WARP (#4649)
* Experimental WARP * fix panic * go dep * stats
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user