Skip to main content
Version: next

flexDisplay

info

Added in Scrcpy 4.0

  • Type: boolean
  • Default value: false

Enables flexible display mode for video streaming.

When enabled, a virtual display can be resized dynamically along with the client window. To resize the display programmatically, use the resizeDisplay control message.

  • newDisplay: Creates a new virtual display for video streaming
  • keepActive: Keeps the device active while connected

Example

import { ScrcpyOptions4_0 } from "@yume-chan/scrcpy";

const options = new ScrcpyOptions4_0({
newDisplay: "/192", // Create a virtual display with 192 dpi
flexDisplay: true, // Enable flexible display mode
});