Skip to main content
Version: next

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.

  • audio: Controls whether the audio socket is enabled
  • control: 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
});