34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
|
import { JitsiMeeting } from "@jitsi/react-sdk";
|
||
|
import { JITSI_DOMAIN } from "../../background/constants";
|
||
|
|
||
|
function JitsiEntrypoint() {
|
||
|
return (
|
||
|
<JitsiMeeting
|
||
|
domain={JITSI_DOMAIN}
|
||
|
roomName="PleaseUseAGoodRoomName"
|
||
|
configOverwrite={{
|
||
|
startWithAudioMuted: true,
|
||
|
disableModeratorIndicator: true,
|
||
|
startScreenSharing: true,
|
||
|
enableEmailInStats: false,
|
||
|
prejoinConfig: { enabled: false },
|
||
|
}}
|
||
|
interfaceConfigOverwrite={{}}
|
||
|
userInfo={{
|
||
|
displayName: "YOUR_USERNAME",
|
||
|
email: "",
|
||
|
}}
|
||
|
onApiReady={(externalApi) => {
|
||
|
// here you can attach custom event listeners to the Jitsi Meet External API
|
||
|
// you can also store it locally to execute commands
|
||
|
}}
|
||
|
getIFrameRef={(iframeRef) => {
|
||
|
iframeRef.style.height = "100%";
|
||
|
iframeRef.style.width = "100%";
|
||
|
}}
|
||
|
/>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default JitsiEntrypoint;
|