Skip to main content
Version: next

displayId

  • Type: number
  • Default value: 0 (primary display)

Specifies which display to mirror.

On devices with multiple displays (such as foldable phones or tablets with external monitors), this option specifies which display to capture. If omitted, the primary display will be mirrored.

  • crop: Crops the video stream to a specific region

Example

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

const options = new ScrcpyOptions1_15({
displayId: 1, // Mirror secondary display
});