@observertc/client-monitor-js
Version:
ObserveRTC Client Integration Javascript Library
33 lines (32 loc) • 1.06 kB
TypeScript
import { Detector } from "./Detector";
import { InboundTrackMonitor } from "../monitors/InboundTrackMonitor";
export type AudioConcealmentIssuePayload = {
peerConnectionId: string;
trackId: string;
concealmentRate: number;
concealmentEventRate: number;
burstiness: 'bursty' | 'continuous' | 'unknown';
windowInMs: number;
durationInMs?: number;
};
export declare class AudioConcealmentDetector implements Detector {
readonly trackMonitor: InboundTrackMonitor;
static readonly ISSUE_TYPE = "audio-concealment";
readonly name = "audio-concealment-detector";
disabled: boolean;
private static readonly MAX_WINDOW_ENTRIES;
private readonly issueKey;
private readonly _window;
private _sumAudible;
private _sumTotal;
private _sumEvents;
private _alertOn;
private _startedAt?;
constructor(trackMonitor: InboundTrackMonitor);
private get config();
private get peerConnection();
update(): void;
private _resetWindow;
private _classifyBurstiness;
private _clear;
}