|
@@ -128,7 +128,7 @@ const ScreenObtainer = {
|
128
|
128
|
*/
|
129
|
129
|
obtainScreenOnElectron(onSuccess, onFailure, options = {}) {
|
130
|
130
|
if (window.JitsiMeetScreenObtainer && window.JitsiMeetScreenObtainer.openDesktopPicker) {
|
131
|
|
- const { desktopSharingFrameRate, desktopSharingSources } = this.options;
|
|
131
|
+ const { desktopSharingFrameRate, desktopSharingResolution, desktopSharingSources } = this.options;
|
132
|
132
|
|
133
|
133
|
window.JitsiMeetScreenObtainer.openDesktopPicker(
|
134
|
134
|
{
|
|
@@ -170,8 +170,10 @@ const ScreenObtainer = {
|
170
|
170
|
chromeMediaSourceId: streamId,
|
171
|
171
|
minFrameRate: desktopSharingFrameRate?.min ?? SS_DEFAULT_FRAME_RATE,
|
172
|
172
|
maxFrameRate: desktopSharingFrameRate?.max ?? SS_DEFAULT_FRAME_RATE,
|
173
|
|
- maxWidth: window.screen.width,
|
174
|
|
- maxHeight: window.screen.height
|
|
173
|
+ minWidth: desktopSharingResolution?.width?.min,
|
|
174
|
+ minHeight: desktopSharingResolution?.height?.min,
|
|
175
|
+ maxWidth: desktopSharingResolution?.width?.max ?? window.screen.width,
|
|
176
|
+ maxHeight: desktopSharingResolution?.height?.max ?? window.screen.height
|
175
|
177
|
}
|
176
|
178
|
}
|
177
|
179
|
};
|