@@ -86,7 +86,7 @@ function Stage({ connected, onStreamReady }: StageProps) {
86
86
}
87
87
88
88
return (
89
- < div className = "relative" >
89
+ < div className = "relative w-full h-full " >
90
90
< MediaStreamPlayer stream = { remoteStream } />
91
91
< div className = "absolute top-2 right-2 bg-black/50 text-white px-2 py-1 rounded text-sm" >
92
92
< TooltipProvider >
@@ -178,15 +178,24 @@ export function Room() {
178
178
onDisconnected = { handleDisconnected }
179
179
localStream = { localStream }
180
180
>
181
- < div className = "min-h-[100dvh] flex flex-col items-center justify-start pt-[10vh]" >
182
- < div className = "w-full max-h-[100dvh] flex flex-col lg:flex-row landscape:flex-row justify-center items-center lg:space-x-4" >
183
- < div className = "landscape:w-full lg:w-1/2 h-[50dvh] lg:h-auto landscape:h-full max-w-[512px] max-h-[512px] aspect-square bg-[black] flex justify-center items-center border-2 rounded-md" >
181
+ < div className = "min-h-[100dvh] flex flex-col items-center justify-start" >
182
+ < div className = "w-full max-h-[100dvh] flex flex-col lg:flex-row landscape:flex-row justify-center items-center lg:space-x-4 sm:pt-[10vh]" >
183
+ { /* Output Stream */ }
184
+ < div className = "relative w-full max-w-[100vw] h-auto aspect-square sm:max-w-[512px] sm:max-h-[512px] md:max-w-[512px] md:max-h-[512px] flex justify-center items-center bg-slate-900 sm:border-[2px] md:border-0 lg:border-2 rounded-md" >
184
185
< Stage
185
186
connected = { isConnected }
186
187
onStreamReady = { onRemoteStreamReady }
187
188
/>
189
+ < div className = "absolute bottom-[8px] right-[8px] w-[90px] h-[90px] bg-slate-800 block md:hidden" >
190
+ < Webcam
191
+ onStreamReady = { onStreamReady }
192
+ deviceId = { config . selectedDeviceId }
193
+ frameRate = { config . frameRate }
194
+ />
195
+ </ div >
188
196
</ div >
189
- < div className = "landscape:w-full lg:w-1/2 h-[50dvh] lg:h-auto landscape:h-full max-w-[512px] max-h-[512px] aspect-square flex justify-center items-center lg:border-2 lg:rounded-md" >
197
+ { /* Input Stream */ }
198
+ < div className = "hidden md:flex w-full sm:w-full md:w-full h-[50dvh] sm:h-auto md:h-auto max-w-[512px] max-h-[512px] aspect-square justify-center items-center lg:border-2 lg:rounded-md bg-slate-800" >
190
199
< Webcam
191
200
onStreamReady = { onStreamReady }
192
201
deviceId = { config . selectedDeviceId }
0 commit comments