GitHub

Source

useConnectionQualityIndicator

The useConnectionQualityIndicator hook provides props for the ConnectionQualityIndicator or your custom implementation of it component.

Import

import { useConnectionQualityIndicator } from "@livekit/components-react";

Usage

const { quality } = useConnectionQualityIndicator();
// or
const { quality } = useConnectionQualityIndicator({ participant });

Properties

options?ConnectionQualityIndicatorOptions

Returns

{
className: "lk-connection-quality";
quality: ConnectionQuality;
}