UNPKG

@observertc/client-monitor-js

Version:

ObserveRTC Client Integration Javascript Library

32 lines (31 loc) 1.4 kB
import { Detectors } from "../detectors/Detectors"; import { MediaPlayoutStats } from "../schema/ClientSample"; import { MediaKind } from "../schema/W3cStatsIdentifiers"; import { PeerConnectionMonitor } from "./PeerConnectionMonitor"; export declare class MediaPlayoutMonitor implements MediaPlayoutStats { private readonly _peerConnection; private _visited; readonly detectors: Detectors; timestamp: number; id: string; kind: MediaKind; synthesizedSamplesDuration?: number | undefined; synthesizedSamplesEvents?: number | undefined; totalSamplesDuration?: number | undefined; totalPlayoutDelay?: number | undefined; totalSamplesCount?: number | undefined; deltaSynthesizedSamplesDuration: number; deltaSamplesDuration: number; deltaSynthesizedSamplesEvents?: number | undefined; deltaTotalPlayoutDelay?: number | undefined; deltaSamplesCount?: number | undefined; playoutDelayPerSampleInMs?: number | undefined; synthesizedSamplesRatio?: number | undefined; attachments?: Record<string, unknown> | undefined; appData?: Record<string, unknown> | undefined; constructor(_peerConnection: PeerConnectionMonitor, options: MediaPlayoutStats); get visited(): boolean; getPeerConnection(): PeerConnectionMonitor; accept(stats: Omit<MediaPlayoutStats, 'appData'>): void; createSample(): MediaPlayoutStats; }