(cdp, prejoinUrl)
| 2834 | meetDebug?.videoProducer === null; |
| 2835 | })()`, |
| 2836 | 30000, |
| 2837 | ); |
| 2838 | const joinedCameraOffState = await collectState( |
| 2839 | cdp, |
| 2840 | "state_prejoin_camera_off_joined", |
| 2841 | ); |
| 2842 | |
| 2843 | await openMeetingEffectsPanel(cdp, "prejoin camera-off joined effects panel"); |
| 2844 | await waitFor( |
| 2845 | cdp, |
| 2846 | "prejoin camera-off joined effect panel queued", |
| 2847 | `(() => { |
| 2848 | const panel = document.querySelector('[data-testid="video-effects-panel"]'); |
| 2849 | return panel?.getAttribute("data-video-effects-status") === "off" && |
| 2850 | panel?.getAttribute("data-video-effects-active-count") === "1" && |
| 2851 | panel?.getAttribute("data-video-effects-output-published") === "false" && |
| 2852 | panel?.getAttribute("data-video-effects-preview-matches-output") === "false"; |
| 2853 | })()`, |
| 2854 | 10000, |
| 2855 | ); |
| 2856 | await clickButton(cdp, "Close backgrounds and effects"); |
| 2857 | await clickButton(cdp, "Turn on camera"); |
| 2858 | await waitFor( |
| 2859 | cdp, |
| 2860 | "prejoin camera-off explicit camera-on applies queued effect", |
| 2861 | `(() => { |
| 2862 | const meetDebug = window.__conclaveGetMeetVideoDebug?.(); |
| 2863 | const stats = meetDebug?.videoEffectsDebugStats; |
| 2864 | const render = stats?.backgroundRender; |
| 2865 | return meetDebug?.connectionState === "joined" && |
| 2866 | meetDebug?.isCameraOff === false && |
| 2867 | meetDebug?.activeVideoEffectsCount === 1 && |
| 2868 | meetDebug?.videoEffectsStatus === "running" && |
| 2869 | meetDebug?.videoEffects?.background === "blur-strong" && |
| 2870 | meetDebug?.processedTrackReady === true && |
| 2871 | meetDebug?.publish?.usingProcessedTrack === true && |
| 2872 | stats?.outputTrackPublished === true && |
| 2873 | stats?.outputMode === "track-generator" && |
| 2874 | render?.background === "blur-strong" && |
| 2875 | render?.active === true && |
| 2876 | Number(render?.changedPixels || 0) > 0; |
| 2877 | })()`, |
| 2878 | 30000, |
| 2879 | ); |
| 2880 | const joinedCameraOnState = await collectState( |
| 2881 | cdp, |
| 2882 | "state_prejoin_camera_off_joined_camera_on", |
| 2883 | ); |
| 2884 | await waitForMeetVideoPublish( |
| 2885 | cdp, |
| 2886 | "prejoin camera-off join explicit camera-on producer uses processed blur", |
| 2887 | "processed", |
| 2888 | ); |
| 2889 | emit("prejoin_camera_off_join_probe", { |
| 2890 | queuedPrejoinStatus: |
| 2891 | queuedPrejoinState.panelAttrs?.["data-video-effects-status"], |
| 2892 | queuedPrejoinActiveCount: |
| 2893 | queuedPrejoinState.panelAttrs?.["data-video-effects-active-count"], |
no test coverage detected