github.com/pion/webrtc/v4@v4.0.1/constants.go (about) 1 // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> 2 // SPDX-License-Identifier: MIT 3 4 package webrtc 5 6 import "github.com/pion/dtls/v3" 7 8 const ( 9 // default as the standard ethernet MTU 10 // can be overwritten with SettingEngine.SetReceiveMTU() 11 receiveMTU = 1500 12 13 // simulcastProbeCount is the amount of RTP Packets 14 // that handleUndeclaredSSRC will read and try to dispatch from 15 // mid and rid values 16 simulcastProbeCount = 10 17 18 // simulcastMaxProbeRoutines is how many active routines can be used to probe 19 // If the total amount of incoming SSRCes exceeds this new requests will be ignored 20 simulcastMaxProbeRoutines = 25 21 22 mediaSectionApplication = "application" 23 24 sdpAttributeRid = "rid" 25 26 sdpAttributeSimulcast = "simulcast" 27 28 rtpOutboundMTU = 1200 29 30 rtpPayloadTypeBitmask = 0x7F 31 32 incomingUnhandledRTPSsrc = "Incoming unhandled RTP ssrc(%d), OnTrack will not be fired. %v" 33 34 generatedCertificateOrigin = "WebRTC" 35 36 sdesRepairRTPStreamIDURI = "urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id" 37 38 // AttributeRtxPayloadType is the interceptor attribute added when Read() returns an RTX packet containing the RTX stream payload type 39 AttributeRtxPayloadType = "rtx_payload_type" 40 // AttributeRtxSsrc is the interceptor attribute added when Read() returns an RTX packet containing the RTX stream SSRC 41 AttributeRtxSsrc = "rtx_ssrc" 42 // AttributeRtxSequenceNumber is the interceptor attribute added when Read() returns an RTX packet containing the RTX stream sequence number 43 AttributeRtxSequenceNumber = "rtx_sequence_number" 44 ) 45 46 func defaultSrtpProtectionProfiles() []dtls.SRTPProtectionProfile { 47 return []dtls.SRTPProtectionProfile{dtls.SRTP_AEAD_AES_256_GCM, dtls.SRTP_AEAD_AES_128_GCM, dtls.SRTP_AES128_CM_HMAC_SHA1_80} 48 }