diff --git a/src/lib/react/Grid/index.tsx b/src/lib/react/Grid/index.tsx
index ce287179..03ebfad7 100644
--- a/src/lib/react/Grid/index.tsx
+++ b/src/lib/react/Grid/index.tsx
@@ -1,5 +1,5 @@
import * as React from "react";
-import { RemoteParticipant, VideoView } from "..";
+import { LocalParticipant, RemoteParticipant, VideoView } from "..";
import { calculateLayout } from "./helpers/stageLayout";
import { makeBounds, makeFrame } from "./helpers/layout";
import { makeVideoCellView } from "./helpers/cellView";
@@ -12,7 +12,7 @@ function GridVideoCellView({
render,
}: {
cell: { clientId: string; bounds: { width: number; height: number }; origin: { top: number; left: number } };
- participant: RemoteParticipant;
+ participant: RemoteParticipant | LocalParticipant;
render?: () => React.ReactNode;
}) {
return (
@@ -38,19 +38,20 @@ interface GridProps {
participant,
}: {
cell: { clientId: string; bounds: { width: number; height: number }; origin: { top: number; left: number } };
- participant: RemoteParticipant;
+ participant: RemoteParticipant | LocalParticipant;
}) => React.ReactNode;
+ videoGridGap?: number;
}
-function Grid({ roomConnection, renderParticipant }: GridProps) {
- const { remoteParticipants } = roomConnection.state;
+function Grid({ roomConnection, renderParticipant, videoGridGap = 0 }: GridProps) {
+ const { remoteParticipants, localParticipant } = roomConnection.state;
const gridRef = React.useRef
Set room url on the Controls panel
; } - const roomConnection = useRoomConnection(roomUrl, { localMediaOptions: { audio: false, video: false } }); + const roomConnection = useRoomConnection(roomUrl, { localMediaOptions: { audio: false, video: true } }); return ({participant.displayName}