Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Google Meet, Teams, Jitsi, etc: screensharing is broken (because APIs getDisplayMedia / chooseDesktopMedia missing in Electron) #927

Closed

Description

@davidmontemayor

Bug description
Presenting screen does not work in Meet using Nativefier. An error dialog shows up.

Steps to reproduce

  • Created application using nativefier --name "Meet Native" "https://meet.google.com"
  • Opened app, logged into my account
  • Create a new one using the "Join or start meeting" button
  • Click the "Present" button
  • The following dialog appears:

Screenshot 2020-03-19 18 02 54

Expected behavior
A permissions dialog asking to gain access to the screen or something.

Debug info
Verbose logs (command-line and/or in app DevTools console), error message, screenshots

Context

  • Nativefier: 7.7.0
  • OS: Mac OSX 10.14.6

Activity

  1. ronjouch commented on Mar 19, 2020

    @ronjouch
  2. ryanvidal commented on Mar 20, 2020

    @ryanvidal

    I just tried this in 8.0.4 (Mac OSX 10.15.3) and also cannot present. I believe this is likely do to a need for the Screen Recording permission in the Privacy settings, which the Nativefier app is not requesting.

  3. ronjouch commented on Mar 21, 2020

    @ronjouch
    Contributor

    I just tried this in 8.0.4 (Mac OSX 10.15.3) and also cannot present. I believe this is likely do to a need for the Screen Recording permission in the Privacy settings, which the Nativefier app is not requesting.

    Thanks. Additional data:

    • Problem reproducible too under Linux, so it's a general bug, not a macOS permission-specific bug.
    • Reproducible with Nativefier 7.7.1 with Electron 5.0.13 & 6.1.9
    • Reproducible with Nativefier 8.0.4 with Electron 8.1.1

    In all cases, same result: when trying to join a call, Camera starts being accessed (LED turns on), but then Meet says "You can't join this video call", and console/network shows one error: Failed to load resource: the server responded with a status of 403 (POST https://meet.google.com/$rpc/google.rtc.meetings.v1.MeetingSpaceService/ResolveMeetingSpace)

  4. changed the title [-]Cannot present my screen in Google Meet[/-] [+]Google Meet: camera, microphone, screensharing are broken[/+] on Mar 21, 2020
  5. davidmontemayor commented on Mar 23, 2020

    @davidmontemayor
    Author

    In Mojave I don't even see the screen recording permission in the Settings & Privacy list.

  6. davidmontemayor commented on Mar 24, 2020

    @davidmontemayor
    Author

    Also, Camera/Microphone work fine for me! Better than in Chrome, actually! I'm using Meet in native because it performs much better.

  7. ronjouch commented on Mar 24, 2020

    @ronjouch
    Contributor

    Also, Camera/Microphone work fine for me! Better than in Chrome, actually! I'm using Meet in native because it performs much better.

    @davidmontemayor interesting; for me cam&mic don't work. Thanks for the update!

  8. changed the title [-]Google Meet: camera, microphone, screensharing are broken[/-] [+]Google Meet: screensharing is broken (and sometimes camera & microphone too)[/+] on Mar 24, 2020
  9. davidmontemayor commented on Mar 24, 2020

    @davidmontemayor
    Author
  10. ryanvidal commented on Mar 25, 2020

    @ryanvidal

    My camera and microphone work fine as well - it's just screensharing ("Present" button) that results in "Can't share your screen - Sorry, an error has occurred when screensharing." Not sure if it matters, but my Chrome version is Version 80.0.3987.149 (Official Build) (64-bit).

  11. dndrsn commented on Apr 23, 2020

    @dndrsn

    I would assume this issue is related to this - electron/electron#16513

  12. 24 remaining items

  13. kwmc-lucas commented on May 12, 2022

    @kwmc-lucas

    Amazing to see this coming together, thanks to everyone taking a look.

  14. simonweil commented on May 17, 2022

    @simonweil

    I'm having the issue that my camera fails to start and sharing my screen doesn't work in google meet.

    Reading the thread I'm not clear if there is currently a workaround I can use for it.
    If there is, can someone direct me to the instructions?

    Is there any plan when a fix may be released?

  15. kwmc-lucas commented on May 17, 2022

    @kwmc-lucas

    @simonweil FWIW my camera works in Teams, so I think that might be another issue.

    Screen sharing doesn't work for me either, but it seems like there's progress being made on that one above.

  16. asteinba commented on Aug 12, 2022

    @asteinba

    Does anybody have a working example with Microsoft Teams for x11 or wayland? None of the posted workarounds work for me under Ubuntu 22.04 with GNOME.

  17. deciacco commented on Oct 28, 2022

    @deciacco
    Contributor

    I did everything as outlined by RickStanley, but...

    Ubuntu 22.04.1 LTS, with XFCE and x11

    nativefier https://teams.microsoft.com 
    --name Teams 
    --internal-urls ".*?" 
    -u edge
    

    With/Without these switches:

    --file-download-options '{"saveAs": true}' 
    --browserwindow-options '{ "webPreferences": { "experimentalFeatures": true }}' 
    --enable-features=WebRTCPipeWireCapturer 
    

    Get this:
    image

    image

  18. niccolomineo commented on Feb 17, 2023

    @niccolomineo

    Anyone managed to find a workaround for Google Meet?

  19. ip7e commented on Feb 28, 2023

    @ip7e

    Google Meets works in electron if you use User Agent replicating Safari browser

  20. edsenabr commented on Feb 28, 2023

    @edsenabr
  21. niccolomineo commented on Feb 28, 2023

    @niccolomineo

    Google Meets works in electron if you use User Agent replicating Safari browser

    I'd much rather have Chromium working under the hood, given how unreliable has been Safari on my system(s) since Big Sur came out.

  22. kwmc-lucas commented on Feb 28, 2023

    @kwmc-lucas

    @niccolomineo also, Microsoft Teams doesn't support Safari.

  23. niccolomineo commented on Feb 28, 2023

    @niccolomineo

    @niccolomineo also, Microsoft Teams doesn't support Safari.

    I never mentioned MS Teams.🙂

  24. Eugeniusz-Gienek commented on Mar 3, 2023

    @Eugeniusz-Gienek

    Tried to make MS Teams on Mac work - it doesn't undortunately. For some reason it complains about the missing permissions - however I have given them. No luck yet.

  25. added a commit that references this issue on Mar 23, 2023
    79009e8
  26. added a commit that references this issue on Jun 11, 2025
    43959a1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions