mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-30 03:59:07 +00:00
✨(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:
@@ -53,8 +53,20 @@ export const PipStage = () => {
|
|||||||
|
|
||||||
if (tracks.length === 0) return null
|
if (tracks.length === 0) return null
|
||||||
|
|
||||||
// Screen share active → Google Meet-style layout
|
// Screen share active
|
||||||
if (screenShareTrack) {
|
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 (
|
return (
|
||||||
<PaginatedStage pagination={paginatedCameraTracks}>
|
<PaginatedStage pagination={paginatedCameraTracks}>
|
||||||
<PipScreenShareLayout
|
<PipScreenShareLayout
|
||||||
|
|||||||
Reference in New Issue
Block a user