diff --git a/frontend/src/components/pages/MobileCallPage.tsx b/frontend/src/components/pages/MobileCallPage.tsx index a81ef20..3cf3b6a 100644 --- a/frontend/src/components/pages/MobileCallPage.tsx +++ b/frontend/src/components/pages/MobileCallPage.tsx @@ -35,7 +35,7 @@ import { type ChatMessage, } from "@/hooks/use-voice-preview"; -type CallView = "camera" | "chat"; +type CallView = "video" | "chat"; function messageTime(timestamp: string): string { const date = new Date(timestamp); @@ -106,6 +106,171 @@ function MobileCallTranscript({ messages }: { messages: ChatMessage[] }) { ); } +function MobileVideoSurface({ + stream, + compact = false, +}: { + stream: MediaStream | null; + compact?: boolean; +}) { + const videoRef = useRef(null); + + useEffect(() => { + if (videoRef.current) videoRef.current.srcObject = stream; + }, [stream]); + + return ( +