github.com/pion/webrtc/v3@v3.2.24/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/v2"
     7  
     8  const (
     9  	// Unknown defines default public constant to use for "enum" like struct
    10  	// comparisons when no value was defined.
    11  	Unknown    = iota
    12  	unknownStr = "unknown"
    13  
    14  	// Equal to UDP MTU
    15  	receiveMTU = 1460
    16  
    17  	// simulcastProbeCount is the amount of RTP Packets
    18  	// that handleUndeclaredSSRC will read and try to dispatch from
    19  	// mid and rid values
    20  	simulcastProbeCount = 10
    21  
    22  	// simulcastMaxProbeRoutines is how many active routines can be used to probe
    23  	// If the total amount of incoming SSRCes exceeds this new requests will be ignored
    24  	simulcastMaxProbeRoutines = 25
    25  
    26  	mediaSectionApplication = "application"
    27  
    28  	sdpAttributeRid = "rid"
    29  
    30  	sdpAttributeSimulcast = "simulcast"
    31  
    32  	rtpOutboundMTU = 1200
    33  
    34  	rtpPayloadTypeBitmask = 0x7F
    35  
    36  	incomingUnhandledRTPSsrc = "Incoming unhandled RTP ssrc(%d), OnTrack will not be fired. %v"
    37  
    38  	generatedCertificateOrigin = "WebRTC"
    39  
    40  	sdesRepairRTPStreamIDURI = "urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id"
    41  )
    42  
    43  func defaultSrtpProtectionProfiles() []dtls.SRTPProtectionProfile {
    44  	return []dtls.SRTPProtectionProfile{dtls.SRTP_AEAD_AES_256_GCM, dtls.SRTP_AEAD_AES_128_GCM, dtls.SRTP_AES128_CM_HMAC_SHA1_80}
    45  }