Browser interop checks the SRTP cipher; docs on SRTP, BWE and simulcast

The interop test now reads the transport's getStats() and requires
srtpCipher AES_CM_128_HMAC_SHA1_80 in both directions, and bandwidth
estimates from Chromium's transport-cc feedback. The docs describe the SRTP
profile order, the bandwidth estimation and the simulcast layers of our
stream, and the findings with Chromium 141.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
This commit is contained in:
Claude committed 2026-09-27 03:58:29 +00:00
1 parent f032e4b2d2
commit 2b044aab55
6 files changed
+86 -9

No files matched your search

+6 -1
View File
@@ -11,7 +11,8 @@
// accept {sdp} apply the answer to our offer
// candidate {candidate, sdpMid, sdpMLineIndex} add a remote candidate
// stats connection state, inbound/outbound RTP counters,
// frames shown by a <video> element
// frames shown by a <video> element, the DTLS/SRTP
// parameters of the transport
// quit
'use strict';
@@ -134,10 +135,12 @@ window.peer = {
const codecs = {};
const inbound = {};
const outbound = {};
let transport = {};
report.forEach((s) => {
if (s.type === 'codec') codecs[s.id] = s.mimeType;
if (s.type === 'inbound-rtp') inbound[s.kind] = s;
if (s.type === 'outbound-rtp') outbound[s.kind] = s;
if (s.type === 'transport') transport = s;
});
const pick = (s, keys) => {
const o = { codec: codecs[s.codecId] };
@@ -145,6 +148,8 @@ window.peer = {
return o;
};
const out = { connectionState: this.pc.connectionState, shownFrames: this.shownFrames, inbound: {}, outbound: {} };
out.transport = {};
['dtlsState', 'dtlsRole', 'tlsVersion', 'dtlsCipher', 'srtpCipher'].forEach((k) => (out.transport[k] = transport[k]));
for (const k in inbound) {
out.inbound[k] = pick(inbound[k], ['packetsReceived', 'bytesReceived', 'packetsLost', 'framesReceived', 'framesDecoded', 'keyFramesDecoded', 'pliCount', 'totalSamplesReceived']);
}