mirror of
https://github.com/pion/webrtc.git
synced 2025-12-24 11:51:03 +08:00
If the PayloadType changes for a SSRC update the codec on the TrackRemote. Resolves #1850
34 lines
914 B
Go
34 lines
914 B
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"
|
|
ssrcStr = "ssrc"
|
|
|
|
// 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"
|
|
|
|
rtpOutboundMTU = 1200
|
|
|
|
rtpPayloadTypeBitmask = 0x7F
|
|
)
|
|
|
|
func defaultSrtpProtectionProfiles() []dtls.SRTPProtectionProfile {
|
|
return []dtls.SRTPProtectionProfile{dtls.SRTP_AEAD_AES_128_GCM, dtls.SRTP_AES128_CM_HMAC_SHA1_80}
|
|
}
|