Chrome getDisplayMedia stream cropped when sharing non fullscreen application window

491 views Asked by At

I'm programming a web application that uses webrtc and the build in screen capture api of Chrome with getDisplayMedia.

In Chrome Browser i am experiencing a strange behaviour when sharing a non fullscreen window. The window is cropped by about 7 pixels on the left and bottom side in the captured stream. I noticed this effect when sharing a Mircosoft Excel Window (that is not in fullscreen), as there are plenty elements that are close the the window border. When i maximize the window it is not cropped in the stream.

I'm using Google Chrome Version 89.0.4389.128 (64-bit) and a standard 1080p monitor on Windows 10.

I've been able to replicate this issue in the getDiplayMedia demo of webrtc experiments, too. I didn't find an open bug report for Chrome for this issue. Did i miss something? Am i doing something wrong?

Any help or info would be highly appreciated.

1

There are 1 answers

0
NickG On BEST ANSWER

It seems that this is a Google Chrome issue in Windows that is reproducible in stable version 90.0.4430.93 and maybe earlier versions. For people interested in this issue, follow the bug report here.