const stats = await myPeerConnection.getStats();
for (const [id, stat] of stats.entries()) {
if (stat.type !== "outbound-rtp") continue;
Object.keys(stat).forEach((statName) => {
console.log(`${statName}: ${stat[statName]}`);
});
}RTCStatsReport: entries() method / notebook
RTCStatsReport: entries() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.