Jitsi meet electron desktop screen error

When I use the jitsi meet electronic, the following problems occur, depending on the permissions, but I just change the server URL to meet jit.si he’s fine

  at Object.dispatch (middleware.js:180:12)
    at Object.openDesktopPicker (conference.js:205:19)
    at Object.obtainScreenOnElectron (ScreenObtainer.js:132:44)
    at RTCUtils.js:489:13
    at new Promise (<anonymous>)
    at Bn._getDesktopMedia (RTCUtils.js:488:16)
    at Bn.<anonymous> (RTCUtils.js:616:25)
    at Bn.obtainAudioAndVideoPermissions (RTCUtils.js:725:16)
    at kc.obtainAudioAndVideoPermissions (RTC.js:223:16)
    at Object.createLocalTracks (JitsiMeetJS.js:318:20)
    at functions.js:175:20
    at async Object.toggleScreenSharing (conference.js:1723:17) 

Can you paste the full log?

index.js:154 2022-06-27T14:29:32.681Z [features/base/app] <APP.componentDidCatch>:  Error: Minified React error #152; visit https://reactjs.org/docs/error-decoder.html?invariant=152&args[]=Ple for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at index.js:150:361
    at Lo (index.js:176:171)
    at Wo (index.js:187:274)
    at Vo (index.js:186:173)
    at Ws (index.js:269:427)
    at Al (index.js:250:347)
    at xl (index.js:250:278)
    at Sl (index.js:250:138)
    at gl (index.js:243:163)
    at index.js:123:115
    at t.unstable_runWithPriority (index.js:18:343)
    at Wr (index.js:122:325)
    at Kr (index.js:123:61)
    at Gr (index.js:122:428)
    at bl (index.js:244:190)
    at Object.notify (Subscription.js:23:7)
    at t.notifyNestedSubs (Subscription.js:65:20)
    at n.notifySubscribers (Provider.js:59:29)
    at t.handleChangeWrapper (Subscription.js:70:12)
    at p (redux.js:220:32)
    at resemble.js:14:16
    at middleware.js:30:12
    at middleware.js:33:20
    at middleware.js:19:20
    at middleware.web.js:29:20
    at middleware.any.js:47:20
    at middleware.js:67:12
    at middleware.js:45:12
    at middleware.js:65:12
    at middleware.js:20:20
    at middleware.js:134:12
    at middleware.js:71:12
    at middleware.js:79:20
    at middleware.js:39:12
    at middleware.js:221:12
    at middleware.js:80:20
    at middleware.js:80:12
    at middleware.js:31:20
    at middleware.web.js:46:12
    at middleware.web.js:24:12
    at middleware.any.js:94:20
    at middleware.js:80:12
    at middleware.web.js:296:22
    at middleware.js:50:12
    at middleware.js:25:12
    at middleware.js:16:20
    at middleware.js:21:12
    at middleware.js:23:12
    at middleware.js:21:20
    at middleware.js:16:16
    at middleware.js:39:20
    at middleware.js:33:12
    at middleware.js:260:12
    at middleware.js:39:12
    at middleware.js:24:12
    at middleware.js:28:20
    at middleware.web.js:20:20
    at middleware.js:42:20
    at middleware.js:236:12
    at middleware.js:21:20
    at middleware.js:147:12
    at middleware.js:44:12
    at middleware.js:49:12
    at middleware.js:93:20
    at middleware.js:12:20
    at middleware.js:39:12
    at middleware.js:35:12
    at middleware.web.js:60:12
    at middleware.any.js:109:12
    at middleware.js:203:12
    at middleware.js:106:20
    at middleware.any.js:46:12
    at middleware.js:53:16
    at middleware.js:27:12
    at middleware.js:23:20
    at middleware.web.js:11:20
    at middleware.web.js:36:12
    at middleware.any.js:112:12
    at middleware.js:16:20
    at middleware.js:91:12
    at middleware.js:75:12
    at middleware.js:24:20
    at middleware.js:20:12
    at middleware.js:15:20
    at middleware.js:197:12
    at middleware.js:23:20
    at middleware.js:25:12
    at middleware.js:76:20
    at middleware.js:244:12
    at middleware.web.js:26:12
    at middleware.js:201:12
    at middleware.js:38:12
    at middleware.web.js:125:12
    at Object.dispatch (middleware.js:180:12)
    at Object.openDesktopPicker (conference.js:205:19)
    at Object.obtainScreenOnElectron (ScreenObtainer.js:132:44)
    at RTCUtils.js:489:13
    at new Promise (<anonymous>)
    at Bn._getDesktopMedia (RTCUtils.js:488:16)
    at Bn.<anonymous> (RTCUtils.js:616:25)
    at Bn.obtainAudioAndVideoPermissions (RTCUtils.js:725:16)
    at kc.obtainAudioAndVideoPermissions (RTC.js:223:16)
    at Object.createLocalTracks (JitsiMeetJS.js:318:20)
    at functions.js:175:20
    at async Object.toggleScreenSharing (conference.js:1723:17) 

That’s weird. What domain does this happen on?

The jitsi meet server built by me uses HTTPS self signed certificates, and it is no problem to share on the web screen

Any ideas?

I wonder if it could be related to the self-signed cert, Electron does certificate checks. Can’t you use a real cert?

Thank you for your reply. I have solved this problem because there is a problem in my server, react, when rendering.

I would like to use lib-jitsi-meet to use electron instead of iframe API for screen sharing. I can use it directly

JitsiMeetJS. createLocalTracks({devices:"desktop"})

Failed to detect desktop picker will appear
Because window The jitsimeetscreenobtainer object is in the jitsi-meet project, not in the lib-jitsi-meet project.
Is there any good practice and documentation for screen sharing using lib-jitsi-meet?

Our electron-sdk is based around the iframe. If you are not using it then you’ll need to build it yourself.