diff --git a/.replit b/.replit index cd990cf..aa0a35f 100644 --- a/.replit +++ b/.replit @@ -23,6 +23,10 @@ externalPort = 3001 localPort = 35637 externalPort = 3000 +[[ports]] +localPort = 45389 +externalPort = 3002 + [env] PORT = "5000" diff --git a/client/src/pages/LivePage.tsx b/client/src/pages/LivePage.tsx index e9ed8cf..29b47d7 100644 --- a/client/src/pages/LivePage.tsx +++ b/client/src/pages/LivePage.tsx @@ -48,8 +48,8 @@ export default function LivePage() { // Callback ref to properly handle video element mounting const videoCallbackRef = (element: HTMLVideoElement | null) => { - if (element) { - videoRef.current = element; + if (element && element !== videoRef.current) { + (videoRef as any).current = element; console.log('🔴 Video element mounted, initializing player...'); initializePlayer(); }