prehistoric-window-96256
11/04/2025, 10:29 AMtall-airline-16756
11/04/2025, 10:29 AMtall-airline-16756
11/04/2025, 10:30 AMRTCPeerConnection.getStats() and compute FPS from framesSent (sender) or framesDecoded (receiver) deltas for the video track. This gives ongoing FPS locally. Overview of WebRTC stats signals
• SDK signal for quality drops:
◦ Listen for ParticipantEvent.LocalTrackCpuConstrained to detect CPU-driven quality reductions and react (e.g., lower resolution/disable effects). Details
• Render-side measurement:
◦ Count rendered frames on your <video> element (e.g., timestamp frames and compute per-second counts) to gauge displayed FPS.
• Centralized analytics (optional):
◦ Use LiveKit Cloud dashboards/Analytics API for per-track frame rate and bitrate in real time. Cloud • Analytics API
If you’d like, I can share a minimal JS snippet that reads getStats() and computes FPS for a specific track.
Sources: Bringing Zoom's end-to-end optimizations to WebRTC | An introduction to WebRTC Simulcast | Optimizing Video Calls for Low-Powered Devices in LiveKit (JS SDK ≥ v2.14.0... | Announcing LiveKit Cloud | Analytics API | LiveKit docs