IsmaelMartinez / teams-for-linux

Unofficial Microsoft Teams for Linux client
GNU General Public License v3.0
2.77k stars 229 forks source link

screenSharingControlService: unexpected, cannot find the call #432

Closed The-Compiler closed 3 years ago

The-Compiler commented 3 years ago

Describe the bug It looks like screen sharing stopped working recently. It worked fine last week, this week it stopped working. Perhaps something changed on the Teams website in an incompatible way?

To Reproduce Try sharing the screen in a meeting. After clicking "Desktop/Window", nothing happens.

Desktop (please complete the following information):

Additional context Developer console:

image

Full log:

``` 0.2-angular-jquery.min-eee9041.js:114 2021-05-26T11:03:46.796Z [screenSharing][control] screenSharingControlService: unexpected, cannot find the call, teamsCallId [1] (anonymous) @ 0.2-angular-jquery.min-eee9041.js:114 e.logMessage @ 3.2-app.min-728a584.js:1 e.error @ 3.2-app.min-728a584.js:1 e.getSharingCall @ 3.1-app.min-f0b189f.js:1 e.setSharingSource @ 3.1-app.min-f0b189f.js:1 e.startScreenSharingOnCall @ 3.1-app.min-f0b189f.js:1 o.startSharing @ 3.1-app.min-f0b189f.js:1 a.startSharing @ 3.1-app.min-f0b189f.js:1 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:246 b @ 0.2-angular-jquery.min-eee9041.js:122 e @ 0.2-angular-jquery.min-eee9041.js:270 $eval @ 0.2-angular-jquery.min-eee9041.js:142 $apply @ 0.2-angular-jquery.min-eee9041.js:142 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:270 dispatch @ 0.2-angular-jquery.min-eee9041.js:1 v.handle @ 0.2-angular-jquery.min-eee9041.js:1 0.2-angular-jquery.min-eee9041.js:114 TypeError: Cannot read property 'send' of undefined at a.startSharing (https://statics.teams.cdn.office.net/hashed/3.1-app.min-f0b189f.js:1:4737294) at https://statics.teams.cdn.office.net/hashed/0.2-angular-jquery.min-eee9041.js:246:461 at b (https://statics.teams.cdn.office.net/hashed/0.2-angular-jquery.min-eee9041.js:122:133) at e (https://statics.teams.cdn.office.net/hashed/0.2-angular-jquery.min-eee9041.js:270:195) at m.$eval (https://statics.teams.cdn.office.net/hashed/0.2-angular-jquery.min-eee9041.js:142:180) at m.$apply (https://statics.teams.cdn.office.net/hashed/0.2-angular-jquery.min-eee9041.js:142:413) at HTMLDivElement. (https://statics.teams.cdn.office.net/hashed/0.2-angular-jquery.min-eee9041.js:270:247) at HTMLDivElement.dispatch (https://statics.teams.cdn.office.net/hashed/0.2-angular-jquery.min-eee9041.js:1:41506) at HTMLDivElement.v.handle (https://statics.teams.cdn.office.net/hashed/0.2-angular-jquery.min-eee9041.js:1:39536) undefined (anonymous) @ 0.2-angular-jquery.min-eee9041.js:114 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:85 (anonymous) @ 3.1-app.min-f0b189f.js:1 $apply @ 0.2-angular-jquery.min-eee9041.js:142 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:270 dispatch @ 0.2-angular-jquery.min-eee9041.js:1 v.handle @ 0.2-angular-jquery.min-eee9041.js:1 0.2-angular-jquery.min-eee9041.js:114 2021-05-26T11:03:46.867Z callingAgents: calling-stack [JS.TsCalling.MediaAgentUnsafe] ffffffff: MA/DeviceManager/MediaStreamManager/MediaStream:4/MSProvider GUM stream provider cannot be created for display stream (anonymous) @ 0.2-angular-jquery.min-eee9041.js:114 e.logMessage @ 3.2-app.min-728a584.js:1 e.error @ 3.2-app.min-728a584.js:1 e.apply @ 3.1-app.min-f0b189f.js:1 e.error @ 3.1-app.min-f0b189f.js:1 t.log @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ rt-js-bindings.bundle-db8ace5.js:1 t.log @ rt-js-bindings.bundle-db8ace5.js:1 e.error @ rt-js-bindings.bundle-db8ace5.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 e._apply @ skype-calling-pluginless.bundle-932ac50.js:1 e.error @ skype-calling-pluginless.bundle-932ac50.js:1 e.error @ skype-calling-pluginless.bundle-932ac50.js:1 e.getStreamProvider @ skype-calling-pluginless.bundle-932ac50.js:1 t.getGumStreamProvider @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 Promise.then (async) t.updateGumStreamInternal @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 Promise.then (async) e.add @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 t.applyConstraintsInternal @ skype-calling-pluginless.bundle-932ac50.js:1 t.start @ skype-calling-pluginless.bundle-932ac50.js:1 t.start @ skype-calling-pluginless.bundle-932ac50.js:1 t.getMediaStream @ skype-calling-pluginless.bundle-932ac50.js:1 t.getMediaStream @ skype-calling-pluginless.bundle-932ac50.js:1 t.createDevicesHandle @ skype-calling-pluginless.bundle-932ac50.js:1 n.getScreenHandle @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 i @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 c @ skype-calling-pluginless.bundle-932ac50.js:1 n.startScreenSharing @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 i @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 r @ skype-calling-pluginless.bundle-932ac50.js:1 t.executeInternal @ skype-calling-pluginless.bundle-932ac50.js:1 t.checkPendingOperationAndExecute @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 i @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 r @ skype-calling-pluginless.bundle-932ac50.js:1 t.execute @ skype-calling-pluginless.bundle-932ac50.js:1 P @ skype-calling-pluginless.bundle-932ac50.js:1 p.value @ skype-calling-pluginless.bundle-932ac50.js:1 l @ 3.1-app.min-f0b189f.js:1 e.startScreenSharingOnCall @ 3.1-app.min-f0b189f.js:1 o.startSharing @ 3.1-app.min-f0b189f.js:1 a.startSharing @ 3.1-app.min-f0b189f.js:1 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:246 b @ 0.2-angular-jquery.min-eee9041.js:122 e @ 0.2-angular-jquery.min-eee9041.js:270 $eval @ 0.2-angular-jquery.min-eee9041.js:142 $apply @ 0.2-angular-jquery.min-eee9041.js:142 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:270 dispatch @ 0.2-angular-jquery.min-eee9041.js:1 v.handle @ 0.2-angular-jquery.min-eee9041.js:1 0.2-angular-jquery.min-eee9041.js:114 2021-05-26T11:03:46.870Z callingAgents: calling-stack [JS.TsCalling.MediaAgent] ffffffff: MA/DeviceManager/MediaStreamManager [295e99fe] Error from promiseQueue! {"type":"UnsupportedStream","detail":"Sharing not supported","message":"Sharing not supported","isAudio":false,"constraints":{"audio":null,"video":{"deviceId":"display"},"withTimeout":true}} (anonymous) @ 0.2-angular-jquery.min-eee9041.js:114 e.logMessage @ 3.2-app.min-728a584.js:1 e.error @ 3.2-app.min-728a584.js:1 e.apply @ 3.1-app.min-f0b189f.js:1 e.error @ 3.1-app.min-f0b189f.js:1 t.log @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ rt-js-bindings.bundle-db8ace5.js:1 t.log @ rt-js-bindings.bundle-db8ace5.js:1 e.error @ rt-js-bindings.bundle-db8ace5.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 e._apply @ skype-calling-pluginless.bundle-932ac50.js:1 e.error @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 Promise.catch (async) e.add @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 t.applyConstraintsInternal @ skype-calling-pluginless.bundle-932ac50.js:1 t.start @ skype-calling-pluginless.bundle-932ac50.js:1 t.start @ skype-calling-pluginless.bundle-932ac50.js:1 t.getMediaStream @ skype-calling-pluginless.bundle-932ac50.js:1 t.getMediaStream @ skype-calling-pluginless.bundle-932ac50.js:1 t.createDevicesHandle @ skype-calling-pluginless.bundle-932ac50.js:1 n.getScreenHandle @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 i @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 c @ skype-calling-pluginless.bundle-932ac50.js:1 n.startScreenSharing @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 i @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 r @ skype-calling-pluginless.bundle-932ac50.js:1 t.executeInternal @ skype-calling-pluginless.bundle-932ac50.js:1 t.checkPendingOperationAndExecute @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 i @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 r @ skype-calling-pluginless.bundle-932ac50.js:1 t.execute @ skype-calling-pluginless.bundle-932ac50.js:1 P @ skype-calling-pluginless.bundle-932ac50.js:1 p.value @ skype-calling-pluginless.bundle-932ac50.js:1 l @ 3.1-app.min-f0b189f.js:1 e.startScreenSharingOnCall @ 3.1-app.min-f0b189f.js:1 o.startSharing @ 3.1-app.min-f0b189f.js:1 a.startSharing @ 3.1-app.min-f0b189f.js:1 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:246 b @ 0.2-angular-jquery.min-eee9041.js:122 e @ 0.2-angular-jquery.min-eee9041.js:270 $eval @ 0.2-angular-jquery.min-eee9041.js:142 $apply @ 0.2-angular-jquery.min-eee9041.js:142 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:270 dispatch @ 0.2-angular-jquery.min-eee9041.js:1 v.handle @ 0.2-angular-jquery.min-eee9041.js:1 0.2-angular-jquery.min-eee9041.js:114 2021-05-26T11:03:46.871Z callingAgents: calling-stack [JS.TsCalling.MediaAgent] ffffffff: MA/DeviceManager/MediaStreamManager/MediaStream:4 failed to apply constraints: {"audio":null,"video":{"deviceId":"u35"},"withTimeout":true} error: {"type":"UnsupportedStream","detail":"Sharing not supported","message":"Sharing not supported","isAudio":false,"constraints":{"audio":null,"video":{"deviceId":"display"},"withTimeout":true}} (anonymous) @ 0.2-angular-jquery.min-eee9041.js:114 e.logMessage @ 3.2-app.min-728a584.js:1 e.error @ 3.2-app.min-728a584.js:1 e.apply @ 3.1-app.min-f0b189f.js:1 e.error @ 3.1-app.min-f0b189f.js:1 t.log @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ rt-js-bindings.bundle-db8ace5.js:1 t.log @ rt-js-bindings.bundle-db8ace5.js:1 e.error @ rt-js-bindings.bundle-db8ace5.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 e._apply @ skype-calling-pluginless.bundle-932ac50.js:1 e.error @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 Promise.catch (async) (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 t.applyConstraintsInternal @ skype-calling-pluginless.bundle-932ac50.js:1 t.start @ skype-calling-pluginless.bundle-932ac50.js:1 t.start @ skype-calling-pluginless.bundle-932ac50.js:1 t.getMediaStream @ skype-calling-pluginless.bundle-932ac50.js:1 t.getMediaStream @ skype-calling-pluginless.bundle-932ac50.js:1 t.createDevicesHandle @ skype-calling-pluginless.bundle-932ac50.js:1 n.getScreenHandle @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 i @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 c @ skype-calling-pluginless.bundle-932ac50.js:1 n.startScreenSharing @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 i @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 r @ skype-calling-pluginless.bundle-932ac50.js:1 t.executeInternal @ skype-calling-pluginless.bundle-932ac50.js:1 t.checkPendingOperationAndExecute @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 i @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 r @ skype-calling-pluginless.bundle-932ac50.js:1 t.execute @ skype-calling-pluginless.bundle-932ac50.js:1 P @ skype-calling-pluginless.bundle-932ac50.js:1 p.value @ skype-calling-pluginless.bundle-932ac50.js:1 l @ 3.1-app.min-f0b189f.js:1 e.startScreenSharingOnCall @ 3.1-app.min-f0b189f.js:1 o.startSharing @ 3.1-app.min-f0b189f.js:1 a.startSharing @ 3.1-app.min-f0b189f.js:1 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:246 b @ 0.2-angular-jquery.min-eee9041.js:122 e @ 0.2-angular-jquery.min-eee9041.js:270 $eval @ 0.2-angular-jquery.min-eee9041.js:142 $apply @ 0.2-angular-jquery.min-eee9041.js:142 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:270 dispatch @ 0.2-angular-jquery.min-eee9041.js:1 v.handle @ 0.2-angular-jquery.min-eee9041.js:1 0.2-angular-jquery.min-eee9041.js:114 2021-05-26T11:03:46.873Z callingAgents: calling-stack [JS.TsCalling.MediaAgent] ffffffff: MA/DeviceManager/MediaStreamManager could not start media stream: 4, total streams: 2, error: {"type":"UnsupportedStream","detail":"Sharing not supported","message":"Sharing not supported","isAudio":false,"constraints":{"audio":null,"video":{"deviceId":"display"},"withTimeout":true}} (anonymous) @ 0.2-angular-jquery.min-eee9041.js:114 e.logMessage @ 3.2-app.min-728a584.js:1 e.error @ 3.2-app.min-728a584.js:1 e.apply @ 3.1-app.min-f0b189f.js:1 e.error @ 3.1-app.min-f0b189f.js:1 t.log @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ rt-js-bindings.bundle-db8ace5.js:1 t.log @ rt-js-bindings.bundle-db8ace5.js:1 e.error @ rt-js-bindings.bundle-db8ace5.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 e._apply @ skype-calling-pluginless.bundle-932ac50.js:1 e.error @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 Promise.catch (async) t.getMediaStream @ skype-calling-pluginless.bundle-932ac50.js:1 t.getMediaStream @ skype-calling-pluginless.bundle-932ac50.js:1 t.createDevicesHandle @ skype-calling-pluginless.bundle-932ac50.js:1 n.getScreenHandle @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 i @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 c @ skype-calling-pluginless.bundle-932ac50.js:1 n.startScreenSharing @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 i @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 r @ skype-calling-pluginless.bundle-932ac50.js:1 t.executeInternal @ skype-calling-pluginless.bundle-932ac50.js:1 t.checkPendingOperationAndExecute @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 i @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 r @ skype-calling-pluginless.bundle-932ac50.js:1 t.execute @ skype-calling-pluginless.bundle-932ac50.js:1 P @ skype-calling-pluginless.bundle-932ac50.js:1 p.value @ skype-calling-pluginless.bundle-932ac50.js:1 l @ 3.1-app.min-f0b189f.js:1 e.startScreenSharingOnCall @ 3.1-app.min-f0b189f.js:1 o.startSharing @ 3.1-app.min-f0b189f.js:1 a.startSharing @ 3.1-app.min-f0b189f.js:1 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:246 b @ 0.2-angular-jquery.min-eee9041.js:122 e @ 0.2-angular-jquery.min-eee9041.js:270 $eval @ 0.2-angular-jquery.min-eee9041.js:142 $apply @ 0.2-angular-jquery.min-eee9041.js:142 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:270 dispatch @ 0.2-angular-jquery.min-eee9041.js:1 v.handle @ 0.2-angular-jquery.min-eee9041.js:1 0.2-angular-jquery.min-eee9041.js:114 2021-05-26T11:03:46.874Z callingAgents: calling-stack [JS.TsCalling.MediaAgent] ffffffff: MA/DeviceManager getMediaStream() error: {"type":"UnsupportedStream","detail":"Sharing not supported","message":"Sharing not supported","isAudio":false,"constraints":{"audio":null,"video":{"deviceId":"display"},"withTimeout":true}} (anonymous) @ 0.2-angular-jquery.min-eee9041.js:114 e.logMessage @ 3.2-app.min-728a584.js:1 e.error @ 3.2-app.min-728a584.js:1 e.apply @ 3.1-app.min-f0b189f.js:1 e.error @ 3.1-app.min-f0b189f.js:1 t.log @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ rt-js-bindings.bundle-db8ace5.js:1 t.log @ rt-js-bindings.bundle-db8ace5.js:1 e.error @ rt-js-bindings.bundle-db8ace5.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 e._apply @ skype-calling-pluginless.bundle-932ac50.js:1 e.error @ skype-calling-pluginless.bundle-932ac50.js:1 t.handleUserMediaError @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 Promise.catch (async) t.getMediaStream @ skype-calling-pluginless.bundle-932ac50.js:1 t.createDevicesHandle @ skype-calling-pluginless.bundle-932ac50.js:1 n.getScreenHandle @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 i @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 c @ skype-calling-pluginless.bundle-932ac50.js:1 n.startScreenSharing @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 i @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 r @ skype-calling-pluginless.bundle-932ac50.js:1 t.executeInternal @ skype-calling-pluginless.bundle-932ac50.js:1 t.checkPendingOperationAndExecute @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 i @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 (anonymous) @ skype-calling-pluginless.bundle-932ac50.js:1 r @ skype-calling-pluginless.bundle-932ac50.js:1 t.execute @ skype-calling-pluginless.bundle-932ac50.js:1 P @ skype-calling-pluginless.bundle-932ac50.js:1 p.value @ skype-calling-pluginless.bundle-932ac50.js:1 l @ 3.1-app.min-f0b189f.js:1 e.startScreenSharingOnCall @ 3.1-app.min-f0b189f.js:1 o.startSharing @ 3.1-app.min-f0b189f.js:1 a.startSharing @ 3.1-app.min-f0b189f.js:1 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:246 b @ 0.2-angular-jquery.min-eee9041.js:122 e @ 0.2-angular-jquery.min-eee9041.js:270 $eval @ 0.2-angular-jquery.min-eee9041.js:142 $apply @ 0.2-angular-jquery.min-eee9041.js:142 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:270 dispatch @ 0.2-angular-jquery.min-eee9041.js:1 v.handle @ 0.2-angular-jquery.min-eee9041.js:1 0.2-angular-jquery.min-eee9041.js:114 2021-05-26T11:03:46.891Z CallingScreenSharingMixin: Failed to start screenSharing in call d6fbd5e8-88bd-47bd-9d11-729dd3c9c10b, error: {"type":"UnsupportedStream","detail":"Sharing not supported","message":"Sharing not supported","isAudio":false,"constraints":{"audio":null,"video":{"deviceId":"display"},"withTimeout":true}} (anonymous) @ 0.2-angular-jquery.min-eee9041.js:114 e.logMessage @ 3.2-app.min-728a584.js:1 e.error @ 3.2-app.min-728a584.js:1 (anonymous) @ 3.1-app.min-f0b189f.js:1 Promise.catch (async) e.startScreenSharingOnCall @ 3.1-app.min-f0b189f.js:1 o.startSharing @ 3.1-app.min-f0b189f.js:1 a.startSharing @ 3.1-app.min-f0b189f.js:1 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:246 b @ 0.2-angular-jquery.min-eee9041.js:122 e @ 0.2-angular-jquery.min-eee9041.js:270 $eval @ 0.2-angular-jquery.min-eee9041.js:142 $apply @ 0.2-angular-jquery.min-eee9041.js:142 (anonymous) @ 0.2-angular-jquery.min-eee9041.js:270 dispatch @ 0.2-angular-jquery.min-eee9041.js:1 v.handle @ 0.2-angular-jquery.min-eee9041.js:1 skype-calling-pluginless.bundle-932ac50.js:1 Uncaught (in promise) {type: "UnsupportedStream", detail: "Sharing not supported", message: "Sharing not supported", isAudio: false, constraints: e} ```
joakim-tjernlund commented 3 years ago

This hints that some Control should be possible: https://docs.microsoft.com/en-us/microsoftteams/troubleshoot/teams-conferencing/give-control-doesn%E2%80%99t-work-sharescreen

jijojosephk commented 3 years ago

@jijojosephk , OK that was not totally unexpected. I know MS teams is sensitive to removing/adding audio(headsets). Is this better here? Can you plugin USB HS(or bluetooth) after Teams has started ?

I have not faced any issues with audio. Communications with such interfaces varies between OS I've seen issues with official teams application as well. Probably it's there. My headphone is always connected :)

jijojosephk commented 3 years ago

This hints that some Control should be possible: https://docs.microsoft.com/en-us/microsoftteams/troubleshoot/teams-conferencing/give-control-doesn%E2%80%99t-work-sharescreen

Thanks for sharing. I'll have a look at this if it's possible in Chromium engine through Electron we'll definitely handle it.

jijojosephk commented 3 years ago

This hints that some Control should be possible: https://docs.microsoft.com/en-us/microsoftteams/troubleshoot/teams-conferencing/give-control-doesn%E2%80%99t-work-sharescreen

I could not make it work on browser. But the official client works well in this case. It shows a red boarder on the screen and also a tool bar with stop sharing and things like that.

neokore commented 3 years ago

I've tested it with a custom AUR build in Manjaro and it works great, great job from @jijojosephk!

neokore commented 3 years ago

This hints that some Control should be possible: https://docs.microsoft.com/en-us/microsoftteams/troubleshoot/teams-conferencing/give-control-doesn%E2%80%99t-work-sharescreen

I could not make it work on browser. But the official client works well in this case. It shows a red boarder on the screen and also a tool bar with stop sharing and things like that.

AFAIK, this feature is not available on browser. The text where they talk about browsers is just to provide an easy way to check GPU acceleration for their electron instance.

joakim-tjernlund commented 3 years ago

Anyone tested with pipewire? I know there is an issue with MS Teams and pipewire.

neokore commented 3 years ago

Anyone tested with pipewire? I know there is an issue with MS Teams and pipewire.

In my case I'm using PipeWire 0.3.30 on Manjaro with no issues at all. Webcam, screen sharing and audio is OK. Just the already known annoying focus bug from PipeWire, but nothing else.

jijojosephk commented 3 years ago

Anyone tested with pipewire? I know there is an issue with MS Teams and pipewire.

In my case I'm using PipeWire 0.3.30 on Manjaro with no issues at all. Webcam, screen sharing and audio is OK. Just the already known annoying focus bug from PipeWire, but nothing else.

I haven't used PipeWire. Is the focus bug you're talking about is on screenshare preview?

neokore commented 3 years ago

I haven't used PipeWire. Is the focus bug you're talking about is on screenshare preview?

Yes, when I select sharing screen, all the windows focuses very fast (to get a preview of each window I guess) and Teams is left unfocused "at the back of the desktop", so you have to focus it again using alt+Tab or your task bar. It's a bit annoying but it is not a blocking bug and I think it is not related to this project. A possible workaround could be trying to refocus the Teams window after the preview generation, but I'm not sure if this is feasible.

jijojosephk commented 3 years ago

I haven't used PipeWire. Is the focus bug you're talking about is on screenshare preview?

Yes, when I select sharing screen, all the windows focuses very fast (to get a preview of each window I guess) and Teams is left unfocused "at the back of the desktop", so you have to focus it again using alt+Tab or your task bar. It's a bit annoying but it is not a blocking bug and I think it is not related to this project. A possible workaround could be trying to refocus the Teams window after the preview generation, but I'm not sure if this is feasible.

I see. I had created a new issue in electron repo here a few days ago. I'll try to find some workarounds. Thank you. @IsmaelMartinez I'd add this as an issue here. So, we'll keep track of it.

jijojosephk commented 3 years ago

@IsmaelMartinez @skyghis @neokore Focus issue is handled at #440 and has a workaround for now. This is how it looks. All other windows run panicky and teams window just stands there solid. :smile:

danilkhromov commented 3 years ago

Anyone tested with pipewire? I know there is an issue with MS Teams and pipewire.

In my case I'm using PipeWire 0.3.30 on Manjaro with no issues at all. Webcam, screen sharing and audio is OK. Just the already known annoying focus bug from PipeWire, but nothing else.

Is there any specific setup needed in order to make pipewire screen sharing work? I really want to use wayland session but not able to screen share is a no go.

alfsch commented 3 years ago

I've tested the 4K Resolution with 4K main screen and it works :-D What I also noticed was that when I select 2K resolution in teams only a black window is shown to the other user. With FHD all is ok.

jijojosephk commented 3 years ago

I've tested the 4K Resolution with 4K main screen and it works :-D What I also noticed was that when I select 2K resolution in teams only a black window is shown to the other user. With FHD all is ok.

4K genuinely improves quality over FHD or somewhat similar? Was recipient using 4K? Really curious to know the outcome :smile: . Well, 2K is less popular and is wide screen. Both 2K and FHD has the same height only width changes. May be the aspect ratio is causing some troubles for 2K.

alfsch commented 3 years ago

@jijojosephk we saw no difference between 4k and FHD on the other side. But we're really happy to have window's sharing back :+1:

jijojosephk commented 3 years ago

@alfsch, 2K and 4K were experimental. I guess Teams web app along with WebRTC and/or teams APIs interfere with quality. May be it's not supported at the moment. But when the future comes, we're ready :smile: Glad that I could be a help to this group.

DrasLorus commented 3 years ago

Ok! I have customized the AUR PKGBUILD to build directly from the git clone of the develop branch (available as teams-for-linux-git on the AUR). I have tested and everything works on my machine (using pipewire and pipewire-pulse). However, I have no 2K / 4K screen to test.

I have also tested on Wayland (with sway) and screen-sharing don't work, neither on XWayland nor in pure Wayland (using teams-for-linux --enable-features=UseOzonePlatform --ozone-platform=wayland). But It is expected and (I think) unrelated to this issue, wayland window management being very different than X11's (e.g. windows are more isolated, specific APIs needed...).

Funny point: no loose of focus under Wayland. :smiley: So Wayland is unaffected or its associated bugs/incompatibilities compensate or conflict with what causes the focus lost.

Everything else than screen-sharing seems to work well.

jijojosephk commented 3 years ago

@DrasLorus The focus issue is handled here #440 It's a workaround though. It would keep the teams window active though you see some strange things happen behind the window.

simonvanderveldt commented 3 years ago

1.0.8 worked for me with sharing screens (4K display, shared at 1080p, didn't try the higher options since there's not really any point). Thanks for the fix!

IsmaelMartinez commented 3 years ago

closed as 1.0.8 its out. Thanks a lot @jijojosephk for the resolution and everyone else for testing this.