Skip to main content
Version: Next

Monitoring Call Quality - Javascript

Monitoring the local participant’s call quality is essential to ensure a smooth and uninterrupted meeting experience. Changes in network conditions or device performance can directly affect audio and video quality. By subscribing to the quality-limitation event, your app can detect these changes in real-time and provide immediate feedback to the participant.

Why It Matters​

Even brief network congestion, low bandwidth, or high CPU usage can impact the meeting experience. Monitoring these limitations allows your app to:

  • Notify the local participant of potential issues affecting audio or video quality.
  • Empower the participant to take action, like switching networks or closing other heavy applications.

Example Usage​

meeting.on("quality-limitation", ({ type, state, timestamp }) => {
const time = new Date(timestamp).toLocaleTimeString();
console.log(`[${time}] quality-limitation : ${type}-${state}`);

if (state === "detected") {
alert(`Your ${type} may be affecting call quality.`);
} else if (state === "resolved") {
console.log(`${type} limitation has been resolved.`);
}
});

API Reference​

The API references for all the methods and events utilized in this guide are provided below.

Got a Question? Ask us on discord