Screen Share not work in rocketchat with Jitsi(in chat/or app), but work in web with windowed jitsi

Description

hello. I installed rocketcat on my server. Configured according to the instructions. Configured my Jitsi server. I registered all the settings in the Rocket Chat Admin panel. But I’m having problems with this tandem. In particular: When a video call is made from a chat window (1-1 or by a team of people), the “screen sharing” does not work! The same thing is observed in Rocketcat applications on mobile platforms. The “Screen sharing” works only if you configure Rocket Chat to display the video conference “in a separate window”. Then a separate jitsi browser window opens on the PC and the “Screen sharing” works, and all participants see it. But from a mobile device, “Screen sharing” does not work from the RocketChat application - it only works from the browser. How to fix it?

Server Setup Information

  • Version of Rocket.Chat Server: 4.1.2
  • Operating System:
  • Deployment Method:
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version: v12.18.4
  • MongoDB Version: 4.4.10 / wiredTiger
  • Proxy:
  • Firewalls involved:

Any additional Information

<standart instance + jitsi>

Hi!

In order to help, we’ll need to reproduce this on latest version, on a fresh install.

Also, you will need to provide those steps, so we can reproduce this behavior and hand it over to our team, IF when can reproduce and make sure this is a bug, not a configuration or deployment issue.

Facing similar issue with sharing the screen using Jitsi from windows desktop app[latest].

Rocket Chat Server Version: 5.4.2
Operating System: Ubuntu 22.04.1 LTS (Jammy Jellyfish)
Deployment Method: Snap

Seems this kind of pop-up should show-up for the first time when sharing the screen. But it doesn’t show up.
image

Same issue here:

Rocketchat Version: 5.4.3
Jitsi Version: 2.0.4

Opening Meeting in Browser works like a charm, but opening Meeting within Rocketchat leads to not loading Screens. From Dev Tools we can find missing Dependency obtainDesktopStreams :

2023-02-24T06:36:16.932Z [features/desktop-picker] Called JitsiMeetElectron.obtainDesktopStreams but it is not defined

Logger.js:154 2023-02-24T06:36:16.933Z [JitsiMeetJS.ts] <Object.getGlobalOnErrorHandler>: UnhandledError: Called JitsiMeetElectron.obtainDesktopStreams but it is not defined Script: null Line: null Column: null StackTrace: Error: Called JitsiMeetElectron.obtainDesktopStreams but it is not defined
at /libs/app.bundle.min.js?v=6943:178:638493
at new Promise ()
at e.length.thumbnailSize (/libs/app.bundle.min.js?v=6943:178:638280)
at Wce._updateSources (/libs/app.bundle.min.js?v=6943:178:638735)

Uncaught (in promise) Error: Called JitsiMeetElectron.obtainDesktopStreams but it is not defined
at functions.ts:31:35
at new Promise ()
at e.length.thumbnailSize (functions.ts:19:12)
at Wce._updateSources (DesktopPicker.tsx:280:13)

Hi, just to make it clear.

You are facing problems when you want to share the screen in a Jitsi using Rocket.Chat App.

So when you use the browser, it works, but when using the App, it will not allow you to share the screen, right?

I tried reproducing this on my Linux box, at our http://open.rocket.chat, and indeed it will only work after requesting the permission.

Just adding my voice to this as i seem to be having the same issue with the same error message.
“JitsiMeetElectron.obtainDesktopStreams but it is not defined”

From browser the desktop sharing works fine via Jitsi, but from within the Windows(10 or 11) Desktop application ver 3.8.16 it will just hang their repeating the error until the sharing dialog is closed.

(You can work around this by in inside the rocket.chat program, disabling the option to ‘open video chat using application window’)

disabling the option to ‘open video chat using application window’ is not a perfect workaround as every user needs to set it on its own but thanks for the hint.

Hi! Thanks for the reports.

we have this kind of report from other users, and our team will take a look on this.

Thanks!!

Update: a new version of the Desktop App was released with a fix for this issue:

Thanks for helping us!!

To fix the issue with screen sharing in Rocket Chat when using the Jitsi integration, there are a few potential solutions to try. First, check that the Jitsi server is configured correctly and that the necessary modules for screen sharing are enabled. Double-check the settings in the Rocket Chat admin panel to ensure they are accurate and up-to-date. If the issue persists, try updating Rocket Chat to the latest version or using a different browser or device. If none of these solutions work, contact Rocket Chat support for further assistance.

I can confirm that the issue does not occur anymore after updating dektop version.
Rocketchat is now asking for permission of capturing screen.

Thanks for your fast fix!

1 Like