flathub / com.microsoft.Teams

https://flathub.org/apps/details/com.microsoft.Teams
14 stars 8 forks source link

Screenshare not working because of SharingIndicator #86

Open vteivans opened 2 years ago

vteivans commented 2 years ago

I'm having an issue with screen-sharing, maybe someone has some ideas how to fix or at least debug this?

During a call, when I press on "share screen", no windows or screens are provided. However If i do it through chromium browser (also installed through flatpak) it works. After some debugging I got to these errors in Teams Log:

warning -- sharing-indicator loading from 'slimcore/lib/sharing-indicator' error -- cannot instantiate SharingIndicator info -- createInstanceAsync: SlimCoreInstance settings {"enableLogging":true,"enableSlimCoreLogging":true,"enableSlimCoreVersionCompatibilityCheck":false,"tsCallingVersion":"2021.48.01.1"} ****

<2> -- info -- sharing Indicator is not enabled. Not setting up local screenshare.

I can't find any logs on what is exactly failing.

OS: Fedora silverblue Package info:

Microsoft Teams - Microsoft Teams for Linux is your chat-centered workspace in
Office 365

          ID: com.microsoft.Teams
         Ref: app/com.microsoft.Teams/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 1.4.00.26453
     License: LicenseRef-proprietary
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 4,6 MB
     Runtime: org.freedesktop.Platform/x86_64/21.08
         Sdk: org.freedesktop.Sdk/x86_64/21.08

      Commit: b06304204e91071deb93fd186b47f6b5e0d6c059aa8a30300e7f67be804c566c
      Parent: be89b5e7af150649e2fbbf7cb98921cb67316ce6ef4fa4032bdfd6d4f4028b89
     Subject: Update teams.deb to 1.4.00.26453 (88e75433)
        Date: 2021-10-08 08:51:11 +0000
unclearParadigm commented 2 years ago

Same behvaior as described by vteivans on Fedora 35 (Wayland Session and Gnome). In earlier versions Teams screensharing worked with Fedora 35 flawlessly. It broke around start to mid of february afaik. It seems that other applications like Jitsi had similar problems for a while - eventually those were related?

vteivans commented 2 years ago

I did some investigation and it turns out that this issue is caused by the Electron version MS Teams use. It doesn't support wayland and with it the screen sharing. And as I understand it - it works in backwards compat "X11 mode" on my wayland GUI.

And according to tickets I've found, MS doesn't plan to upgrade the Electron - they're switching to Edge WebView 2, which is does not support Linux for now (https://github.com/MicrosoftEdge/WebView2Feedback/issues/645).