constants.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
  2. // SPDX-License-Identifier: MIT
  3. package webrtc
  4. import "github.com/pion/dtls/v2"
  5. const (
  6. // Unknown defines default public constant to use for "enum" like struct
  7. // comparisons when no value was defined.
  8. Unknown = iota
  9. unknownStr = "unknown"
  10. // Equal to UDP MTU
  11. receiveMTU = 1460
  12. // simulcastProbeCount is the amount of RTP Packets
  13. // that handleUndeclaredSSRC will read and try to dispatch from
  14. // mid and rid values
  15. simulcastProbeCount = 10
  16. // simulcastMaxProbeRoutines is how many active routines can be used to probe
  17. // If the total amount of incoming SSRCes exceeds this new requests will be ignored
  18. simulcastMaxProbeRoutines = 25
  19. mediaSectionApplication = "application"
  20. sdpAttributeRid = "rid"
  21. rtpOutboundMTU = 1200
  22. rtpPayloadTypeBitmask = 0x7F
  23. incomingUnhandledRTPSsrc = "Incoming unhandled RTP ssrc(%d), OnTrack will not be fired. %v"
  24. generatedCertificateOrigin = "WebRTC"
  25. sdesRepairRTPStreamIDURI = "urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id"
  26. )
  27. func defaultSrtpProtectionProfiles() []dtls.SRTPProtectionProfile {
  28. return []dtls.SRTPProtectionProfile{dtls.SRTP_AEAD_AES_256_GCM, dtls.SRTP_AEAD_AES_128_GCM, dtls.SRTP_AES128_CM_HMAC_SHA1_80}
  29. }