client-sdk-flutter
client-sdk-flutter copied to clipboard
[bug] Screen share resolution not working on Windows
Describe the bug The screen sharing resolution setting does not work as expected when specifying VideoParameters in ScreenShareCaptureOptions. Specifically, the selected resolution is not applied when choosing "Entire screen."
To Reproduce
- In example app:
lib/widgets/controls.dart - Specify VideoParameters in ScreenShareCaptureOptions
void _enableScreenShare() async {
//...
var track = await LocalVideoTrack.createScreenShareTrack(
ScreenShareCaptureOptions(
sourceId: source.id,
maxFrameRate: 15.0,
params: VideoParameters(
dimensions: VideoDimensionsPresets.h360_169,
encoding: VideoEncoding(
maxFramerate: 10,
maxBitrate: 3000 * 1000,
)),
),
);
//...
}
- build and launch example app
- Connect to room Connect options: all options = false
- Share the screen. Choose "Entire screen"
Actual Behavior
Screen share resolution equals display resolution:
Expected behavior The actual screen share resolution should be equal specified resolution Platform information
-
Flutter version: Flutter (Channel stable, 3.24.0, on Microsoft Windows [Version 10.0.22631.4317])
-
Plugin version: 2.3.0
-
Flutter target OS: Windows
-
Flutter target OS version:
-
Windows 11