mPyKen / ScreenAreaShare

Share selected area of the screen in applications that do not support this, e.g. Teams.
MIT License
147 stars 19 forks source link

White Streaming window without controls #5

Open gn0m3r4l opened 2 years ago

gn0m3r4l commented 2 years ago

Hey there,

I downloaded and started version 1.3.1 (with and without admin priv.). I get the mentioned two windows and can drag them both. But the streaming window is always empty (completely white). I do not even get any control panels like a close button. Do I need to start a Teams Call for showing the content?

mPyKen commented 2 years ago

I haven't seen that happening... Which version of windows are you running? Does it work on another device or another user account?

gn0m3r4l commented 2 years ago

Unfortunately I cannot test on any other device.

Windows Version: Edition Windows 10 Enterprise Version 20H2 Installiert am ‎28.‎01.‎2022 Betriebssystembuild 19042.1645 Leistung Windows Feature Experience Pack 120.2212.4170.0

gn0m3r4l commented 2 years ago

By accident, I noticed that it seems to be a display issue. I run my internal notebook display aside of an 49" widescreen (Samsung G9, connected via displayport) display. 49" is main display, extending to the 15" notebook display.

If I move the red bordered windows over to the internal display, the preview window shows content. But as soon as I move it back to the larger display, the described white content appers.

mPyKen commented 2 years ago

Oh I see, I think multiple displays and/or their arrangement is causing the problem. Will it work if you turn your notebook display off? I can also try to reproduce this issue if you could share your exact display arrangement settings

gn0m3r4l commented 2 years ago

Notebook display off won't fix. Seems to be related to the main display. Display is: Samsung Odyssey G9 Curved Gaming Monitor C49G93TSSR, 49 Zoll

By quickly viewing your code, you handle high dpi in a special way. Could this be related?

gn0m3r4l commented 2 years ago

I downloaded you code, running it in intellij or vs code. Which is the main class to be started? npm install causes errors for me

mPyKen commented 2 years ago

npm install causes errors for me

On my end it works with node version 14.17.3 and npm 6.14.13

you handle high dpi in a special way

you can try running the executable with --consider-scale parameter which causes not to forcibly set scaling factor

gn0m3r4l commented 2 years ago

I will try tomorrow morning and keep you up to date

gn0m3r4l commented 2 years ago

I updated my node version which seemed to be the installation problem.

But: Running from intellij with "npm run", it won't work even as descriped above. Both windows open, but dragging the recording window only displays the new location in IDE log.

mPyKen commented 2 years ago

I am out of clues... sorry

Kotaless commented 2 years ago

@mPyKen hello. I'm facing the same issue when I enable "10-bit pixel format" in AMD software. image

mPyKen commented 2 years ago

I see, interesting! thanks for reporting. I don't have a 10 bit pixel format monitor, it will be tough to figure out how to solve this...

Kotaless commented 2 years ago

Let me know if you need log or tester. Thanks for your work.

Not sure if it can be helpful but there is a similar software working fine on 10-bit. https://github.com/tom-englert/RegionToShare

mPyKen commented 2 years ago

RegionToShare is using .NET and does not depend on electron which seems to be the problem here: related electron issue links to chromium issue. If you start a meeting application within chromium and try to share some content, do you see your desktop as an option to select from?

Kotaless commented 2 years ago

I can share my screen in Edge chromium. Btw I'm not using HDR, just 10-bit color.

image