cameraFacing
info
Added in Scrcpy 2.2
- Type:
"front" | "back" | "external" | undefined - Default value:
undefined
Specifies which camera facing direction to use when videoSource is set to "camera".
This option allows choosing between different camera directions:
"front": Use the front-facing camera"back": Use the back-facing camera"external": Use an external camera
When not specified, Scrcpy will use the default camera based on other camera settings.
Related options
videoSource: Must be set to"camera"for this option to take effectcameraId: Alternative way to select camera by ID
Example
import { ScrcpyOptions2_2 } from "@yume-chan/scrcpy";
const options = new ScrcpyOptions2_2({
videoSource: "camera", // Enable camera source
cameraFacing: "front", // Use front-facing camera
});