Open the scrcpy window earlier by rom1v · Pull Request #6694 · Genymobile/scrcpy (original) (raw)
Use a flag to indicate whether the window is currently shown.
This replaces the old has_video_window flag, which was true only when the window was shown and video was enabled.
This will simplify performing actions only when the window is currently shown.
Previously, the window was opened only once the first frame was available. Instead, open it as soon as the frame dimensions are known.
This is especially useful when the encoder does not produce an initial frame while the phone is turned off (e.g., with --no-power-on).
Fixes #6546 <#6546> PR #6694 <#6694>
Draw a dark 10x10 square in the top-right corner to distinguish a black frame from the absence of a frame (useful for debugging).
rom1v mentioned this pull request
rom1v mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})