diff --git a/apps/web/app/room/[slug]/page.tsx b/apps/web/app/room/[slug]/page.tsx index 0bf2e6e..9a53340 100644 --- a/apps/web/app/room/[slug]/page.tsx +++ b/apps/web/app/room/[slug]/page.tsx @@ -69,6 +69,12 @@ export default function Page(): JSX.Element { stream: videoRef.current?.srcObject as MediaStream, }); + peerRef.current?.on("stream", (remoteStream) => { + if (remoteRef.current) { + remoteRef.current.srcObject = remoteStream; + } + }); + peerRef.current?.on("signal", (signalData) => { if (signalData.type === "offer") { sendJsonMessage({