client-sdk-flutter icon indicating copy to clipboard operation
client-sdk-flutter copied to clipboard

[bug] Screen share resolution not working on Windows

Open IGORSERGEY opened this issue 1 year ago • 0 comments

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

  1. 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,
                )),
        ),
    );
    //...
}
  1. build and launch example app
  2. Connect to room Connect options: all options = false
  3. Share the screen. Choose "Entire screen"

Actual Behavior Screen share resolution equals display resolution: image

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

IGORSERGEY avatar Oct 29 '24 06:10 IGORSERGEY