Skip to content

Commit

Permalink
feat: add test logs to debug screenshare
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 authored Mar 6, 2024
1 parent 74a4d1f commit a5de395
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const SecondarySection = ({
hasSidebar,
}: React.PropsWithChildren<{ tiles: TrackWithPeerAndDimensions[]; edgeToEdge?: boolean; hasSidebar?: boolean }>) => {
const tileLayoutProps = useVideoTileContext();
console.log('secondary section', { tilesLength: tiles?.length });
if (!tiles?.length) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export const ScreenshareLayout = ({ peers, onPageChange, onPageSize, edgeToEdge
};
}, [activeSharePeer?.id, isMobile, setActiveScreenSharePeer]);

console.log({ activeSharePeer, secondaryPeers });

return (
<ProminenceLayout.Root edgeToEdge={edgeToEdge} hasSidebar={hasSidebar}>
<ProminenceLayout.ProminentSection>
Expand Down
1 change: 1 addition & 0 deletions packages/roomkit-react/src/Prebuilt/layouts/SidePane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ const SidePane = ({
});

if (!trackId && !SidepaneComponent) {
console.log('sidepane not rendered', { trackId, SidepaneComponent });
return null;
}

Expand Down

0 comments on commit a5de395

Please sign in to comment.