Embedding Jitsi Meet with the IFrame API: what the integration does
A team that wants video meetings inside its own portal or application, rather than sending users to a separate site, should plan around the IFrame API. On a self-hosted deployment the API is loaded from your own domain at https://<your-domain>/external_api.js, and your page creates a JitsiMeetExternalAPI(domain, options) object to open a conference in an iframe, pass it a room name and user details, and listen for events. For React applications, the Jitsi handbook points to the Jitsi React SDK as the documented route instead of wiring the raw API into React components. The handbook also says the IFrame API behaves the same way on mobile browsers as on desktop, so a single embedding approach covers both, although you should still test the join flow on the devices your users actually carry.
The practical difference from embedding meet.jit.si is ownership of the whole chain. The script, the domain in the constructor, the room names, the authentication model and the certificate all belong to your deployment, so the script must come from the same host that serves your Jitsi Meet web app and the certificate must be valid for that domain. Confirm with your network team that the portal's Content Security Policy allows frames and scripts from the Jitsi host, and that your identity and access rules still decide who can open a room. Decide early whether users join as signed-in staff, as guests or through a token issued by your application, because that choice changes what options your code passes and who can start a meeting.
Before you write code, decide what the embedding must control: room naming, whether the parent page can end or mute participants, how the iframe is sized in your layout, and which events your application needs, such as a conference ending or a participant joining. Each choice determines what you verify during testing. Ask the team that will run the platform to confirm the Jitsi version and the domain you will embed, because the API surface and your test plan depend on the release you deploy. The sections that follow cover the build sequence, the options and events, and the failure points you should check before go-live.
Prerequisites before embedding a self-hosted Jitsi Meet
The embed is only as reliable as the Jitsi Meet deployment behind it. Confirm the server components, host operating system, network ports and certificate first, then settle how your portal is allowed to load the meeting frame. Each card below is a check to complete before writing any embed code.
Working Jitsi Meet components
A Jitsi Meet deployment is a web server serving the web app, the Prosody XMPP server, Jicofo (the conference focus) and one or more Jitsi Videobridge media routers. The IFrame API loads its script from your domain, so the web server must serve the app correctly before anything else works. Test a direct meeting in a browser on your own domain, with two participants, before you add the portal. Confirm which team owns each component and how it is upgraded.
Debian/Ubuntu quick startHost OS and Java baseline
For package installs, the Jitsi Debian/Ubuntu quick start supports Debian 12 (Bookworm) or newer and Ubuntu 24.04 or newer, and requires OpenJDK 17. Check these versions against the current quick start before you provision machines, because the baseline can change between releases. Plan for the same baseline on any staging environment, so the embed is tested on the platform you will run. Mismatched Java or OS versions are a common cause of installs that appear to work but fail under load.
Quick start requirementsFirewall ports for media and web
Open 80/TCP and 443/TCP for the web app and secure connections, and 10000/UDP for media between participants and the videobridge. The quick start also lists 5349/TCP for TCP fallback and 3478/UDP for STUN as optional. Confirm that your portal's users can reach these ports from their networks, not only from your office. Blocked UDP is the most common reason an embedded call connects but carries no audio or video.
HTTPS with a proper certificate
Jitsi needs HTTPS with a certificate issued for your domain from a trusted authority for audio and video to work. The Jitsi handbook warns that self-signed certificates cause problems, especially with mobile clients. Your portal page must also be served over HTTPS, or browsers will block the embedded frame and its media. Confirm the certificate covers the exact hostname the IFrame API will use, and set a renewal process before go-live.
Quick start guidePortal origin and framing rules
The portal's origin, meaning its scheme, hostname and port, must be listed wherever your Jitsi host allows embedding, and your Content Security Policy must allow frames and scripts from the Jitsi domain. Check whether your portal sends frame-ancestors or X-Frame-Options headers that block the Jitsi page. Test the embed from every origin that will host it, including staging and any partner portals. Browsers that block a frame will show an empty box, so test in the same browsers your users run.
Domain and certificate ownership
Name one owner for the Jitsi domain, its DNS records and its certificate, separate from the team that builds the portal. Renewal failures and DNS changes are the most likely causes of a sudden outage in an embedded meeting, and they affect every portal that loads the frame. Record who can change the domain, where the certificate is stored, and how a renewal is verified. Agree this ownership in writing before the embed is linked to production traffic.
Configuration sequence for the IFrame API embed
The sequence takes a self-hosted Jitsi Meet from a working standalone instance to a portal page that embeds meetings through the IFrame API, with a check at each stage so failures are found before users see them. Each step names who does the work and what proves it is finished.
Confirm the self-hosted instance loads on its own domain
Before touching the portal, the platform team opens the Jitsi Meet web interface at your own domain in a browser and confirms it loads over HTTPS with a certificate issued for that domain. The Jitsi handbook says a proper domain certificate is necessary for working audio and video, and self-signed certificates cause problems, especially with mobile clients, so a certificate warning is a stop condition. Done means a test room opens and a second participant can join with audio and video working.
Verify external_api.js is served
The platform team requests https://<your-domain>/external_api.js directly and confirms the server returns HTTP 200 with JavaScript content. The IFrame API is loaded from this path on a self-hosted deployment, so the portal depends on it. If the request fails, check the web server configuration that serves the web app, and confirm that the portal's own content security policy allows scripts from your Jitsi domain. Done means the script returns HTTP 200 from the same domain that serves the meeting interface.
Add the script to the portal page
A front-end developer adds a script tag pointing to external_api.js on your Jitsi domain to the portal page or template that will host meetings. Load it on the pages that need it rather than site-wide if your portal has many pages. Confirm in the browser console that the JitsiMeetExternalAPI constructor is defined after the page loads. Done means the constructor is available on the page without errors.
Create the JitsiMeetExternalAPI object
The developer instantiates JitsiMeetExternalAPI with your domain as the first argument and an options object as the second. The options include a room name and a parent node, which is the page element that will hold the meeting frame. Room names should be generated or validated by your portal, not typed by users, so meeting links follow your naming rules. Done means a meeting frame appears inside the parent element and the room loads.
Set display name and embedding options
The developer sets the participant display name from the signed-in user's profile, along with any interface and configuration overrides the portal needs. Confirm each option against the IFrame API reference for your Jitsi version, since option names are version dependent. Test with a signed-in user and a guest so both paths produce the expected name. Done means the display name appears in the meeting and the chosen options take effect.
Wire the documented event listeners
The developer attaches the event listeners the handbook documents, such as handlers for joining, leaving and hang-up events, so the portal can respond when a participant enters or exits a meeting. Add cleanup so the API object is disposed when the user navigates away, which prevents duplicate frames. Done means each listener fires in a test session and the portal page does not leak frames after leaving.
Test a room from desktop and mobile browsers
Testing staff open the embedded page in a desktop browser and on a mobile browser, join the same test room from both, and check audio, video, screen sharing and the event handlers. The Jitsi handbook says the IFrame API works on mobile browsers the same way as on desktop, but your own test should confirm it on the devices your users carry. For React applications, the handbook points to the Jitsi React SDK instead of the raw IFrame API. Done means a desktop and a mobile participant join the same room with working media.
What changes compared with embedding meet.jit.si
Embedding meet.jit.si usually means pointing an iframe or script at the public host and accepting its defaults. On a self-hosted deployment, the domain and script source become your own. The IFrame API is loaded from your server at https://<your-domain>/external_api.js and started with a JitsiMeetExternalAPI(domain, options) object, so the domain value in your code must match the host that serves your Jitsi Meet web app. Nothing about the public instance carries over automatically.
- Domain and script source: Replace every reference to meet.jit.si with your own hostname, including the external_api.js path and the domain argument.
- Options must match your deployment: Room configuration, interface settings and authentication parameters are only meaningful if your server accepts them. Test each option against your own build.
- No public defaults: Do not assume features, branding or prejoin behavior from the public instance are present on your server.
- Mobile behavior: The handbook says the IFrame API behaves the same on mobile browsers as on desktop, and it points React applications to the React SDK instead.
- Mobile app deep links: Meetings on a custom server can be opened in the Jitsi Meet mobile app through the
org.jitsi.meetURL scheme on iOS or an Android intent URL.
Before release, confirm the embed loads, joins a test room and works on the browsers and devices your users run.
On meet.jit.si, the operator handles TLS, capacity, upgrades and availability. Self-hosting moves all of that to your team. Jitsi Meet is an Apache 2.0 open source project, and meet.jit.si is the free public instance. If you want an 8x8-run service instead of running servers, JaaS (Jitsi as a Service) is the alternative, and it is a different commercial arrangement from self-hosting.
- TLS certificates: The handbook says HTTPS with a proper domain certificate is necessary for working audio and video, and self-signed certificates cause problems, especially on mobile clients.
- Media ports: Your network must allow the ports in the quick start, including 10000/UDP for media, so embedded meetings connect from users outside your LAN.
- Capacity and scaling: You size the central server and videobridges, and add bridges as usage grows, following the scalable setup guide.
- Upgrades: You track stable releases and apply them on your schedule, which the Docker and package upgrade paths describe.
- Operations: Monitoring, backups and incident response for the stack become your responsibility.
Decide early whether you will run this yourself or buy JaaS, because that choice changes who carries the on-call and patching work.
Embedding changes who can open and join rooms. On the public instance, anyone with a room name can usually enter a meeting, and you have little control over the server. On your own deployment, room creation, moderator rights and guest access follow the authentication method you configure. The IFrame API does not decide access on its own, so a review should trace each embedded room back to the server configuration that governs it.
- Access depends on authentication: Token authentication, internal accounts, LDAP and Matrix verification each produce a different access model, covered in the authentication section.
- Deprecated methods: The handbook marks the secure domain username and password method as deprecated for new installations and recommends JWT tokens with a separate anonymous domain for guests.
- Encryption scope: Transport between participants is protected with DTLS-SRTP, and the videobridge decrypts packets in memory while routing and does not store them. Optional end-to-end encryption covers audio, video and screen sharing only, not chat or polls, and it depends on supported browsers or the Electron client.
- Embedding trust boundary: The host page that embeds the iframe can pass options and identity data, so confirm who controls that page and what it sends.
- Evidence: Ask for the authentication configuration, TLS setup and encryption scope in writing before approving use.
Check the authentication section before signing off on who can enter a room.
How room creation and guest access interact with the embed
Embedding Jitsi Meet does not, by itself, control who can open a room or who gets moderator rights. The IFrame API only places a meeting inside your page. Whether a visitor can create a room, join as a guest or act as host is decided by the authentication setup of the self-hosted server, so that decision has to be made before the portal goes live. The Jitsi Docker guide lists the options configured through the .env file: internal XMPP accounts, JWT tokens, LDAP, Matrix user verification and a hybrid Matrix plus JWT mode. Each one answers the question of who may create a room in a different way, and the choice shapes what your portal has to send.
The Jitsi handbook recommends JWT token authentication for most integrations, paired with a separate anonymous domain for guests. Under that model, your portal signs a token that carries the user's identity and room permissions, and the server accepts only tokens it can verify. Guests join through the anonymous domain without a token, which keeps them away from the moderator path. The handbook marks the older secure domain method, which relied on username and password room creation, as deprecated for new installations, so it should not be the starting point for a new embed. Confirm the exact token claims, signing settings and tenant or audience values in the token authentication guide before writing the portal side, since a mismatch usually shows up as a rejected join rather than a clear error.
On the portal side, identity reaches Jitsi through the token or through options passed to JitsiMeetExternalAPI, so the portal team owns the mapping from its own session to the room and role. Decide which roles the portal can assign, how a host is identified, and what happens when a session expires during a call. Ask whoever will own the token signing key how it is stored and rotated, because anyone holding it can mint moderator tokens.
Portal fields mapped to Jitsi meeting options
This table maps what your portal knows about a user and booking to what the IFrame embed receives, including the JWT claims used for token authentication. Read each row as a handoff: the portal supplies the value, Jitsi consumes it, and a named team owns the result. Confirm every field name against the Jitsi handbook for the version you deploy before building the integration.
| Portal data | Jitsi field or claim (confirm in handbook) | Where it is set | Who owns it |
|---|---|---|---|
| User display name | displayName in the IFrame options or the name claim in the JWT (confirm names) | Portal code that builds the embed or signs the token | Application team |
| User email | email claim in the JWT or the email setting in the IFrame configuration (confirm names) | Portal session data passed to the token signer | Application team with privacy sign-off |
| Moderator or guest role | moderator claim in the JWT context (confirm claim structure) | JWT signing service in the portal backend, never in the browser | Identity or security team |
| Room name from booking or ticket | roomName option in the IFrame options and the room segment of the token (confirm) | Booking or ticket record mapped to a generated, unguessable room identifier | Application team |
| Parent DOM node | parentNode option pointing to a container element on the portal page (confirm) | Portal front-end template where the iframe should render | Front-end team |
| Token signing key and audience | Shared secret or key pair, plus the app ID and audience values configured in Prosody (confirm) | Server-side configuration, stored in a secrets manager | Platform or security team |
| Token expiry | exp claim in the JWT (confirm the accepted format and maximum lifetime) | Portal backend when the token is issued | Application team |
| Guest access path | Anonymous domain or a guest token without moderator rights (confirm domain settings) | Separate domain or token configuration on the Jitsi server | Platform team |
Security settings for the embedded meeting
An embedded Jitsi Meet inherits the security of the page that hosts it and the rules that govern who can open a room. The cards below cover the settings to decide before the first portal user joins, from transport and framing to tokens, room names and what end-to-end encryption does and does not cover.
Serve the meeting over HTTPS only
Load external_api.js and the meeting itself over HTTPS with a certificate issued for your domain. The Jitsi handbook says a proper domain certificate is necessary for working audio and video and warns that self-signed certificates cause problems, especially on mobile clients. Check that your portal page also loads over HTTPS, since a mixed-content page can block the embed.
Restrict framing to your portal origin
Decide which origins may embed the meeting and configure your web server and portal so that only your portal origin can frame the Jitsi page. Confirm the exact Content-Security-Policy frame-ancestors and X-Frame-Options behavior with your web server configuration, and test it from an unlisted origin before go-live. Treat any other origin as untrusted.
Sign room access with JWT tokens
Use JWT token authentication so that only your application can issue room credentials. Keep the signing secret in your secrets store, not in the page source, and set a short token expiry so that a copied link stops working quickly. The handbook recommends token authentication over the older secure domain method, which it marks as deprecated for new installations.
Token authentication docsMake room names hard to guess
Generate room names from a long random value on your server instead of accepting names like board-meeting from users. Predictable names let outsiders join rooms they were never invited to, even on an authenticated domain if guest access is enabled. Pair random names with a separate anonymous domain for guests so that unauthenticated joins never reach rooms that moderators own.
Separate guests from moderators
Give moderators tokens that carry the moderator claim and send guests through the anonymous domain without it. Confirm that your portal never hands a guest a token with moderator rights, and decide whether the room waits for a moderator to arrive before guests join. Test both paths with a guest account and a moderator account before go-live.
Understand the end-to-end encryption limits
End-to-end encryption in Jitsi Meet covers audio, video and screen sharing only, in Chromium 83+ browsers and the Jitsi Electron client. It does not cover chat or polls. Ask your compliance team whether that scope is acceptable before you promise confidentiality to users, and confirm which browsers your users run.
Jitsi security pageKnow what the videobridge can read
Media travels between each participant and the videobridge encrypted with DTLS-SRTP. Per jitsi.org, the videobridge decrypts packets in memory while routing them and does not store them. That protects the network path but not the server operator, so document who runs the bridge and who has host access to it in your infrastructure.
How to test the embed before users see it
Test the embed as a set of user paths, not as a single page load. Run each check below in your own environment, on your own domain, and record the result, the browser or device, the Jitsi Meet version you deployed and the date. Start with joins from desktop and mobile browsers: open the portal page that calls JitsiMeetExternalAPI(domain, options) on a current desktop browser, then on a phone browser over your production network, not only on the office Wi-Fi. The handbook notes the IFrame API behaves on mobile browsers as it does on desktop, so a difference you see is a finding to investigate, not an expected quirk.
Next, test roles and access. Join as a guest and as a moderator, and confirm that the room opens only when the token your portal issues is valid. Try an expired token, a token signed with the wrong secret, and a token for a different room, and confirm each is refused. Then bring in two or more participants on separate devices and networks to confirm that audio and video flow between them and that the moderator controls behave as your design expects. Also confirm the certificate chain works on mobile clients: the handbook warns that self-signed certificates cause problems, especially on mobile, so test with a phone that has no custom root certificates installed.
Finally, check the portal itself. Review the Content Security Policy so that your frame-src and script-src directives allow your Jitsi domain and external_api.js loads, and confirm the iframe carries the camera and microphone permissions the meeting needs, typically through the allow attribute. Ask the team who owns the portal headers and who signs off the test record before release. Keep the recorded results with the deployment change record, so a later upgrade or certificate renewal can be retested against the same checklist.
Embed failures, causes and fixes
This table pairs common embedding symptoms with their likely causes and fixes for a self-hosted Jitsi Meet. Read each row against the symptom you see in your portal, then check the fix against the handbook for the Jitsi release you run, because option names and defaults change between releases.
| Symptom | Likely cause | Fix |
|---|---|---|
| Script does not load | The page loads external_api.js from the wrong domain, or the file is missing because the Jitsi web app is not served on that host | Confirm the domain in the script tag matches your Jitsi Meet host and that returns the file in a browser. Correct the domain before changing anything else. |
| Blank iframe where the meeting should appear | The Jitsi server sends response headers or a Content Security Policy that block framing from your portal's origin | Allow your portal's origin to frame the Jitsi host in the web server or proxy configuration, and add your portal to the CSP frame-ancestors or frame-src directives. Check the browser console for the blocked header or directive. |
| No audio or video on mobile | The Jitsi host uses a self-signed or untrusted certificate, which mobile browsers and apps reject | Install a certificate from a trusted authority for your Jitsi domain. The Jitsi handbook says HTTPS with a proper domain certificate is necessary for working audio and video. |
| Guests cannot join or are blocked | Token authentication is enforced but guest links lack a valid token, or the anonymous domain is not configured for guest access | Review the token settings and the anonymous domain configuration in the Jitsi handbook for your release. Test a guest join and a token join separately to see which path fails. |
| Options in the embed code are ignored after an upgrade | Option names or their location changed in the newer release, so the older names no longer take effect | Compare your options object with the IFrame API documentation for the release you now run. Confirm each option name in the handbook before retesting in a staging portal. |
How the portal, IFrame API and self-hosted Jitsi fit together
The diagram starts in the portal page, which loads external_api.js from the self-hosted Jitsi domain and calls JitsiMeetExternalAPI to create the iframe. The browser then loads the Jitsi web app from the web server, while the portal backend issues the token used to join. Check that the token is minted server side and that the Jitsi domain is the only origin the portal trusts for the frame.
Portal, IFrame API and self-hosted Jitsi components, with the trust boundary between origins.
Embedding Jitsi Meet questions buyers ask
How much effort does embedding Jitsi Meet in a portal take?
Effort depends mostly on how many portals embed the meeting, how users sign in, and whether the embed must work on phones. A single portal with an existing sign-in and a plain script embed is a small, contained task. Each added portal, a new identity flow, or a React front end adds design, testing and review work. Ask any partner for a fixed-scope quote that lists each portal, the authentication path, the browsers and devices covered, and the handover tests. DeployOpen does not publish prices, and quotes follow the written scope.
What makes the embed work harder over time?
Four factors drive the ongoing effort most:
- The number of portals or applications that load
external_api.jsfrom your server. - The authentication choice, since token-based room access needs its own configuration and testing.
- Mobile support, because the IFrame API behaves on mobile browsers much as it does on desktop, but users also open meetings in the Jitsi Meet app.
- The upgrade cadence of your Jitsi Meet server, which can change the embedded behavior and needs regression testing in each portal.
How long does an embedding project usually take?
Duration scales with scope rather than with the embed call itself, which is a few lines of code. A project with one portal, one sign-in method and a tested rollout is short. Projects that add several portals, token authentication, mobile testing or a React application take longer because each adds design and verification steps. No general duration applies, so ask for a timeline in the written scope that matches your number of portals and sign-in paths.
What must our team provide before the embed starts?
Plan to provide these items:
- A domain for the self-hosted Jitsi Meet server, with a valid certificate for that domain. The Jitsi handbook says HTTPS with a proper certificate is necessary for working audio and video, and self-signed certificates cause problems, especially on mobile.
- Access to the portals that will host the embed, including a test environment and deployment rights.
- The identity source the portal uses, and the claims or user details needed if room access is tied to sign-in.
- Named contacts who approve the design, the browsers and devices to support, and the acceptance tests.
Can our internal team embed Jitsi Meet without outside help?
Yes, a team with web development experience can add the IFrame API to a plain page, because the handbook documents the JitsiMeetExternalAPI(domain, options) call and the script loads from your own server. The harder parts are a stable Jitsi Meet deployment, valid certificates, token-based access control, and testing across browsers and phones. Teams that lack this experience often ask a partner to review the design and test the result, which keeps the internal team in charge of its own portal.
Does the IFrame API differ from embedding meet.jit.si?
Yes, the main difference is that your own domain replaces meet.jit.si. The script loads from https://<your-domain>/external_api.js, so your server, certificate and access rules apply. The public instance also controls room creation and branding for you, while a self-hosted deployment means you own those settings, updates and availability. Confirm which options your version supports before you rely on them.
What does a fixed-scope quote for this work cover?
A fixed-scope quote lists the work agreed in writing before it starts. For an embedding project, expect it to name the portals in scope, the authentication method, the React or plain script approach, the mobile and browser coverage, the test plan, the handover documents and the dates for each stage. It should also state what is outside scope, such as Jitsi Meet server deployment or future upgrades, and whether ongoing support is a separate retainer. DeployOpen does not publish prices, and each quote follows the written scope.
How DeployOpen scopes and delivers the Jitsi embed
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure. For a Jitsi Meet embed, that means agreeing in writing which pages host the meeting, how identity reaches the room, and how the IFrame API is wired into your application before any build work starts.
How we scope
- Written scope lists each host page or application that embeds the meeting and the user journeys it must support.
- Scope records whether the embed uses the IFrame API, the React SDK or both, with the reasons for that choice.
- Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts.
How we build
- Deployment of your self-hosted Jitsi Meet is configured so
external_api.jsloads from your own domain and not from meet.jit.si. - Embed code creates JitsiMeetExternalAPI objects with room, parent node and option settings set for your portal.
- Mobile browser behavior is tested alongside desktop, and mobile app handoff via org.jitsi.meet or the Android intent is verified.
How we hand over
- Handover includes the embed source, configuration notes and a record of every domain, certificate and option the integration depends on.
- Documentation explains how the embed changes when the Jitsi Meet deployment is upgraded or moved to a new domain.
- Your team receives test cases covering join, leave, moderator actions and error states inside the embedded frame.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retainer scope can cover re-testing the embed after Jitsi Meet releases and changes to your host application.
- Confirm with DeployOpen which environment access, test accounts and change windows your team must provide before the build starts.

