mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-14 10:24:29 +01:00
Originally, the default scrcpy window always displayed the video stream. Since the OTG mode window only contains the scrcpy logo, it was implemented as a separate component [1]. Later, the --no-video option was added [2] to control the device without mirroring (while still using an adb connection, unlike OTG mode). To support this, sc_screen gained the ability to display a window containing only the scrcpy logo, like in OTG mode. As a result, the main sc_screen component can now be reused in OTG mode, allowing removal of the OTG-specific duplicate implementation (sc_screen_otg). [1] commit91418c79ab[2] commit8c650e53cdRefs #2974 <https://github.com/Genymobile/scrcpy/pull/2974> Refs #3978 <https://github.com/Genymobile/scrcpy/pull/3978> PR #6649 <https://github.com/Genymobile/scrcpy/pull/6649>