This commit is contained in:
Jeff Emmett 2024-10-18 21:30:16 -04:00
parent 2435f3f495
commit b05aa413e3
1 changed files with 13 additions and 13 deletions

View File

@ -130,21 +130,21 @@ export class VideoChatShape extends BaseBoxShapeUtil<IVideoChatShape> {
{isLoading ? ( {isLoading ? (
<p>Joining room...</p> <p>Joining room...</p>
) : isInRoom && shape.props.roomUrl && typeof window !== 'undefined' ? ( ) : isInRoom && shape.props.roomUrl && typeof window !== 'undefined' ? (
<div className="mb-4"> <div className="mb-4" style={{ width: '100%', height: '100%' }}>
<button onClick={leaveRoom} className="bg-red-500 text-white px-4 py-2 rounded mb-4"> {/* <button onClick={leaveRoom} className="bg-red-500 text-white px-4 py-2 rounded mb-4">
Leave Room Leave Room
</button> </button>
<div className="aspect-w-16 aspect-h-9"> <div className="aspect-w-16 aspect-h-9"> */}
<whereby-embed <whereby-embed
room={shape.props.roomUrl} room={shape.props.roomUrl}
background="off" background="off"
logo="off" logo="off"
chat="off" chat="off"
screenshare="on" screenshare="on"
people="on" people="on"
style={{ width: '100%', height: '100%', objectFit: 'cover' }} style={{ width: '100%', height: '100%', objectFit: 'cover' }}
></whereby-embed> ></whereby-embed>
</div> {/* </div> */}
</div> </div>
) : ( ) : (
<div> <div>