getStats() Method That Solves WebRTC CPU Problems #coding #tutorial

4 Jan 2026 · 3 min
2:53

YouTube tutorial (Tsahi Levent-Levi) on measuring and reducing RTC CPU usage on client devices. Covers using RTCPeerConnection.getStats() to estimate per-frame encode/decode times, interpreting the "quality limitation reason" encoder metric ("cpu"), and mentions the experimental Compression Compute Pressure API in Chrome as a future solution. Provides a calculation example for 30 fps: 1000 ms / 30 = 33 ms per frame, suggesting encode time per frame should be below ~11 ms (one-third of frame budget) to leave headroom for other tasks.

Chapters

More from Tsahi

9:15
youtube.com

After 15 years of WebRTC, here is when I drop peer-to-peer

1mo ago
1:39
youtube.com

Why UDP won the real-time war #programming #webrtc #shorts

1mo ago
1:37
youtube.com

The Difference Between SFU And TURN Servers #WebRTC #RealTimeCommunications

2mo ago
1:43
youtube.com

Why server logs are useless for WebRTC #webrtc #getStats #observability

2mo ago
1:49
youtube.com

How does WebRTC even know a packet was lost?

2mo ago
1:42
youtube.com

WebRTC gives you every tool to watch your calls, then collects nothing

2mo ago
1:40
youtube.com

All green but calls are broken #qoe #dashboards #webrtc

2mo ago
14:03
youtube.com

Meta rebuilt AV1 for mobile scale. Should smaller teams follow? | Chats with Arin

2mo ago
1:16
youtube.com

Is your video API vendor ready for AI agents?

3mo ago
1:21
youtube.com

What "$4 per 1000 Minutes" Really Costs You (Video API Pricing)

3mo ago
1:30
youtube.com

How to Read the WebRTC Tools Hub in 90 Seconds

3mo ago
See all content