Skip to content

Commit

Permalink
Update documentation for --no-window
Browse files Browse the repository at this point in the history
  • Loading branch information
rom1v committed Apr 20, 2024
1 parent 1b12dc7 commit b0bfc9d
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 6 deletions.
11 changes: 9 additions & 2 deletions doc/audio.md
Expand Up @@ -28,10 +28,17 @@ To disable only the audio playback, see [no playback](video.md#no-playback).

## Audio only

To play audio only, disable the video:
To play audio only, disable video and control:

```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
```

Expand Down
10 changes: 10 additions & 0 deletions doc/control.md
Expand Up @@ -15,6 +15,16 @@ scrcpy -n # short version
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

Any time the Android clipboard changes, it is automatically synchronized to the
Expand Down
13 changes: 9 additions & 4 deletions doc/recording.md
Expand Up @@ -58,12 +58,10 @@ orientation](video.md#orientation).

## No playback

To disable playback while recording:
To disable playback and control while recording:

```bash
scrcpy --no-playback --record=file.mp4
scrcpy -Nr file.mkv
# interrupt recording with Ctrl+C
scrcpy --no-playback --no-control --record=file.mp4
```

It is also possible to disable video and audio playback separately:
Expand All @@ -73,6 +71,13 @@ It is also possible to disable video and audio playback separately:
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

To limit the recording time:
Expand Down
9 changes: 9 additions & 0 deletions doc/window.md
@@ -1,5 +1,14 @@
# 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

By default, the window title is the device model. It can be changed:
Expand Down

0 comments on commit b0bfc9d

Please sign in to comment.