Update documentation for --no-window
PR #4868 <https://github.com/Genymobile/scrcpy/pull/4868>
This commit is contained in:
parent
f7c0826360
commit
be9bf7d756
11
doc/audio.md
11
doc/audio.md
@ -28,10 +28,17 @@ To disable only the audio playback, see [no playback](video.md#no-playback).
|
|||||||
|
|
||||||
## Audio only
|
## Audio only
|
||||||
|
|
||||||
To play audio only, disable the video:
|
To play audio only, disable video and control:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
scrcpy --no-video
|
scrcpy --no-video --no-control
|
||||||
|
```
|
||||||
|
|
||||||
|
To play audio without a window:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# --no-video and --no-control are implied by --no-window
|
||||||
|
scrcpy --no-window
|
||||||
# interrupt with Ctrl+C
|
# interrupt with Ctrl+C
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -15,6 +15,16 @@ scrcpy -n # short version
|
|||||||
Read [keyboard](keyboard.md) and [mouse](mouse.md).
|
Read [keyboard](keyboard.md) and [mouse](mouse.md).
|
||||||
|
|
||||||
|
|
||||||
|
## Control only
|
||||||
|
|
||||||
|
To control only with UHID mouse and keyboard:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
scrcpy --no-video --no-audio --keyboard=uhid --mouse=uhid
|
||||||
|
scrcpy --no-video --no-audio -KM # short version
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Copy-paste
|
## Copy-paste
|
||||||
|
|
||||||
Any time the Android clipboard changes, it is automatically synchronized to the
|
Any time the Android clipboard changes, it is automatically synchronized to the
|
||||||
|
43
doc/otg.md
43
doc/otg.md
@ -1,19 +1,21 @@
|
|||||||
# OTG
|
# OTG
|
||||||
|
|
||||||
By default, _scrcpy_ injects input events at the Android API level. As an
|
By default, _scrcpy_ injects input events at the Android API level. As an
|
||||||
alternative, when connected over USB, it is possible to send HID events, so that
|
alternative, it is possible to send HID events, so that scrcpy behaves as if it
|
||||||
scrcpy behaves as if it was a physical keyboard and/or mouse connected to the
|
was a [physical keyboard] and/or a [physical mouse] connected to the Android
|
||||||
Android device.
|
device (see [keyboard](keyboard.md) and [mouse](mouse.md)).
|
||||||
|
|
||||||
A special mode allows to control the device without mirroring, using AOA
|
[physical keyboard]: keyboard.md#physical-keyboard-simulation
|
||||||
[keyboard](keyboard.md#aoa) and [mouse](mouse.md#aoa). Therefore, it is possible
|
[physical mouse]: physical-keyboard-simulation
|
||||||
to run _scrcpy_ with only physical keyboard and mouse simulation (HID), as if
|
|
||||||
the computer keyboard and mouse were plugged directly to the device via an OTG
|
|
||||||
cable.
|
|
||||||
|
|
||||||
In this mode, `adb` (USB debugging) is not necessary, and mirroring is disabled.
|
A special mode (OTG) allows to control the device using AOA
|
||||||
|
[keyboard](keyboard.md#aoa) and [mouse](mouse.md#aoa), without using _adb_ at
|
||||||
|
all (so USB debugging is not necessary). In this mode, video and audio are
|
||||||
|
disabled, and `--keyboard=aoa and `--mouse=aoa` are implicitly set.
|
||||||
|
|
||||||
This is similar to `--keyboard=aoa --mouse=aoa`, but without mirroring.
|
Therefore, it is possible to run _scrcpy_ with only physical keyboard and mouse
|
||||||
|
simulation, as if the computer keyboard and mouse were plugged directly to the
|
||||||
|
device via an OTG cable.
|
||||||
|
|
||||||
To enable OTG mode:
|
To enable OTG mode:
|
||||||
|
|
||||||
@ -23,7 +25,7 @@ scrcpy --otg
|
|||||||
scrcpy --otg -s 0123456789abcdef
|
scrcpy --otg -s 0123456789abcdef
|
||||||
```
|
```
|
||||||
|
|
||||||
It is possible to disable HID keyboard or HID mouse:
|
It is possible to disable keyboard or mouse:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
scrcpy --otg --keyboard=disabled
|
scrcpy --otg --keyboard=disabled
|
||||||
@ -35,3 +37,22 @@ It only works if the device is connected over USB.
|
|||||||
## OTG issues on Windows
|
## OTG issues on Windows
|
||||||
|
|
||||||
See [FAQ](/FAQ.md#otg-issues-on-windows).
|
See [FAQ](/FAQ.md#otg-issues-on-windows).
|
||||||
|
|
||||||
|
|
||||||
|
## Control-only
|
||||||
|
|
||||||
|
Note that the purpose of OTG is to control the device without USB debugging
|
||||||
|
(adb).
|
||||||
|
|
||||||
|
If you want to only control the device without mirroring while USB debugging is
|
||||||
|
enabled, then OTG mode is not necessary.
|
||||||
|
|
||||||
|
Instead, disable video and audio, and select UHID (or AOA):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
scrcpy --no-video --no-audio --keyboard=uhid --mouse=uhid
|
||||||
|
scrcpy --no-video --no-audio -KM # short version
|
||||||
|
scrcpy --no-video --no-audio --keyboard=aoa --mouse=aoa
|
||||||
|
```
|
||||||
|
|
||||||
|
One benefit of UHID is that it also works wirelessly.
|
||||||
|
@ -58,12 +58,10 @@ orientation](video.md#orientation).
|
|||||||
|
|
||||||
## No playback
|
## No playback
|
||||||
|
|
||||||
To disable playback while recording:
|
To disable playback and control while recording:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
scrcpy --no-playback --record=file.mp4
|
scrcpy --no-playback --no-control --record=file.mp4
|
||||||
scrcpy -Nr file.mkv
|
|
||||||
# interrupt recording with Ctrl+C
|
|
||||||
```
|
```
|
||||||
|
|
||||||
It is also possible to disable video and audio playback separately:
|
It is also possible to disable video and audio playback separately:
|
||||||
@ -73,6 +71,13 @@ It is also possible to disable video and audio playback separately:
|
|||||||
scrcpy --record=file.mkv --no-audio-playback
|
scrcpy --record=file.mkv --no-audio-playback
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To also disable the window:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
scrcpy --no-playback --no-window --record=file.mp4
|
||||||
|
# interrupt recording with Ctrl+C
|
||||||
|
```
|
||||||
|
|
||||||
## Time limit
|
## Time limit
|
||||||
|
|
||||||
To limit the recording time:
|
To limit the recording time:
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
# Window
|
# Window
|
||||||
|
|
||||||
|
## Disable window
|
||||||
|
|
||||||
|
To disable window (may be useful for recording or for playing audio only):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
scrcpy --no-window --record=file.mp4
|
||||||
|
# Ctrl+C to interrupt
|
||||||
|
```
|
||||||
|
|
||||||
## Title
|
## Title
|
||||||
|
|
||||||
By default, the window title is the device model. It can be changed:
|
By default, the window title is the device model. It can be changed:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user