status-go/vendor/github.com/pion/webrtc/v3/constants.go

53 lines
1.8 KiB
Go
Raw Normal View History

2024-05-15 23:15:00 +00:00
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
2022-03-10 09:44:48 +00:00
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"
2024-06-05 20:10:03 +00:00
sdpAttributeSimulcast = "simulcast"
2022-03-10 09:44:48 +00:00
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"
2024-06-05 20:10:03 +00:00
// AttributeRtxPayloadType is the interceptor attribute added when Read() returns an RTX packet containing the RTX stream payload type
AttributeRtxPayloadType = "rtx_payload_type"
// AttributeRtxSsrc is the interceptor attribute added when Read() returns an RTX packet containing the RTX stream SSRC
AttributeRtxSsrc = "rtx_ssrc"
// AttributeRtxSequenceNumber is the interceptor attribute added when Read() returns an RTX packet containing the RTX stream sequence number
AttributeRtxSequenceNumber = "rtx_sequence_number"
2022-03-10 09:44:48 +00:00
)
func defaultSrtpProtectionProfiles() []dtls.SRTPProtectionProfile {
2024-05-15 23:15:00 +00:00
return []dtls.SRTPProtectionProfile{dtls.SRTP_AEAD_AES_256_GCM, dtls.SRTP_AEAD_AES_128_GCM, dtls.SRTP_AES128_CM_HMAC_SHA1_80}
2022-03-10 09:44:48 +00:00
}