22 Commits
Author SHA1 Message Date
Jaya Allamsetty 012104b8fb refactor(web-hid): remove the WebHID integration 2026-10-28 09:39:49 -04:00
Hristo Terezov 5415d9b71e build(typescript): enable isolatedModules for the native project
The mobile app is compiled by Metro with Babel, which strips types one
file at a time and never sees the rest of the program. That is the
situation isolatedModules is designed to guard: it makes `tsc:native`
reject constructs that only work with whole-program compilation, such
as referencing an ambient const enum, instead of letting them fail at
runtime. The project already passes with it enabled, so this matches
the web tsconfig and makes the guarantee explicit for both platforms.
2026-09-23 19:04:36 -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
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 5a11cd8801 feat(util): Lazy load the insecure room name checker. 2026-04-01 15:08:18 -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
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é 5bb3ba71d0 chore(helpers) drop custom createDeferred() for Promise.withResolvers() 2025-01-10 20:09:11 +01:00
Hristo Terezov d9a0423687 fix(KbShortcuts): remove listeners on leave.
Currently we add keyboard listeners on conference join but never remove them. In the cases where we have multiple join events during a call (visitors promotion, breakout rooms), there are multiple keyboard handlers added and the shortcuts are executed multiple times on a single press.
2024-10-05 08:43:51 -05:00
Robert Pintilii ae0669fa07 ref(TS) Convert always-on-top to TS (#13332) 2023-05-12 10:28:50 +03:00
Robert Pintilii 2af9dc88e6 ref|(TS) Convert some native components to TS (#13239) 2023-04-24 14:09:50 +03:00
Robert Pintilii bf1dde7cd1 ref(TS) Convert some files to TS (#13223) 2023-04-20 12:06:45 +03:00
Robert Pintilii c1f1c0d341 ref(TS) Convert some components to TS (#13179) 2023-04-07 13:59:25 +03:00
Robert Pintilii 46c91b7566 ref(TS) Convert some components to TS (#13137)
*Remove unnecessary @ts-ignores
2023-03-30 15:30:15 +03:00
Robert Pintilii 00780929e5 feat(tooltip) Create and move to our component (#13061)
Create Tooltip component
Fix Popover positioning calculations
Add margins to popover
Remove @atlaskit/tooltip
Update all components to use the new Tooltip component

Added tooltip actions and reducers for the following functionality: when a user hovers over an element is sees the tooltip for that element and then hovers another element that has a tooltip, instead of using the delay and animations we just unmount the current tooltip and mount the next one immediately
2023-03-17 12:23:51 +02:00
Duduman Bogdan Vlad 8d7f46024b feat(webhid) - add integration webhid telephony device (#12904) 2023-02-24 16:37:30 +02:00
Mihaela Dumitru 84221c5c13 feat(dialout) check appId for permission to call outbound destination (#12871) 2023-02-07 16:18:27 +02:00
Robert Pintilii 643cc2db81 ref(TS) Convert some features to TS (#12591) 2022-11-23 11:12:26 +02:00
Saúl Ibarra Corretgé 7cd39b7983 feat(ts) make tsc happy 2022-11-02 09:03:14 +01:00
2596c463fe fix(ts) make tsc (almost) not cry on native
Co-authored-by: Calinteodor <[email protected]>
Co-authored-by: Robert Pintilii <[email protected]>
2022-11-01 10:07:10 +01:00
Robert Pintilii 6ab996568b ref(TS, rn) Fix some TS errors on tsconfig.native (#12432) 2022-10-21 14:09:15 +03: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