Skip to main content
Version: next

cameraFps

info

Added in Scrcpy 2.2

  • Type: number | undefined
  • Default value: undefined

Sets the camera capture frame rate when videoSource is set to "camera".

When not specified, Scrcpy will use the default frame rate. This option allows specifying the frame rate in frames per second (FPS) for camera capture.

  • videoSource: Must be set to "camera" for this option to take effect
  • cameraSize: Sets the camera capture size
  • cameraAr: Sets the camera aspect ratio

Example

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

const options = new ScrcpyOptions2_2({
videoSource: "camera", // Enable camera source
cameraFps: 30, // Set camera capture frame rate to 30 FPS
});