Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Screen share resolution not working on Windows #622

Open
IGORSERGEY opened this issue Oct 29, 2024 · 0 comments
Open

[bug] Screen share resolution not working on Windows #622

IGORSERGEY opened this issue Oct 29, 2024 · 0 comments

Comments

@IGORSERGEY
Copy link

IGORSERGEY commented Oct 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant