webrtc-issue-detector
Version:
WebRTC diagnostic tool that detects issues with network or user devices
8 lines (7 loc) • 385 B
TypeScript
interface WithTS {
timestamp: number;
}
export declare const checkIsConnectionClosed: (pc: RTCPeerConnection) => boolean;
export declare const calcValueRate: <T extends WithTS>(stats: T, prevStats: T | undefined, statPropName: keyof T) => number;
export declare const calcBitrate: <T extends WithTS>(stats: T, prevStats: T | undefined, statPropName: keyof T) => number;
export {};