UNPKG

@observertc/client-monitor-js

Version:

ObserveRTC Client Integration Javascript Library

27 lines (26 loc) 876 B
import { Detector } from "./Detector"; import { InboundTrackMonitor } from "../monitors/InboundTrackMonitor"; export type JitterBufferStressIssuePayload = { peerConnectionId: string; trackId: string; targetDelayInMs: number; actualDelayInMs?: number; timeStretchRate: number; consecutiveTicks: number; durationInMs?: number; }; export declare class JitterBufferStressDetector implements Detector { readonly trackMonitor: InboundTrackMonitor; static readonly ISSUE_TYPE = "audio-jitter-buffer-stress"; readonly name = "jitter-buffer-stress-detector"; disabled: boolean; private readonly issueKey; private _consecutiveTicks; private _alertOn; private _startedAt?; constructor(trackMonitor: InboundTrackMonitor); private get config(); private get peerConnection(); update(): void; private _clear; }