Closed DamirDautov closed 1 week ago
I'm not sure that's possible. @jallamsetty1 ?
Yes, it is not possible. The video constraints has no affect on screenshare capture resolution. The WebRTC spec doesn't let you control the capture resolution only the type of display surface. You will have to use applyContraints on the captured stream to change the resolution. I am closing this issue for this reason.
What happened?
While using self-hosted Jitsi we happened to notice that we cannot limit max resolution of screen sharing by environment variables. The common scenario is when user has 4k monitor and tries to share their screen to several users (so not p2p) which leads to high traffic consumption and reduce of video resolution (from camera and etc). We tried to limit it by setting variables such as
config.resolution
andconfig.constraints
:but that didn't take any affect on screensharing, only for camera video. Also we've tried to set
desktopSharingFrameRate
to high numbers so that users get lower resolution, but also no luck:Do we have any opportunity to lower or limit screen sharing resolution? Maybe I'm just blind and could not find something obvious. Any help appreciated. Thanks in advance!
Platform
Browser / app / sdk version
127.0.6533.120
Relevant log output
No response
Reproducibility
More details?
No response