159 Commits
Author SHA1 Message Date
Jaya Allamsetty d613213aab feat(voice-agents): voice agents in meetings, provisioned through prosody (#17869)
mod_voice_agent_component provisions agents (invite/get/list/dismiss, relay-reported lifecycle, signed webhooks, an event stream); the client shows them as participants with an AI badge, speaking indicators and opt-in consent.
Agents and E2EE exclude each other; lib-jitsi-meet goes to v2233.0.0+7634be62.
2026-10-21 18:21:34 -04:00
Hristo Terezov 763da84d86 build: type check once with tsc instead of inside every webpack bundle
The production build compiles ten webpack bundles, and ts-loader with
type checking on built a full TypeScript program of the whole
react/features tree for each of them, then checked every file, ten
times over, on webpack's main thread. That was the bulk of the build's
memory (the peak heap sat right under the cap and the branding job
started dying with "JavaScript heap out of memory") and about half of
its time.

Run the check once with `tsc --noEmit` as a prerequisite of `compile`,
where it finishes in a few seconds in its own process and fails the
build before any bundling starts, and let ts-loader only strip types.
Coverage is unchanged: `tsc` checks the same tsconfig include that
ts-loader did, and every shipping path (CI, the Debian package, the
branding build) goes through `make`. `make dev` already skipped type
checking and is unaffected.
2026-09-23 19:04:36 -05:00
Hristo Terezov 413e4321dd fix(preload): fail quietly on synchronous errors and document the no-polyfill rule
The preload bundle ships without core-js polyfills, so a built-in missing in
an old browser would throw synchronously at the top of the script and show up
as an uncaught error, even though the app would carry on fine without the
preload. Guard the synchronous part the same way the asynchronous parts are
already guarded, and state in both the entry and the webpack rule that the
preload and the modules it imports must stick to built-ins available on the
supported browser floor, since nothing enforces that automatically.
2026-09-21 11:51:45 -05:00
Hristo Terezov 0447c46e57 feat(preload): fetch config.js and dynamic branding before the app bundle
Everything the app requests when it boots waits for the multi-megabyte app
bundle to download and parse first: config.js when it is not inlined in the
page, then the dynamic branding data, then the custom icons. On branded
deployments that chain is what keeps the default theme on screen for a while
before the customer's one appears.

Add a small script, loaded right after config.js and before lib-jitsi-meet,
that starts those requests immediately and publishes them through the
JitsiMeetPreload contract, so by the time the app boots the responses are
usually already there. The script is optional: the app works without it, and
any failure in it just means the app requests the resource itself.

Babel's core-js polyfill injection is disabled for this entry only; the app
already requires modern browsers, and the polyfills made a 7 KiB script 51 KiB.
2026-09-21 11:51:45 -05:00
Jonathan Lennox a19f89487f feat(tests): port malleus, the load tester, from jitsi-meet-torture (#17846)
* refactor(tests): share the grid setup and room name assembly

Factor the Selenium Grid handling out of wdio.grid.conf.ts into helpers/grid.ts so
that the Firefox grid config and other configs can reuse it (the Firefox one was
missing the remote fake-audio path rewrite), split generateRoomName into a
buildRoomName helper that applies the prefix/suffix convention to any base name,
and export the shared Chrome settings from wdio.conf.ts.

* feat(tests): let Participant drive any session and the load-test client

Participant names are no longer limited to p1..p6 and a browser session can be
injected instead of being looked up on the multiremote object, so participants can
be created for sessions (or tabs) outside the fixed multiremote setup. A loadTest
flag skips the UI-only parts of joining and hanging up (prejoin, styling, dialog
checks, toolbar hangup) for the lib-jitsi-meet only load-test client, which exposes
the conference as APP.room. Existing tests are unaffected.

* feat(load-test): bring the load-test client into the repository

The lib-jitsi-meet only client used for load testing lived in
jitsi/jitsi-meet-load-test since it was split out in 0b57bcb20. Port it back as
TypeScript, reusing the URL helpers it had copied, so the load tester (malleus)
can build and inject it into the browsers it drives. It is a separate webpack
entry (`npm run build:load-test`, config name load-test) written to build/ and is
deliberately not deployed: it is not in the Makefile or the Debian install.

Changes from the original: the room can be given as a room hash parameter and
protocol-relative XMPP URLs are absolutized (the page runs from file://), the
bare `room` references in getConnectionState and the stage view participant
selection are fixed, and jQuery/lodash are dropped in favor of DOM APIs.

* feat(tests): port malleus, the load tester, from jitsi-meet-torture

Malleus Jitsificus fills conferences on a deployment with browser-driven
participants and reports whether they all made it. It reuses the WebdriverIO suite
(Chrome setup, grid support, Participant, browser logs) but runs through its own
wdio config, which generates one browser session per participant (or per group of
tabs) from the MALLEUS_* settings, and a single spec kept out of specs/.

Ported: conferences x participants with video/audio sender counts, staggered
joins, duration, regions, extra URL params, stage view, P2P toggle, JWT; load-test
mode with several clients per tab and several tabs per browser; lite mode; P.59
speaker switching; bridge disruption via a site-specific blip script with health
checks; requesting typed grid nodes (nodename:applicationName) for senders and
receivers. The script that re-typed Grid 3 nodes over SSH is not carried over: it
does not apply to a Selenium 4 grid, where the node stereotypes declare the types.

Differences from the Java version: the entry point is a Node CLI
(`npm run malleus -- --flag=value`, scripts/malleus.sh forwards to it, the
positional form is gone); the load-test client is uploaded into the browsers
together with resources/loadTest.html rather than served by the deployment; room
names are prefix, conference index, suffix, reusing ROOM_NAME_SUFFIX (which may be
a comma-separated list spread over the conferences) so a shard name at the end of
the name keeps working; tabs per browser require load-test mode.

* fix(load-test): match jitsi-meet's current receiver constraints

The client's emulation of the receiver video constraints had drifted from what
jitsi-meet sends (react/features/video-quality/subscriber.ts):

- It set one maxHeight in defaultConstraints, i.e. for every source in the
  conference, where jitsi-meet sets defaultConstraints to 0 and constrains only
  the sources visible in the filmstrip (one page of tiles, 25 by default). In
  large conferences that made a load-test receiver ask for every video.
- The tile quality came from a participant-count table (720/360/180); jitsi-meet
  derives it from the tile height for the window size, capped at 360 beyond
  maxFullResolutionParticipants. Port the tile grid selection
  (calculateResponsiveTileViewDimensions) for a configurable virtual window,
  1280x1024 by default like the test suite's Chrome.
- Stage view asked 2160 from everyone; it now asks the large-video quality for
  the on-stage source and 180 for the first filmstrip page, like jitsi-meet.
- lastN still applied lastNLimits, which jitsi-meet dropped in 6efa4f247; send
  startLastN ?? channelLastN ?? -1 instead.
- Stage view is also used below 3 participants, as in jitsi-meet, the on-stage
  participant is re-elected when they leave, and no constraints are sent while
  leaving.
2026-09-18 10:58:08 -04:00
Bandhan Majumder 52d01b705f feat: iframe document pip on tab switch (#17587)
* fix: iframe pip with redux as source of truth

* fix: hardcoded version

* fix: broken rebase

* updated changes

* updates

* updates

* config guard

* fix: ci failures

* achitectural update

* updates

* updates

* suggestions
2026-08-20 18:02:12 -05:00
Abhay Madan 722731dcfc feat(multi-screen): shared video as a second-screen source (#17615)
* add a follower mode to the shared-video managers: a follower tracks the
  shared playback state but never acts as the controlling player (even when
  the local participant owns the video), reports no analytics or status
  updates, does not dock the toolbox, does not stop the meeting's shared
  video when its own player errors, and plays no audio (the audio stays
  with the main window's player)
* add a role: 'sharedvideo' source that renders the meeting's shared video
  on the second screen through the same managers, mounted as followers,
  view-only (a local pause there would not be reflected in the meeting and
  would silently desync the window until the owner's next update)
* start a follower from the shared state instead of autoplaying it, so a
  second screen opened while the video is paused does not play on: a paused
  video sends no further status updates, so nothing would correct it
* show a hint when no video is shared, mirroring the whiteboard source, and
  another when a follower player fails, so an error that must not tear down
  the meeting's shared video does not read as an unexplained black screen
* load second-screen windows from a static/secondScreen.html shell page
  instead of about:blank: embeds inside the window need the page to send a
  valid referrer, which about:blank cannot (YouTube fails with error 153)
* bound the wait for that shell page by a timeout and a poll for the window
  being closed, and close the window when it never loads or when its entry
  is removed while it is still opening, so neither case can leave an entry
  with no handle behind, nor a window on the external display that nothing
  is able to close
2026-07-31 16:35:25 +03:00
Jaya Allamsetty 82f408147b feat(virtual-background) Introduces TF.js body seg using WebGPU/WebGL context.
* feat(virtual-background) Adds v2 engine with worker-based inference, insertable streams and device tier detection
 
- VBInferenceWorker: all inference runs in a dedicated Worker thread — MEDIUM/HIGH tiers
  use TF.js body-segmentation on an OffscreenCanvas WebGL/WebGPU context (immune to
  Chrome's tab-visibility GPU throttle); LOW tier uses TFLite model.
- Insertable streams path: MediaStreamTrackProcessor/Generator as the default frame driver;
    captureStream + Worker used as fallback
- DeviceTierDetector
- WebGLCompositor: add Gaussian blur kernel in the shader; remove dead methods and textures
- CPU-side EMA mask smoothing replaces GPU ping-pong temporal blending
- VideoFrame GC fix: stopEffect() cancels the IS reader immediately to flush buffered frames
- Benchmark logging gated on config.virtualBackground.advanced.testMode
* fix(virtual-background): improve edge quality, fix deployment issues and studio light.
* fix(virtual-background): use tier-specific edge thresholds and fix stale config docs.
Introduce per-tier defaults: LOW keeps 0.48, MEDIUM/HIGH use 0.28. Config overrides (edgeLow/edgeHigh) still take precedence.
2026-05-18 13:23:16 -04:00
Hristo Terezov 9cacffe30f chore(deps): upgrade @jitsi/js-utils to 6.3.2
The new release ships its own TypeScript types and a modern `exports`
map, which makes the long-standing `@ts-ignore`/`@ts-expect-error`
suppressions on `@jitsi/js-utils` imports unnecessary and lets TS verify
their usage end-to-end.

To pick up the new types correctly:

- Switch `tsconfig.{web,native}.json` to `moduleResolution: "Bundler"`
  so TS honors the package's `exports` field. Legacy `Node` resolution
  ignores `exports` and cannot resolve subpath imports like
  `@jitsi/js-utils/random`.
- Remove the now-unused root-import `@ts-expect-error` directives across
  7 files and the silent `@ts-ignore` directives on 14 subpath imports.
  Drop the paired `lines-around-comment` eslint-disable comments that
  only existed to silence the directive clutter.
- Update `BaseApp._initStorage` with a narrow type assertion (and a
  comment) to acknowledge the RN-polyfill side channel where
  `jitsiLocalStorage.getItem('_initializing')` surfaces an
  AsyncStorage-loading Promise. The new package's types correctly
  describe the standard Web Storage shape (`string | null`); the cast
  preserves the runtime contract on RN.
- Bump the `external_api` bundle size budget from 95 to 100 KiB to
  accommodate the slight per-file TS-compilation overhead in the new
  package layout.
2026-05-12 18:17:41 -05:00
damencho 3f316dde56 fix(webpack-proxy): Fixes make dev. 2026-04-06 09:29:32 -05:00
damencho f132ed6c5c fix: Fixes base for dynamic loaded libs. 2026-04-03 08:37:04 -05:00
Calinteodor 4f06c43eb7 feat(whiteboard): updates dependencies and drop not used features
* feat(whiteboard): remove image from toolbar

* dep(@jitsi/excalidraw): update version

* firebase was already removed from excalidraw so no need to resolve it

* dep(@jitsi/excalidraw): update to 0.18.3 and patch

* feat(whiteboard): disableFileDrop

* dep(@jitsi/excalidraw): update to 0.18.4
2026-04-02 12:23:21 -05:00
damencho 5a11cd8801 feat(util): Lazy load the insecure room name checker. 2026-04-01 15:08:18 -05:00
damencho d11a9daf41 feat(whiteboard): Lazy load the whiteboard dependeny. 2026-04-01 15:08:18 -05:00
Дамян Минков 2d6be4ea27 fix: Fixes excalidraw in the deb package.
* fix: Fixes excalidraw in the deb package.

* squash: Drops unused files and moves the fonts to the excalidraw prod folder.

* squash: Rename prod folder to excalidraw.

* squash: Fix eslint.
2026-03-31 10:31:32 -05:00
CalinteodorandYash 5e58c9b133 fix: migrate to new Excalidraw v0.18.0 - update (#17244)
* Update version, suppress build errors without adding Firebase related dependencies and raise the app bundle limit.

---------

Co-authored-by: Yash <[email protected]>
2026-03-31 12:33:03 +03:00
damencho a80a732ec4 fix(webpack-dev-server-proxy): Allow all hosts.
Avoids errors when accessed via a website (the test-lab).
2026-03-26 14:37:40 -05:00
damencho 86fbf159ec fix(wepback-dep-proxy): Fixes header errors.
webpack-dev-server v5 added a cross-origin-header-check security middleware that unconditionally returns 403 Cross-Origin request blocked for any request with sec-fetch-mode: no-cors + sec-fetch-site: cross-site.
2026-03-11 10:26:58 -05:00
Hristo Terezov d06b847319 feat(pip): Add Picture-in-Picture support for Electron
Implements Picture-in-Picture functionality for the Electron wrapper to maintain video engagement when users are not actively focused on the conference window. This feature addresses the need to keep users visually connected to the conference even when multitasking.

Key features:
- Automatic PiP mode activation and deactivation based on user interaction
- Displays large video participant's stream or renders their avatar on canvas when video unavailable
- Provides audio/video mute controls via MediaSession API directly in PiP window
- Adds API events (_pip-requested) for Electron wrapper integration

Implementation includes new pip feature module with Redux architecture, canvas-based avatar rendering with custom backgrounds support, and integration with existing mute/unmute logic. Depends on jitsi-meet-electron-sdk#479 for proper user gesture handling in Electron.
2025-12-04 16:04:10 -06:00
bgrozev 2b81fa6bd3 config(webpack): Listen on localhost by default. (#16703) 2025-11-25 08:42:19 -06:00
Zaid0412 dbe4e6a784 feat: disable Giphy analytics to prevent beforeunload handlers (#16314) 2025-08-07 16:34:07 +02:00
Aaron van MeertenandДамян Минков 6b5245be44 feat(webpack): rewrite CDN urls when proxying with webpack (#15938)
* feat(webpack): rewrite CDN urls when proxying with webpack

* fix lint

* squash: fix checking for existing file.

---------

Co-authored-by: Дамян Минков <[email protected]>
2025-06-09 13:44:57 -05:00
Saúl Ibarra Corretgé 7f601db349 feat(build,config) disable config whitelist in dev mode
Webpack will replace the code so the added condition because `if (true)`
in dev mode, which helps when one wants to override anything for
testing.
2025-05-22 16:43:31 +02:00
Saúl Ibarra Corretgé 3d4defd799 feat(lint) update to eslint-config-jitsi v6 2025-03-20 17:17:41 +01:00
Saúl Ibarra Corretgé c2488f4071 feat(dev) make webpack-dev-server listen on all interfaces 2025-03-10 15:36:44 +01:00
Saúl Ibarra Corretgé b60210d0ad feat(analytics) drop defunct Google Analytics integration
We haven't used in years. Those who want to use it can still create
their own custom script and include it, since it wasn't even included by
default.
2025-02-03 22:44:12 +01:00
Saúl Ibarra Corretgé f0d2106c1a fix(build) apply @babel/preset-env also to TS files
Without it, we cannot detect what features to polyfill.

Some bundles have seen a size increase, this is due to necessary
polyfills now being included as usage was detected.
2025-02-03 20:51:15 +01:00
Saúl Ibarra Corretgé c27ca779ab feat(build) use core-js to polyfill modern JavaScript features
This should prevent us accidentally breaking compatibility with older
browsers because polyfilling happens automatically based on usage
detection.
2025-02-03 20:51:15 +01:00
Saúl Ibarra Corretgé aedb43ec5b feat(build) drop export-default-from plugin
The proposal never passed stage 1 and was last updated 4 years ago,
which signals it won't make it into the language: https://github.com/tc39/proposal-export-default-from

The alternative is just a couple of characters longer.
2025-02-03 20:51:15 +01:00
Saúl Ibarra Corretgé 0a68eed294 fix(build) don't use babel-loader on node_modules
Libraries should already be in a consumable state. Note how I bumped
rnnoise-wasm to fix an issue with non-standard import syntax.
2025-02-03 20:51:15 +01:00
Andrei Gavrilescu 9c23cc0b70 feat(rnnoise): update rnnoise-wasm version (#15478)
* update rnnoise-wasm version

* update expected worklet size
2025-01-13 14:11:32 +02:00
Дамян Минков b9017176a8 feat(tests): Grid, FF and iframeAPI tests. (#15372)
* fix(tests): Fix include/excludes of tests based on participant count.

* feat(tests): Define context globally.

The context is being created on every new suite in before hook.

* feat(tests): Drop extra char in room name.

* feat(tests): Adds an option to load iframeAPI.

* feat(tests): Adds some ts types.

* fix(tests): Fix iframeAPI helper with events received too early.

* fix(tests): Fix iframeAPI helper detecting own role changed.

* feat(tests): Adds run script to start tests with local dev server.

* feat(tests): Adds participants iframeAPI tests.

* feat(tests): Updates wdio dependencies.

* feat: Adds grid config.

* feat: Simplify iframeAPI.

Drop URL params.

* feat: Adds tenant to iframeAPI.

* feat: Adds firefox target.

Certain tests are disable as not supported on FF. Missing upload file function for iframeAPI helper. Missing option to set audio file as a mic source.

* fix: Fix using tenant from baseUrl.

* feat: Adds audio only tests.

* feat: Adds option to generate tokens for the moderator.

* feat: Adds option to test and webhooks.

* fix: Improve error stack trace on error.

* fix: Address comments.

* fix: Fix test exclusion for FF.

* squash: Revert the strophe change and add a comment.
2024-12-10 11:22:44 -06:00
damencho b303693198 chore(webpack-dev-server): Updates webpack-dev-server to latest. 2024-11-22 12:56:34 -06:00
Gabriel Borlea 11f0ab9226 ref(screenshot-capture): move screenshot processing on a web worker (#14015)
Improvement for the screenshot capture feature by using a web worker to process the differences between the screenshots, and some code adjustments.
2023-11-09 10:01:02 +02:00
Mihaela Dumitru 4461196ba3 feat(compute-pressure) monitor cpu pressure (#13645) 2023-08-03 14:20:35 +03:00
Robert Pintilii 6b28af8329 ref(flow) Remove flow (#13343)
Remove flow-related packages
Remove type annotations from JS files
2023-05-12 16:39:18 +03:00
Robert Pintilii ae0669fa07 ref(TS) Convert always-on-top to TS (#13332) 2023-05-12 10:28:50 +03:00
Saúl Ibarra Corretgé 34b2577b97 chore(cleanup) drop no longer needed AtlasKit supporting code 2023-03-23 12:00:14 +01:00
Дамян Минков 8225f5e363 feat: Drops external connect optimization. (#12958)
* feat: Drops external connect optimization.

A bosh only optimization which is no longer used and does not bring any significant value when measured.

* squash: Updates ljm.
2023-02-24 08:59:00 +01:00
Horatiu Muresan 35ee92869f feat(deeplinking) Refactor deeplinking (#12950)
- redesign deeplinking mobile page, desktop page and dial in number page
- now dial in number page is an entry point in app.bundle.
2023-02-23 17:01:55 +02:00
Saúl Ibarra Corretgé be982ae996 fix(build) use http for GitHub codespaces 2022-12-02 19:05:47 +01:00
Robert Pintilii 7a9f51b01b ref(TS) Convert some features to TS (#12546) 2022-11-11 10:20:33 +02:00
Robert PintiliiandSaúl Ibarra Corretgé 442ae6c3cb chore(TS): Create web tsconfig (#12381)
* fix(ts,connection) avoid mixing web and native code

* chore(ts) split config

The mobile part is still WIP.

* Remove default tsconfig

* Fix ts-loader - use web tsconfig

* Fix tsconfig

Use noEmit only on npm scripts (for type checking), but don't use it in webpack

* Fix

* Fix import

* Fix

Co-authored-by: Saúl Ibarra Corretgé <[email protected]>
2022-10-18 11:21:48 -05:00
Mihaela Dumitru 93406bb12c feat(whiteboard) add initial implementation (#12185) 2022-09-30 17:50:45 +03:00
Saúl Ibarra Corretgé 9bb0decb30 fix(build) speed up webpack dev build by 4x
Skip type checking, only do it in prod builds (the CI will check those).

Main bundle build times:

- Before: 255101ms
- After: 58463ms
2022-09-20 08:40:34 +02:00
Saúl Ibarra Corretgé e18240cfc6 chore(build) rename option for clarity 2022-09-20 08:40:34 +02:00
Robert Pintilii f4b46128bc ref(analytics) Convert to TS (#12099) 2022-09-06 15:51:50 +03:00
Saúl Ibarra Corretgé 7e7107d45a feat(build,ljm) don't expose jquery
lib-jitsi-meet no longer requires it.
2022-09-01 17:13:33 +02:00
Stefan Weil 882d343e8b chore(typos) fix some typos 2022-08-30 16:21:58 +02:00
Andrei Gavrilescu 06491e2406 feat(noise-suppression): Add noise suppression effect. (#11547)
* add denoise effect

* denoise prototype

* improve rnnoise / add comments

* revert some unnecessary changes

* Add noise suppressor worklet

* Send notification on failure

* address code review

* additional comments

* additional comments

* update package-lock

* fix rebase changes

* update rnnoise npm package

* sort lang

* adjust webpack performance hint

* address code review

* address code review

* switch ns files to typescript

* fix null-loader version, lang sort

* fix lint

* missing import

* fix lint / address code review

* use single action for ns state

* move activation to thunk

* increase node heap

* copy noise-suppressor to deploy

* fix ts lint
2022-07-20 15:31:17 +03:00