Add webcam support

This commit is contained in:
dec05eba
2025-12-25 08:19:07 +01:00
parent 1971d4a288
commit 13562d2aa1
19 changed files with 531 additions and 26 deletions

View File

@@ -61,6 +61,14 @@ namespace gsr {
bool record_cursor = true;
bool restore_portal_session = true;
std::string webcam_source = "";
bool webcam_flip_horizontally = false;
std::string webcam_video_format = "auto";
int32_t webcam_x = 0; // A value between 0 and 100 (percentage)
int32_t webcam_y = 0; // A value between 0 and 100 (percentage)
int32_t webcam_width = 30; // A value between 0 and 100 (percentage), 0 = Don't scale it
int32_t webcam_height = 30; // A value between 0 and 100 (percentage), 0 = Don't scale it
bool show_notifications = true;
bool use_led_indicator = false;
};