mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
Allow recording while using replay/streaming and option to save 1 min or 10 min
This commit is contained in:
@@ -119,6 +119,8 @@ namespace gsr {
|
||||
int32_t replay_time = 60;
|
||||
ConfigHotkey start_stop_hotkey;
|
||||
ConfigHotkey save_hotkey;
|
||||
ConfigHotkey save_1_min_hotkey;
|
||||
ConfigHotkey save_10_min_hotkey;
|
||||
};
|
||||
|
||||
struct ScreenshotConfig {
|
||||
|
||||
@@ -59,6 +59,8 @@ namespace gsr {
|
||||
void toggle_stream();
|
||||
void toggle_replay();
|
||||
void save_replay();
|
||||
void save_replay_1_min();
|
||||
void save_replay_10_min();
|
||||
void take_screenshot();
|
||||
void take_screenshot_region();
|
||||
void show_notification(const char *str, double timeout_seconds, mgl::Color icon_color, mgl::Color bg_color, NotificationType notification_type, const char *capture_target = nullptr);
|
||||
@@ -87,7 +89,7 @@ namespace gsr {
|
||||
void update_notification_process_status();
|
||||
void save_video_in_current_game_directory(const char *video_filepath, NotificationType notification_type);
|
||||
void on_replay_saved(const char *replay_saved_filepath);
|
||||
void update_gsr_replay_save();
|
||||
void process_gsr_output();
|
||||
void update_gsr_process_status();
|
||||
void update_gsr_screenshot_process_status();
|
||||
|
||||
@@ -96,7 +98,7 @@ namespace gsr {
|
||||
void update_power_supply_status();
|
||||
void update_system_startup_status();
|
||||
|
||||
void on_stop_recording(int exit_code);
|
||||
void on_stop_recording(int exit_code, const std::string &video_filepath);
|
||||
|
||||
void update_ui_recording_paused();
|
||||
void update_ui_recording_unpaused();
|
||||
@@ -110,7 +112,10 @@ namespace gsr {
|
||||
void update_ui_replay_started();
|
||||
void update_ui_replay_stopped();
|
||||
|
||||
void prepare_gsr_output_for_reading();
|
||||
void on_press_save_replay();
|
||||
void on_press_save_replay_1_min_replay();
|
||||
void on_press_save_replay_10_min_replay();
|
||||
bool on_press_start_replay(bool disable_notification, bool finished_region_selection);
|
||||
void on_press_start_record(bool finished_region_selection);
|
||||
void on_press_start_stream(bool finished_region_selection);
|
||||
@@ -211,7 +216,6 @@ namespace gsr {
|
||||
std::function<void()> on_region_selected;
|
||||
|
||||
std::string recording_capture_target;
|
||||
std::string replay_capture_target;
|
||||
std::string screenshot_capture_target;
|
||||
|
||||
std::unique_ptr<CursorTracker> cursor_tracker;
|
||||
|
||||
@@ -22,6 +22,8 @@ namespace gsr {
|
||||
NONE,
|
||||
REPLAY_START_STOP,
|
||||
REPLAY_SAVE,
|
||||
REPLAY_SAVE_1_MIN,
|
||||
REPLAY_SAVE_10_MIN,
|
||||
RECORD_START_STOP,
|
||||
RECORD_PAUSE_UNPAUSE,
|
||||
STREAM_START_STOP,
|
||||
@@ -56,6 +58,7 @@ namespace gsr {
|
||||
std::unique_ptr<RadioButton> create_enable_joystick_hotkeys_button();
|
||||
std::unique_ptr<List> create_show_hide_hotkey_options();
|
||||
std::unique_ptr<List> create_replay_hotkey_options();
|
||||
std::unique_ptr<List> create_replay_partial_save_hotkey_options();
|
||||
std::unique_ptr<List> create_record_hotkey_options();
|
||||
std::unique_ptr<List> create_stream_hotkey_options();
|
||||
std::unique_ptr<List> create_screenshot_hotkey_options();
|
||||
@@ -89,6 +92,8 @@ namespace gsr {
|
||||
|
||||
Button *turn_replay_on_off_button_ptr = nullptr;
|
||||
Button *save_replay_button_ptr = nullptr;
|
||||
Button *save_replay_1_min_button_ptr = nullptr;
|
||||
Button *save_replay_10_min_button_ptr = nullptr;
|
||||
Button *start_stop_recording_button_ptr = nullptr;
|
||||
Button *pause_unpause_recording_button_ptr = nullptr;
|
||||
Button *start_stop_streaming_button_ptr = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user