Add option to select USB or TCP/IP devices
If several devices are connected (as listed by `adb devices`), it was necessary to provide the explicit serial via -s/--serial. If only one device is connected via USB (respectively, via TCP/IP), it might be convenient to select it automatically. For this purpose, two new options are introduced: - -U/--select-usb: select the single device connected over USB - -T/--select-tcpip: select the single device connected over TCP/IP
This commit is contained in:
@@ -273,6 +273,14 @@ Set the TCP port of the adb tunnel to reach the scrcpy server. This option autom
|
||||
|
||||
Default is 0 (not forced): the local port used for establishing the tunnel will be used.
|
||||
|
||||
.TP
|
||||
.B \-T, \-\-select\-tcpip
|
||||
Use TCP/IP device (if there is exactly one).
|
||||
|
||||
.TP
|
||||
.B \-U, \-\-select\-usb
|
||||
Use USB device (if there is exactly one).
|
||||
|
||||
.TP
|
||||
.BI "\-\-v4l2-sink " /dev/videoN
|
||||
Output to v4l2loopback device.
|
||||
|
||||
Reference in New Issue
Block a user