@u4/adbkit
    Preparing search index...

    Interface VideoRecordOptions

    interface VideoRecordOptions {
        durationMs?: number;
        framerate?: number;
        maxFrames?: number;
        onProgress?: (progress: VideoRecordProgress) => void;
        remuxMp4?: boolean;
        signal?: AbortSignal;
    }
    Index
    durationMs?: number

    Maximum recording duration in milliseconds.

    framerate?: number

    Assumed framerate for MP4 remuxing (default: scrcpy maxFps or 30).

    maxFrames?: number

    Maximum number of frames to record before stopping.

    onProgress?: (progress: VideoRecordProgress) => void

    Periodic progress callback (called on captured frames).

    remuxMp4?: boolean

    Whether to automatically remux into an MP4 container if ffmpeg is available. Default: true if destination path ends with .mp4.

    signal?: AbortSignal

    AbortSignal to stop recording programmatically.