Skip to main content
Version: next

cameraZoom

info

Added in Scrcpy 4.0

  • Type: number
  • Default value: 1

Sets the zoom level for the camera when using camera video source.

The supported zoom range for each camera can be found using --list-cameras. Any value outside the supported range will be clamped to the nearest valid value.

This option only affects the initial value. To change the zoom level at runtime, use the cameraZoomIn and cameraZoomOut control messages.

Example

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

const options = new ScrcpyOptions4_0({
videoSource: "camera",
cameraZoom: 1.5, // 1.5x zoom at startup
});