diff --git a/src/components/Stream.tsx b/src/components/Stream.tsx index dff659927..f3f84aed1 100644 --- a/src/components/Stream.tsx +++ b/src/components/Stream.tsx @@ -185,6 +185,18 @@ export const Stream = () => { } }, [IDLE, streamState]) + // HOT FIX: for https://github.com/KittyCAD/modeling-app/pull/3250 + // TODO review if there's a better way to play the stream again. + useEffect(() => { + if (!kclManager.isFirstRender) + setTimeout(() => + // execute in the next event loop + videoRef.current?.play().catch((e) => { + console.warn('Video playing was prevented', e, videoRef.current) + }) + ) + }, [kclManager.isFirstRender]) + useEffect(() => { if ( typeof window === 'undefined' ||