MyGit

v1.22

Genymobile/scrcpy

版本发布时间: 2022-01-29 23:14:13

Genymobile/scrcpy最新发布版本:v2.7(2024-09-16 03:30:02)

To receive a notification on new releases, click on Watch > Custom > Releases on the top.


scrcpy v1.22

Changes since v1.21:


Highlights

Add HID mouse support

Similar to the --hid-keyboard (or -K) added in scrcpy v1.20 (#2632), this release introduces a new option --hid-mouse (or -M) (#2916):

scrcpy -K    # HID keyboard
scrcpy -M    # HID mouse
scrcpy -KM   # HID keyboard and mouse

The mouse is "captured": the mouse pointer disappears from the computer and appears on the Android device.

Special captures keys, either Alt or Super, toggle (disable or enable) the mouse capture. Use one of them to give the control of the mouse back to the computer.

These capture keys do not conflict with shortcuts, since a shortcut is always a combination of the MOD key and some other key, while the capture key triggers an action only if it is pressed and released alone.

Like HID keyboard, it works only when the device is connected via USB, and is only supported on Linux.

OTG mode

A new option --otg (#2974) allows to run scrcpy with only physical keyboard (#2632) and mouse (#2916) simulation, without mirroring and without requiring adb (USB debugging), as if the computer keyboard and mouse were plugged directly to the device via an OTG cable.

scrcpy --otg
# Pass the serial if several USB devices are available
scrcpy --otg -s 0123456789abcdef

This opens a window (with just the scrcpy logo, there is no mirroring), which, when focused, fowards the keyboard and mouse to the device:

otg

The mouse capture works the same as explained in the previous section.

Since it works even with USB debugging disabled (i.e. without adb), it could for example be used to enable USB debugging on a device with a broken touchscreen (to then run scrcpy normally).

Like HID keyboard and HID mouse, this feature works only when the device is connected via USB, and is only supported on Linux.

DPI awareness on Windows

With HiDPI scaling on Windows, by default the quality was awful (#40, #2865).

The FAQ explained how to force correct HiDPI scaling by the application to fix the issue, but it was not convenient (and nobody reads the FAQ anyway).

On this new version, DPI awareness is enabled by default.

"Open a terminal here" on Windows

scrcpy is a command line application, and is configured with command line arguments.

On Windows, the file explorer lacks an "open a terminal here" feature, to open a terminal in the scrcpy directory, ready to execute adb or scrcpy.

The release now contains a file open_a_terminal_here.bat (#2970). Just double-click on it.

This will simplify passing arguments on Windows, and give a hint to users who don't know how to use the command line (remember, nobody reads the FAQ).

Auto-downscale on MediaCodec error

Some devices are not able to encode a video at the device screen definition. In that case, running scrcpy without argument just failed with an error.

The solution is simple: reduce the resolution (scrcpy -m1024 for example), as explained in the FAQ (did I mention that nobody reads the FAQ?).

In this new version, if the encoder fails before the first video frame, then scrcpy automatically retries with a lower definition (#2947), so in most cases it should work without explicitly passing a size argument.

It's better when it works out-of-the-box.

相关地址:原始地址 下载(tar) 下载(zip)

1、 scrcpy-server-v1.22 40KB

2、 scrcpy-win32-v1.22.zip 21.79MB

3、 scrcpy-win64-v1.22.zip 33.65MB

4、 SHA256SUMS.txt 264B

5、 SHA256SUMS.txt.asc 833B

查看:2022-01-29发行的版本