snapshot of https://github.com/pion/webrtc.git (main, 2026-09-15; blobs > 131072B omitted)
Some checks failed
REUSE Compliance Check / lint (push) Failing after 0s
Browser E2E / Test (push) Failing after 3s
Test / test (1.24) (push) Failing after 0s
Test / test-i386 (1.25) (push) Failing after 0s
Test / test-i386 (1.24) (push) Failing after 0s
Test / test-windows (1.25) (push) Failing after 0s
Test / test-windows (1.24) (push) Failing after 0s
Test / test (1.25) (push) Failing after 0s
Examples Tests / Test (push) Failing after 3s
Test / test-macos (1.25) (push) Failing after 0s
Test / test-macos (1.24) (push) Failing after 0s
Go mod tidy / tidy (push) Failing after 0s
Test / test-wasm (push) Failing after 0s
CodeQL / analyze (push) Failing after 1s
Fuzz / fuzz (push) Failing after 0s
Some checks failed
REUSE Compliance Check / lint (push) Failing after 0s
Browser E2E / Test (push) Failing after 3s
Test / test (1.24) (push) Failing after 0s
Test / test-i386 (1.25) (push) Failing after 0s
Test / test-i386 (1.24) (push) Failing after 0s
Test / test-windows (1.25) (push) Failing after 0s
Test / test-windows (1.24) (push) Failing after 0s
Test / test (1.25) (push) Failing after 0s
Examples Tests / Test (push) Failing after 3s
Test / test-macos (1.25) (push) Failing after 0s
Test / test-macos (1.24) (push) Failing after 0s
Go mod tidy / tidy (push) Failing after 0s
Test / test-wasm (push) Failing after 0s
CodeQL / analyze (push) Failing after 1s
Fuzz / fuzz (push) Failing after 0s
This commit is contained in:
70
constants.go
Normal file
70
constants.go
Normal file
@@ -0,0 +1,70 @@
|
||||
// SPDX-FileCopyrightText: 2026 The Pion community <https://pion.ly>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package webrtc
|
||||
|
||||
import (
|
||||
"math"
|
||||
|
||||
"github.com/pion/dtls/v3"
|
||||
)
|
||||
|
||||
const (
|
||||
// default as the standard ethernet MTU
|
||||
// can be overwritten with SettingEngine.SetReceiveMTU().
|
||||
receiveMTU = 1500
|
||||
|
||||
// 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
|
||||
|
||||
// Default Max SCTP Message Size is the largest single DataChannel
|
||||
// message we can send or accept. This default was chosen to match FireFox.
|
||||
defaultMaxSCTPMessageSize = 1073741823
|
||||
|
||||
// If a DataChannel Max Message Size isn't declared by the Remote(max-message-size)
|
||||
// this is the value we default to. This value was chosen because it was the behavior
|
||||
// of Pion before max-message-size was implemented.
|
||||
sctpMaxMessageSizeUnsetValue = math.MaxUint16
|
||||
|
||||
mediaSectionApplication = "application"
|
||||
|
||||
sdpAttributeRid = "rid"
|
||||
|
||||
sdpAttributeSimulcast = "simulcast"
|
||||
|
||||
outboundMTU = 1200
|
||||
|
||||
sctpOutboundMTU = 1191
|
||||
|
||||
rtpPayloadTypeBitmask = 0x7F
|
||||
|
||||
incomingUnhandledRTPSsrc = "Incoming unhandled RTP ssrc(%d), OnTrack will not be fired. %v"
|
||||
|
||||
useReadSimulcast = "Use ReadSimulcast(rid) instead of Read() when multiple tracks are present"
|
||||
|
||||
generatedCertificateOrigin = "WebRTC"
|
||||
|
||||
// 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"
|
||||
)
|
||||
|
||||
func defaultSrtpProtectionProfiles() []dtls.SRTPProtectionProfile {
|
||||
return []dtls.SRTPProtectionProfile{
|
||||
dtls.SRTP_AEAD_AES_256_GCM,
|
||||
dtls.SRTP_AEAD_AES_128_GCM,
|
||||
dtls.SRTP_AES128_CM_HMAC_SHA1_80,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user