(logs, eventName, options = {})
| 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 | |
| 1701 | const 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; |
no test coverage detected