DocsPlugins

Video calls (Jitsi)

Jitsi Meet calls inside your app, in the page or in a window over it, on meet.jit.si or your own Jitsi server.

The jitsi plugin puts a Jitsi Meet call inside your app. People join from the page they’re on, with their name already filled in, and the call can use their camera, microphone and screen. To add it:

sluurp plugin add jitsi

Features include:

  • Room addresses nobody can guess, one per meeting
  • A call in a window over the page, or in a box of the page
  • The person’s name, picture and language filled in
  • meet.jit.si by default, or your own Jitsi server

Make a room

A room is an address. Anyone who has it can join, so make one per meeting with roomUrl, which adds a part nobody can guess, and keep it with the meeting:

app.ts
import { roomUrl } from "plugin:jitsi";

await meetings.create({ title: "Team review", video: roomUrl("team-review") });

By default, calls run on meet.jit.si. To use your own Jitsi server, pass its address: roomUrl("team-review", "meet.example.org").

Join

MeetingDialog shows the call in a window over the page, nearly the screen’s size. Closing the window leaves the call.

meeting.tsx
import { useState } from "react";
import { MeetingDialog } from "plugin:jitsi";

const [open, setOpen] = useState(false);

<MeetingDialog url={meeting.video} open={open} onOpenChange={setOpen} name="Ana Pop" title="Team review" />

Meeting shows a call where you put it, filling its box:

meeting.tsx
import { Meeting } from "plugin:jitsi";

<div class="h-[32rem]">
  <Meeting url={meeting.video} name="Ana Pop" />
</div>

Both take name, email (for the person’s picture in the call), title, lang (by default, the page’s language) and skipPrejoin: false to show Jitsi’s camera check before joining.

View as Markdown