mirror of
https://github.com/pion/webrtc.git
synced 2024-05-03 11:54:53 +08:00
11b8873da2
Read + Discard packets from the Simulcast repair stream. When a Simulcast stream is enabled the remote will send packets via the repair stream for probing. We can't ignore these packets anymore because it will cause gaps in the feedback reports Resolves #1957
41 lines
1.1 KiB
Go
41 lines
1.1 KiB
Go
package webrtc
|
|
|
|
import "github.com/pion/dtls/v2"
|
|
|
|
const (
|
|
// Unknown defines default public constant to use for "enum" like struct
|
|
// comparisons when no value was defined.
|
|
Unknown = iota
|
|
unknownStr = "unknown"
|
|
|
|
// Equal to UDP MTU
|
|
receiveMTU = 1460
|
|
|
|
// simulcastProbeCount is the amount of RTP Packets
|
|
// that handleUndeclaredSSRC will read and try to dispatch from
|
|
// mid and rid values
|
|
simulcastProbeCount = 10
|
|
|
|
// simulcastMaxProbeRoutines is how many active routines can be used to probe
|
|
// If the total amount of incoming SSRCes exceeds this new requests will be ignored
|
|
simulcastMaxProbeRoutines = 25
|
|
|
|
mediaSectionApplication = "application"
|
|
|
|
sdpAttributeRid = "rid"
|
|
|
|
rtpOutboundMTU = 1200
|
|
|
|
rtpPayloadTypeBitmask = 0x7F
|
|
|
|
incomingUnhandledRTPSsrc = "Incoming unhandled RTP ssrc(%d), OnTrack will not be fired. %v"
|
|
|
|
generatedCertificateOrigin = "WebRTC"
|
|
|
|
sdesRepairRTPStreamIDURI = "urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id"
|
|
)
|
|
|
|
func defaultSrtpProtectionProfiles() []dtls.SRTPProtectionProfile {
|
|
return []dtls.SRTPProtectionProfile{dtls.SRTP_AEAD_AES_128_GCM, dtls.SRTP_AES128_CM_HMAC_SHA1_80}
|
|
}
|