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 🪲] #31

Closed
gurubyte opened this issue Mar 31, 2024 · 1 comment
Closed

[BUG 🪲] #31

gurubyte opened this issue Mar 31, 2024 · 1 comment

Comments

@gurubyte
Copy link

gurubyte commented Mar 31, 2024

Describe the bug 🐛

main panics when I run program with WithoutBorder setting. If I set Default, it works but it has borders, which I dont want to have.

Got The Flag: Yea This Works
thread 'main' panicked at src\commands\record_video.rs:102:26:
Screen Capture Failed: GraphicsCaptureApiError(BorderConfigUnsupported)

Expected behavior 📝
To record a video of a screen that lasts 6 seconds

OS 🤖
Windows
Version 10.0.19045
Build 19045

Additional context ➕

let settings = Settings::new(
    // Item To Captue
    primary_monitor,
    // Capture Cursor Settings
    CursorCaptureSettings::WithCursor,
    // Draw Borders Settings
    DrawBorderSettings::WithoutBorder,
    // The desired color format for the captured frame.
    ColorFormat::Rgba8,
    // Additional flags for the capture settings that will be passed to user defined `new` function.
    "Yea This Works".to_string(),
)
.unwrap();
@NiiightmareXD
Copy link
Owner

The API used is quite new and the DrawBorderSettings::WithoutBorder option is not supported in your Windows version you should use DrawBorderSettings::Default;

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

2 participants