@vpalmisano/webrtcperf 4.0.12 → 4.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,7 +31,6 @@ declare global {
31
31
  screenStartFrameDelay: number;
32
32
  };
33
33
  collectCpuPressure: () => number;
34
- collectCustomMetrics: () => Promise<Record<string, number | string>>;
35
34
  collectVideoStats: () => {
36
35
  width: number;
37
36
  height: number;
@@ -44,6 +43,7 @@ declare global {
44
43
  startFakeScreenshare: () => Promise<void>;
45
44
  stopFakeScreenshare: () => void;
46
45
  };
46
+ let collectCustomMetrics: () => Promise<Record<string, number | string>>;
47
47
  }
48
48
  type SessionStats = Record<string, number | Record<string, number>>;
49
49
  export interface SessionParams {
@@ -1280,7 +1280,7 @@ webrtcperf.config.AUDIO_URL = "http${this.serverUseHttps ? 's' : ''}://localhost
1280
1280
  videoEndToEndDelay: webrtcperf.collectVideoEndToEndStats(),
1281
1281
  cpuPressure: webrtcperf.collectCpuPressure(),
1282
1282
  videoStats: webrtcperf.collectVideoStats(),
1283
- customMetrics: 'collectCustomMetrics' in window ? webrtcperf.collectCustomMetrics() : null,
1283
+ customMetrics: 'collectCustomMetrics' in window ? collectCustomMetrics() : null,
1284
1284
  }));
1285
1285
  const { participantName } = peerConnectionStats;
1286
1286
  const httpResourcesStats = this.httpResourcesStats.get(pageIndex);