Open source video conferencing app powered by LiveKit. Built with Django and React.
🐛(frontend) reset video ref on track stop for state transitions
lebaudantoine2d47e90a1a6f
diff --git a/src/frontend/src/features/rooms/components/Join.tsx b/src/frontend/src/features/rooms/components/Join.tsxindex e4e2014a..6bc5e111 100644--- a/src/frontend/src/features/rooms/components/Join.tsx+++ b/src/frontend/src/features/rooms/components/Join.tsx@@ -161,7 +161,11 @@ export const Join = ({return () => {videoTrack?.detach()- videoElement?.removeEventListener('loadedmetadata', handleVideoLoaded)+ if (videoElement) {+ videoElement.removeEventListener('loadedmetadata', handleVideoLoaded)+ videoElement.style.opacity = '0'+ }+ isVideoInitiated.current = false}}, [videoTrack, videoEnabled])