video
info
Added in Scrcpy 2.1
- Type:
boolean - Default value:
true
Disables the video socket, allowing an audio only mode.
Control messages that requires video size won't work with video disabled.
Related options
audio: Controls whether the audio socket is enabledcontrol: Controls whether the control socket is enabled
Example
import { ScrcpyOptions2_1 } from "@yume-chan/scrcpy";
const options = new ScrcpyOptions2_1({
video: false, // Disable video socket for audio-only mode
});