MCPcopy Create free account
hub / github.com/ACM-VIT/conclave / parseVideoEffectsEventLogs

Function parseVideoEffectsEventLogs

scripts/debug-video-effects-headless.mjs:1691–1709  ·  view source on GitHub ↗
(logs, eventName, options = {})

Source from the content-addressed store, hash-verified

1689 const quality = getEffectSwitchLatencyQuality(logs, state, label, options);
1690 emit("effect_switch_latency_quality_probe", quality);
1691 if (!quality.ok) {
1692 throw new Error(
1693 `Effect switch latency regression at ${label}: ${JSON.stringify(
1694 quality,
1695 )}`,
1696 );
1697 }
1698 return quality;
1699};
1700
1701const waitForMeetVideoPublish = async (cdp, label, mode = "processed") => {
1702 const eventLabel = label.toLowerCase().replace(/[^a-z0-9]+/g, "_");
1703 await waitFor(
1704 cdp,
1705 label,
1706 `(() => {
1707 const debug =
1708 typeof window.__conclaveGetMeetVideoDebug === "function"
1709 ? window.__conclaveGetMeetVideoDebug()
1710 : window.__conclaveMeetVideoDebug ?? null;
1711 const producer = debug?.videoProducer;
1712 const track = producer?.track;

Calls 1

escapeRegExpFunction · 0.85

Tested by

no test coverage detected