opentok-network-test-js
Version:
Precall network test for applications using the OpenTok platform.
19 lines • 574 B
TypeScript
export type UpdateCallback = (stats: UpdateCallbackStats) => void;
export type UpdateCallbackStats = {
audio: CallbackTrackStats;
video: (CallbackTrackStats & {
frameRate: number;
mediaRouting?: string;
}) | null;
timestamp: number;
phase: string;
networkCondition?: OT.NetworkCondition;
networkDegradationSource?: OT.NetworkDegradationSource;
};
export interface CallbackTrackStats {
bytesSent: number;
bytesReceived: number;
packetsLost: number;
packetsReceived: number;
}
//# sourceMappingURL=callbacks.d.ts.map