Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

screenSharingControlService: unexpected, cannot find the call #432

Closed
The-Compiler opened this issue May 26, 2021 · 71 comments
Closed

screenSharingControlService: unexpected, cannot find the call #432

The-Compiler opened this issue May 26, 2021 · 71 comments

Comments

@The-Compiler
Copy link

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):

  • OS: Archlinux
  • Installation: Via teams-for-linux in the Archlinux AUR
  • Version: 1.0.6

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.<anonymous> (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}
@KPS-MWT
Copy link

KPS-MWT commented May 26, 2021

I can confirm this for Ubuntu 20.04. Still works in Chrome.

@DrasLorus
Copy link

DrasLorus commented May 27, 2021

Same here in Archlinux, version 1.0.6, from the AUR.

Everything works on (ungoogled-)chromium.

Tried the pipewire and user-agent workarounds from #406 without success.

@IsmaelMartinez
Copy link
Owner

Hi all, I suspect MS has deprecated the browser support for that version. Unfortunately, that means solving the problem requires quite a lot of work.

Happy to review PRs and/or have a chat with anyone willing to fix this. I currently have a MacBook Pro (work...) so canna really do the full work, but I offer my support and/or guidance.

@IsmaelMartinez
Copy link
Owner

maybe try with other user agents. replacing the "yournewuseragent" for something other than "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3202.75 Safari/537.36" and starting the app like this :

teams-for-linux --chromeUserAgent "yournewuseragent"

If you find a userAgent that works the fix is fairly simple.

@Surowa
Copy link

Surowa commented Jun 3, 2021

It works with user agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3831.6 Safari/537.36

Is there a reason why it was downgraded in commit 7d799b6?
Screen sharing is quite nice to have

@IsmaelMartinez
Copy link
Owner

The explanation is in the PR #409 Basically, screensharing stopped working then. That might have changed (would not be the 1st time they do that).

can you confirm screensharing does work when executing:

teams-for-linux --chromeUserAgent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3831.6 Safari/537.36"

If that is the case, that commit/pr is a good example of what needs to be done. I will be happy to release a Pre-release with it and see if anyone complains (and then release it). Thanks for checking!

@skyghis
Copy link
Contributor

skyghis commented Jun 3, 2021

I tested without success under Ubuntu 20.10 with version 1.0.6 with this cmd line :

teams-for-linux --chromeUserAgent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3831.6 Safari/537.36"

@Surowa how did you make it work ?

@DrasLorus
Copy link

DrasLorus commented Jun 3, 2021

I tested without more success on Archlinux.

I also contacted Microsoft about official App that is not working neither and the answer was basically that only Ubuntu 18.04/20.04, Fedora 30 and CentOS 8 was supported.

I don't know if it is related. Maybe a different graphic package?

@IsmaelMartinez
Copy link
Owner

To elaborate in the reasoning of the moving to version 71.

In this limits page:
https://docs.microsoft.com/en-us/microsoftteams/limits-specifications-teams#browsers

Did indicated screensharing not available for browsers prior v72
image

We then moved back as the implementation change from ms teams means they didn't try to use the browser extension that we are using to "plug-in" the screensharing.

Arguveably, someone could implement the screensharing in a better way using a newer version of electron, but that would be quite a bit of work. Happy to help but I can't lead the development (apologies, no time in my hand). But I am happy to share my knowledge and provide support if people gets stuck. Thanks in advance!

@IsmaelMartinez
Copy link
Owner

Hi all, looks like @jijojosephk found a workaround for the screensharing issue.

#406 (comment)

I got no time, apologies, but happy to review and approve/merge PRs

jijojosephk added a commit to jijojosephk/teams-for-linux that referenced this issue Jun 18, 2021
@jijojosephk
Copy link
Collaborator

jijojosephk commented Jun 18, 2021

@IsmaelMartinez PR is generated. Could you try? I've upgraded all modules to latest version. Fixed some migration related issues and our screen sharing issue.

@DrasLorus
Copy link

DrasLorus commented Jun 18, 2021

Hi all. @jijojosephk , I have tried your version on Archlinux with nodejs-lts-fermium, and i get the following error in terminal:
image

Tried with electron 12.0.9, 6.1.12 and 7.3.3. I have built the app using yarnpkg.

Edit: On one hand, screen sharing does not work on my machine, nor sharing selector window. On an other hand, something is happening now in the terminal, it was not the case before. Seems the problem is being narrowed down?

@skyghis
Copy link
Contributor

skyghis commented Jun 18, 2021

Tested your branch @jijojosephk, and it runs fine on Ubuntu 20.04 (compiled on a docker container).

I tested sharing of my screen without issue. I can select the monitor to share (multi screen).
Unfortunately it is no longer possible to select a single window.

Thanks for the work !

@jijojosephk
Copy link
Collaborator

@DrasLorus Isn't the application opening at all? My development environment is Ubuntu 20.04. LTS, Node 14.17.1, NPM 7.17.0, Electron 13.1.2

@jijojosephk
Copy link
Collaborator

Tested your branch @jijojosephk, and it runs fine on Ubuntu 20.04 (compiled on a docker container).

I tested sharing of my screen without issue. I can select the monitor to share (multi screen).
Unfortunately it is no longer possible to select a single window.

Thanks for the work !

Thank you. Currently, it considers only screen. I can include windows as well. I would generate another PR after that. Glad that my work helped somebody. Good day!

@skyghis
Copy link
Contributor

skyghis commented Jun 18, 2021

I can include windows as well. I would generate another PR after that. Glad that my work helped somebody. Good day!

I'll wait for your next PR, thanks !
Displaying a single windows is an easy way to manage your privacy during a presentation.

@DrasLorus
Copy link

DrasLorus commented Jun 18, 2021

@jijojosephk it is! Everything else works fine with the yarnpkg && electron . build. I tried with npm install && electron . and get that:
image

Maybe I build it wrong...
Again, electron 12.0.9 but NPM 7.17.0 and Node 14.16.0 (at least on the machine, i don't fully understand NPM/yarn local installations, absolute noob here ).

EDIT: Modifications on the screenshot

@skyghis
Copy link
Contributor

skyghis commented Jun 18, 2021

@DrasLorus the documentation says to use yarn start to run or yarn install && yarn run dist:linux to create package.

I personally used yarn install && yarn run dist:linux and then run the bin from the tgz version.

jijojosephk added a commit to jijojosephk/teams-for-linux that referenced this issue Jun 18, 2021
@jijojosephk
Copy link
Collaborator

I can include windows as well. I would generate another PR after that. Glad that my work helped somebody. Good day!

I'll wait for your next PR, thanks !
Displaying a single windows is an easy way to manage your privacy during a presentation.

I've pushed the changes. Could you try?

@jijojosephk
Copy link
Collaborator

jijojosephk commented Jun 18, 2021

@jijojosephk it is! Everything else works fine with the yarnpkg && electron . build. I tried with npm install && electron . and get that:
image

Maybe I build it wrong...
Again, electron 12.0.9 but NPM 7.17.0 and Node 14.16.0 (at least on the machine, i don't fully understand NPM/yarn local installations, absolute noob here ).

EDIT: Modifications on the screenshot

These messages are logged even for me., spellchecker module has some issues. Not compatible with latest electron. But suppressed with turning off a flag. You may see that in the commit. It should be OK if application is working and not getting crashed. When teams is opened in chrome browser, you would see a lot of errors in console window as well.

@skyghis
Copy link
Contributor

skyghis commented Jun 18, 2021

I've pushed the changes. Could you try?

Single window sharing works perfectly 👍

There are two minor points :

  • When the windows list open, Teams is reduced and need to be focused manually to select the window.
  • The shared screen preview window no longer exists.

Thanks for the work !

Edit: typo

@jijojosephk
Copy link
Collaborator

I've pushed the changes. Could you try?

Single window sharing works perfectly

There are two minor points :

  • When the windows list open, Teams is reduced and need to be focused manually to select the window.
  • The shared screen preview windows no longer exists.

Thanks for the work !

Could you share some screenshots if possible?

@DrasLorus
Copy link

@DrasLorus the documentation says to use yarn start to run or yarn install && yarn run dist:linux to create package.

I personally used yarn install && yarn run dist:linux and then run the bin from the tgz version.

Aaaand it works. Thanks a lot.

@frealgagu
Copy link

Does it work with latest versions of nodejs?

@jijojosephk
Copy link
Collaborator

@frealgagu It's tested on Node 14 and npm 7 running under Ubuntu 20.04

@frealgagu
Copy link

I've pushed the changes. Could you try?

Single window sharing works perfectly

There are two minor points :

  • When the windows list open, Teams is reduced and need to be focused manually to select the window.
  • The shared screen preview window no longer exists.

Thanks for the work !

Edit: typo

Same as @skyghis , working in ArchLinux, thanks a lot @jijojosephk

@jijojosephk
Copy link
Collaborator

I've pushed the changes. Could you try?

Single window sharing works perfectly
There are two minor points :

  • When the windows list open, Teams is reduced and need to be focused manually to select the window.
  • The shared screen preview window no longer exists.

Thanks for the work !
Edit: typo

Same as @skyghis , working in ArchLinux, thanks a lot @jijojosephk

I changed the screen sharing view from BrowserWindow to BrowserView. Got less time on UI fine tuning. Could you give a try? I'll push another PR.

@jijojosephk
Copy link
Collaborator

@IsmaelMartinez @DrasLorus @skyghis @frealgagu @The-Compiler @danilkhromov I've pushed another set of changes which now allows to choose a screen sharing quality. This would list all the qualities from 720p to 4K upon detecting the primary display dimensions. Teams might not support 4K, and even if it does, if the recipients can't support such quality, it's of no use. I'm unable to test 2K and 4K because my machine would not support. People who have higher graphics options could give a try. It might fail. But try it and let me know.
Good day!

Thanks for your work man!
Im gonna test this changes on monday, but in my case im not sure that im able to provide any valuable feedback since i only use 1080p screens atm. Also im thinking that 2k 4k outputs might an overkill since people should have good internet connection and thats not always the case, but maybe someone gonna find it useful.

Also im wondering is there a possibility that some of the future updates of ms teams for browser can break screen sharing again?

Just one thing, it will not show you 2K or 4K if the primary display does not support it. In your case, you would only see HD & FHD. Additional 2 will be shown to users who are having higher resolution displays.

@joakim-tjernlund
Copy link

Will Request Control/Give Control work as well now?

@jijojosephk
Copy link
Collaborator

Will Request Control/Give Control work as well now?

Currently it's not working that way. I'll investigate how that works in Chrome browser. If it's working there, then there's some hope for investigation and possibly finding the solution.

@danilkhromov
Copy link

@IsmaelMartinez @jijojosephk tested the pre-release version today, didnt notice any issues so far

@jijojosephk
Copy link
Collaborator

Will Request Control/Give Control work as well now?

Currently it's not working that way. I'll investigate how that works in Chrome browser. If it's working there, then there's some hope for investigation and possibly finding the solution.

@joakim-tjernlund on Google Chrome it does not show anything like that. Just a small floating component which let's you know that you're sharing screen.

@joakim-tjernlund
Copy link

@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 ?

@joakim-tjernlund
Copy link

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
Copy link
Collaborator

@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
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link

neokore commented Jun 29, 2021

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

@neokore
Copy link

neokore commented Jun 29, 2021

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
Copy link

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

@neokore
Copy link

neokore commented Jun 29, 2021

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
Copy link
Collaborator

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
Copy link

neokore commented Jun 29, 2021

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
Copy link
Collaborator

jijojosephk commented Jun 29, 2021

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
Copy link
Collaborator

@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. 😄

@danilkhromov
Copy link

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
Copy link

alfsch commented Jun 30, 2021

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
Copy link
Collaborator

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 😄 . 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
Copy link

alfsch commented Jun 30, 2021

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

@jijojosephk
Copy link
Collaborator

@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 😄 Glad that I could be a help to this group.

@DrasLorus
Copy link

DrasLorus commented Jul 1, 2021

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. 😃 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
Copy link
Collaborator

@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
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests