Romain Vimont

Results 1933 comments of Romain Vimont

> B/w another way of doing it without code changes would be to kill scrcpy's server process on the device Oh, that's true! https://github.com/Genymobile/scrcpy/issues/818#issuecomment-535931801

> rom1v i have added SDL_AddTimer and hardcoded the same for 5 seconds timer it is working properly in linux and closing after 5 seconds but when bult using makefile...

You should do that after SDL initialization: https://github.com/Genymobile/scrcpy/blob/31bd95022bc525be42ca273d59a3211d964d278b/app/src/scrcpy.c#L52

@Maciejszuchta Or close the window. (Unfortunately, on Windows, Ctrl+C just kills the process, and the recording is corrupted.)

Oh, that's not expected at all. (The scrcpy window, not the console window.) Which version of scrcpy? Is there any error message in the console when you close the scrcpy...

https://github.com/Genymobile/scrcpy/issues/818#issuecomment-535931801

What command do you execute exactly? I just tested with v1.12.1. I executed: ``` scrcpy -r file.mkv ``` and ``` scrcpy -r file.mp4 ``` I closed the scrcpy window (not...

Ah ok, that's expected then, you close the console, not the scrcpy window :) See https://github.com/Genymobile/scrcpy/issues/818#issuecomment-535931801 for a workaround.

For reference: [`SDL_CaptureMouse`](https://wiki.libsdl.org/SDL_CaptureMouse).

Yes, sorry for not being clear. I just added a link to the API which would probably be required to implement the feature.