element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.28k stars 2.02k forks source link

Jitsi widget screensharing on scalar.vector.im does not work in Firefox #12755

Closed pv closed 4 years ago

pv commented 4 years ago

Description

Screensharing does not work in the Jitsi videoconferencing widget, when opened in a Firefox window (https://scalar.vector.im/api/widgets/jitsi.html?...).

This is on Linux (on both X11 and Wayland), Firefox 74.0. The screen sharing does work fine in Firefox on https://meet.jit.si, and only https://scalar.vector.im is having problems. The screen sharing in https://scalar.vector.im/ does work in Chrome (chromium 79.0.3945.130).

EDIT: also tested on Windows, with the same result.

Steps to reproduce

What I expected to happen, is that clicking this button asks for permissions for screen sharing, and if they are given, starts sharing the picture from the desktop to other participants.

In Firefox devtools console, the following messages appear every time the button is clicked:

``` [modules/RTC/RTCUtils.js] : Using the new gUM flow Logger.js:125:17 [modules/RTC/ScreenObtainer.js] : Using getDisplayMedia for screen sharing Logger.js:125:17 [react/features/base/tracks/functions.js] : Failed to create local tracks Array [ "desktop" ] {…} message: "User canceled Chrome's screen sharing prompt" name: "gum.chrome_extension_user_canceled" stack: "a@https://jitsi.riot.im/libs/lib-jitsi-meet.min.js?v=139:6:117805\nobtainScreenFromGetDisplayMedia/<@https://jitsi.riot.im/libs/lib-jitsi-meet.min.js?v=139:6:180571\n" : {…} constructor: function a(e, t, n) stack: "" : Object { … } app.bundle.min.js:35:62066 [JitsiMeetJS.js] : UnhandledError: null Script: null Line: null Column: null StackTrace: {…} message: "User canceled Chrome's screen sharing prompt" name: "gum.chrome_extension_user_canceled" stack: "a@https://jitsi.riot.im/libs/lib-jitsi-meet.min.js?v=139:6:117805\nobtainScreenFromGetDisplayMedia/<@https://jitsi.riot.im/libs/lib-jitsi-meet.min.js?v=139:6:180571\n" : Object { constructor: a(e, t, n), stack: "" } Logger.js:125:17 uncaught exception: Object XHRPOSThttps://jitsi.riot.im//http-bind?room= [HTTP/1.1 200 OK 10059ms] [modules/RTC/RTCUtils.js] : Using the new gUM flow Logger.js:125:17 [modules/RTC/ScreenObtainer.js] : Using getDisplayMedia for screen sharing Logger.js:125:17 [react/features/base/tracks/functions.js] : Failed to create local tracks Array [ "desktop" ] Object { name: "gum.chrome_extension_user_canceled", message: "User canceled Chrome's screen sharing prompt", stack: "a@https://jitsi.riot.im/libs/lib-jitsi-meet.min.js?v=139:6:117805\nobtainScreenFromGetDisplayMedia/<@https://jitsi.riot.im/libs/lib-jitsi-meet.min.js?v=139:6:180571\n" } app.bundle.min.js:35:62066 [JitsiMeetJS.js] : UnhandledError: null Script: null Line: null Column: null StackTrace: Object { name: "gum.chrome_extension_user_canceled", message: "User canceled Chrome's screen sharing prompt", stack: "a@https://jitsi.riot.im/libs/lib-jitsi-meet.min.js?v=139:6:117805\nobtainScreenFromGetDisplayMedia/<@https://jitsi.riot.im/libs/lib-jitsi-meet.min.js?v=139:6:180571\n" } Logger.js:125:17 uncaught exception: Object XHRPOSThttps://jitsi.riot.im//http-bind?room= [HTTP/1.1 200 OK 10037ms] XHRPOSThttps://jitsi.riot.im//http-bind?room= ```

Version information

  • Platform: desktop
  • Browser: Firefox 74.0
  • OS: Linux (Fedora 31 x86_64) (tested to occur both on X11 and Wayland); also reproducible on Windows.
  • Desktop app version: 1.5.12
ghost commented 4 years ago

Can confirm the same behavior on Arch, using Firefox 74.0 on X11.

jryans commented 4 years ago

This seems related to https://github.com/jitsi/jitsi-meet/pull/5180, so we likely need to wait for a Jitsi release that includes that and upgrade.

turt2live commented 4 years ago

People won't be able to see this, but I have submitted the task of an upgrade to ops: https://github.com/orgs/matrix-org/projects/20#card-35712383

jryans commented 4 years ago

We have upgraded Jitsi and I have verified that screensharing works in Firefox via widgets, so I believe this is resolved.