refactor(scrcpy): rewrite option classes to improve tree-shaking

This commit is contained in:
Simon Chan 2024-11-25 18:10:15 +08:00
parent db8466f6ee
commit 92472007db
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
218 changed files with 5412 additions and 2380 deletions

View file

@ -0,0 +1,19 @@
import type { PrevImpl } from "./prev.js";
export interface Init extends PrevImpl.Init {
downsizeOnError?: boolean;
/**
* Send device name and size at start of video stream.
*
* @default true
*/
sendDeviceMeta?: boolean;
/**
* Send a `0` byte on start of video stream to detect connection issues
*
* @default true
*/
sendDummyByte?: boolean;
}