OptionaldurationOptionalframerateAssumed framerate for MP4 remuxing (default: scrcpy maxFps or 30).
OptionalmaxMaximum number of frames to record before stopping.
OptionalonPeriodic progress callback (called on captured frames).
OptionalremuxWhether to automatically remux into an MP4 container if ffmpeg is available. Default: true if destination path ends with .mp4.
OptionalsignalAbortSignal to stop recording programmatically.
Maximum recording duration in milliseconds.