Add --time-limit

Add an option to stop scrcpy automatically after a given delay.

PR #4052 <https://github.com/Genymobile/scrcpy/pull/4052>
Fixes #3752 <https://github.com/Genymobile/scrcpy/issues/3752>
This commit is contained in:
Romain Vimont 2023-06-01 18:46:50 +02:00
parent 5042f8de93
commit d3c2955fb9
12 changed files with 216 additions and 0 deletions

View file

@ -142,6 +142,7 @@ struct scrcpy_options {
sc_tick display_buffer;
sc_tick audio_buffer;
sc_tick audio_output_buffer;
sc_tick time_limit;
#ifdef HAVE_V4L2
const char *v4l2_device;
sc_tick v4l2_buffer;