question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Screen sharing fail on Firefox with config startScreenSharing = true

See original GitHub issue

From here : https://community.jitsi.org/t/screen-sharing-fail-on-firefox-desktop-until-user-click-at-least-once-on-the-jitsi-iframe/22384

Description

Screen sharing fails to start when doing a call from Firefox with startScreenSharing = true in the config

Current behavior

The call is establish, but the screen sharing doesn’t start. (browser doesn’t even ask for permission). Video doesn’t start either, only the mic is on. Error message from the console:

2020-03-05T10:36:38.338Z [modules/RTC/RTCUtils.js] : Using the new gUM flow Logger.js:154:22

2020-03-05T10:36:38.338Z [modules/RTC/ScreenObtainer.js] : Using getDisplayMedia for screen sharing Logger.js:154:22

2020-03-05T10:36:38.339Z [features/base/tracks] <E/</<>: 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.-----------.com/libs/lib-jitsi-meet.min.js?v=3863:6:114711\nobtainScreenFromGetDisplayMedia/<@https://jitsi.-----------.com/libs/lib-jitsi-meet.min.js?v=3863:6:175762\n” }

Logger.js:154:22

2020-03-05T10:36:38.342Z [conference.js] : Failed to switch to screensharingObject { name: “gum.chrome_extension_user_canceled”, message: “User canceled Chrome’s screen sharing prompt”, stack: “a@https://jitsi.-----------.com/libs/lib-jitsi-meet.min.js?v=3863:6:114711\nobtainScreenFromGetDisplayMedia/<@https://jitsi.-----------.com/libs/lib-jitsi-meet.min.js?v=3863:6:175762\n” }

Note : Almost the same bug can be reproduce without starting with screen sharingstartScreenSharing = true. Start a normal call, with video by default. Wait for the call to be establish, and just give permission for the webcam to start to the browser, but don’t click anywhere in the iframe. Then send a command api.executeCommand(‘toggleShareScreen’). If no interaction took place with the iframe until now (no click, no tab into), then the screen sharing fail with exactly the same error message as above.

Expected Behavior

Screen sharing starts properly when the call start.

Possible Solution


Steps to reproduce

Toggle startScreenSharing = true in the config and start a call on Firefox, using external api

const options = {
        roomName: `${support_id}${myInfo.jroom_pw}`,
        parentNode: document.querySelector('#panelarea'),
    };
    api = new JitsiMeetExternalAPI(myInfo.server, options);

Environment details

Jitsi-meet trunk with external api and custom server Ubuntu 18.04.4 LTS. Firefox 73.0.1 (64-bit)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Arzarcommented, Mar 18, 2020

And after a bit more research it appears it’s a change in the w3c spec itself: https://bugzilla.mozilla.org/show_bug.cgi?id=1580944 https://github.com/w3c/mediacapture-screen-share/pull/106 So yes, nothing we can do.

0reactions
kestutisvcommented, Oct 19, 2020

And after a bit more research it appears it’s a change in the w3c spec itself: https://bugzilla.mozilla.org/show_bug.cgi?id=1580944 w3c/mediacapture-screen-share#106 So yes, nothing we can do.

https://www.w3.org/TR/screen-capture/#mediadevices-additions

Read more comments on GitHub >

github_iconTop Results From Across the Web

Screen sharing fail on Firefox desktop until user click at least ...
Description Screen sharing fails to start when doing a call from Firefox with startScreenSharing = true in the config Current behavior The ...
Read more >
Unable to start screensharing | Firefox Support Forum
I am using a video conferencing site called "whereby.com". It works as expected for everything but screen sharing. When attempting to share ...
Read more >
Screen sharing suddenly stopped working on chromium and ...
Chromium crashes when I start screen sharing, this has been happening ... wireplumber[1364]: Failed to set scheduler settings: Operation not ...
Read more >
WebRTC Screen Sharing with Javascript - Metered Video
We will build a WebRTC Screen Sharing application in Javascript, ... audio: true, video: false }); } catch (ex) { console.log("Error ...
Read more >
reason: "user deny screen share" on starting screenshare on ...
I'm getting “INVALID_OPERATION”: reason: “user deny screen share” on starting screenshare on Firefox. Below line is throwing the error.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found