fix: ensure screenshot interval is not applied to scrcpy if screenshot_metho_override is true

This commit is contained in:
2026-07-06 22:40:47 +08:00
parent bbc0d1352d
commit 844d390017
+3 -2
View File
@@ -199,8 +199,9 @@ class Screenshot(Adb, WSA, DroidCast, AScreenCap, Scrcpy, NemuIpc, LDOpenGL):
raise ScriptError(f'Unknown screenshot interval: {interval}')
# Screenshot interval in scrcpy is meaningless,
# video stream is received continuously no matter you use it or not.
if self.config.Emulator_ScreenshotMethod == 'scrcpy':
interval = 0.1
if not self.screenshot_method_override:
if self.config.Emulator_ScreenshotMethod == 'scrcpy':
interval = 0.1
if interval != self._screenshot_interval.limit:
logger.info(f'Screenshot interval set to {interval}s')