constants.go 1.1 KB

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