@u4/adbkit
    Preparing search index...

    Interface ScrcpyOptions

    interface ScrcpyOptions {
        angle?: number;
        audioSource?: string;
        autoDownload?: boolean;
        bitrate: number;
        cameraTorch?: boolean;
        cameraZoom?: number;
        captureOrientation?: string;
        cleanup?: boolean;
        clipboardAutosync?: boolean;
        codecOptions: string;
        control: boolean;
        crop: string;
        displayId: number;
        displayImePolicy?: string;
        downsizeOnError?: boolean;
        encoderName: string;
        flexDisplay?: boolean;
        flip: boolean;
        ignoreVideoEncoderConstraints?: boolean;
        jarPath?: string;
        keepActive?: boolean;
        lockedVideoOrientation: number;
        maxFps: number;
        maxSize: number;
        minSizeAlignment?: number;
        newDisplay?: string;
        noAudio?: boolean;
        powerOffScreenOnClose: boolean;
        rawVideoStream?: boolean;
        scid: string;
        screenOffTimeout?: number;
        sendDeviceMeta?: boolean;
        sendDummyByte?: boolean;
        sendFrameMeta: boolean;
        showTouches: boolean;
        stayAwake: boolean;
        tunnelDelay: number;
        tunnelForward: boolean;
        vdDestroyContent?: boolean;
        vdSystemDecorations?: boolean;
        version: `${number}.${number}` | `${number}.${number}.${number}`;
        videoCodec?: string;
    }
    Index
    angle?: number

    angle since scrcpy 3.0 Custom rotation angle in degrees

    audioSource?: string

    audioSource since scrcpy 2.0 / 3.2 e.g. 'output', 'playback', 'mic', 'mic-unprocessed', 'mic-camcorder', etc.

    autoDownload?: boolean

    Whether to automatically download scrcpy-server binary if missing (default: true)

    bitrate: number
    cameraTorch?: boolean

    cameraTorch since scrcpy 4.0

    cameraZoom?: number

    cameraZoom since scrcpy 4.0

    captureOrientation?: string

    captureOrientation since scrcpy 3.0 e.g. "0", "90", "180", "270", "flip0", "@", "@0", "@90", etc.

    cleanup?: boolean

    since scrcpy 1.23

    clipboardAutosync?: boolean

    since scrcpy 1.21

    codecOptions: string
    control: boolean

    set Control added in scrcpy 1.9

    crop: string

    "width:height:x:y" or '-' Crop the device screen on the server. The values are expressed in the device natural orientation (typically, portrait for a phone, landscape for a tablet). Any --max-size value is cmoputed on the cropped size.

    displayId: number
    displayImePolicy?: string

    displayImePolicy since scrcpy 3.2 Policy for displaying IME (soft keyboard) on secondary/virtual displays: "local", "fallback", or "hide"

    downsizeOnError?: boolean

    since scrcpy 1.22

    encoderName: string
    flexDisplay?: boolean

    flexDisplay since scrcpy 4.0 Dynamically resize virtual display to match the client window size

    flip: boolean

    flip the video

    ignoreVideoEncoderConstraints?: boolean

    ignoreVideoEncoderConstraints since scrcpy 4.1 Ignore encoder size constraints entirely, including alignment

    jarPath?: string

    Custom path to scrcpy-server jar file

    keepActive?: boolean

    keepActive since scrcpy 4.0 Periodically signals user activity to prevent device screen from turning off

    lockedVideoOrientation: number

    lock screen orientation, LOCK_VIDEO_ORIENTATION_*

    maxFps: number

    maximum fps, 0 means not limited (supported after android 10)

    maxSize: number

    maxSize (integer, multiple of 8) 0 Max width

    minSizeAlignment?: number

    minSizeAlignment since scrcpy 4.0 (1, 2, 4, 8, or 16)

    newDisplay?: string

    newDisplay since scrcpy 3.0 Create and mirror a new virtual display, e.g. "1920x1080" or "1920x1080/420"

    noAudio?: boolean

    since scrcpy 2.0

    powerOffScreenOnClose: boolean
    rawVideoStream?: boolean
    scid: string

    scrcpy id since V 2.0

    screenOffTimeout?: number

    screenOffTimeout in seconds since scrcpy 3.0

    sendDeviceMeta?: boolean
    sendDummyByte?: boolean
    sendFrameMeta: boolean
    showTouches: boolean
    stayAwake: boolean
    tunnelDelay: number
    tunnelForward: boolean

    use "adb forward" instead of "adb tunnel"

    vdDestroyContent?: boolean

    vdDestroyContent since scrcpy 3.1 Whether to destroy virtual display content on close (defaults to true on server). Set false to move apps to main display on close (--no-vd-destroy-content).

    vdSystemDecorations?: boolean

    vdSystemDecorations since scrcpy 3.0 Toggle system decorations on virtual display (defaults to true on server)

    version: `${number}.${number}` | `${number}.${number}.${number}`
    videoCodec?: string

    videoCodec since scrcpy 2.0 / 4.1 "h264", "h265", "av1", "vp8", "vp9"