(frontend) use focus layout for solo PiP screen sharing

Solo cam in screen share PiP is now a BR thumbnail over shared screen
This commit is contained in:
Cyril
2026-07-02 10:51:38 +02:00
parent d995bd9041
commit 40ef420cda
@@ -53,8 +53,20 @@ export const PipStage = () => {
if (tracks.length === 0) return null
// Screen share active → Google Meet-style layout
// Screen share active
if (screenShareTrack) {
// Solo presenter: screen share fills the area, camera as small thumbnail
if (cameraTracks.length <= 1) {
return (
<StageFrame>
<PipFocusLayout
mainTrack={screenShareTrack}
thumbnailTrack={cameraTracks[0]}
/>
</StageFrame>
)
}
// Multiple cameras: camera row at top, screen share below
return (
<PaginatedStage pagination={paginatedCameraTracks}>
<PipScreenShareLayout