RocketChat / Rocket.Chat.Electron

Official OSX, Windows, and Linux Desktop Clients for Rocket.Chat
https://rocket.chat/
MIT License
1.59k stars 704 forks source link

Black screen while screen sharing in version 3.9.11 #2788

Open brf153 opened 10 months ago

brf153 commented 10 months ago

Search before asking

Operating System

Operating System Version

Ubuntu 22.04

It happens on the web browser too?

No, it just happens on the Desktop app

Rocket.Chat Desktop App Version

3.9.11

Rocket.Chat Server Version

6.5

Describe the bug

Black screen while screen sharing(for entire screen). It works for application window.

As seen from my Desktop app: Screenshot from 2023-12-03 12-56-00

As seen from my mobile when I joined the meet: WhatsApp Image 2023-12-03 at 12 48 47

How to Reproduce

Just make a video call in any group and try to share screen (share the entire screen)

Describe your Expected behavior

It should share the entire screen and not display a black screen. It works in the browser; you can check it there for a sample.

Anything else

No response

Are you willing to submit a code contribution?

brf153 commented 10 months ago

Hello Team Rocket.Chat, may I work on this issue? I would be delighted to contribute to it.

brf153 commented 10 months ago

@jeanfbrito sir I'm experiencing an issue while debugging my Electron app during screen sharing. When I share the screen, two screens appear. I've opened the DevTools for both screens. While the console logs for the Rocket.Chat desktop app are working fine, the other screen, which displays the options "Your entire screen" and "Application window" after clicking "Share your screen," does not show my console.log statements.

I've added console.log("Hello world") in the files inside the "videoCallWindow" folder, including ipc.ts, screenSharePicker.ts, video-call-window.ts, and videoCallWindow.ts. Despite this, the console does not display 'Hello world.'

How can I resolve this issue?

jeanfbrito commented 8 months ago

@brf153 in settings view, please click on:

image

Lets see if it asks for permission then.