This commit is contained in:
KingKDot
2026-03-08 22:31:11 -05:00
parent 6c05960400
commit 78a79ea3e1
27 changed files with 1352 additions and 12 deletions
+19
View File
@@ -12,6 +12,7 @@ export type MessageKind =
| "status"
| "plugin_event"
| "notification"
| "webcam_devices"
| "notification_config";
export type Hello = {
@@ -43,6 +44,11 @@ export type CommandType =
| "input"
| "remote_start"
| "remote_stop"
| "webcam_start"
| "webcam_stop"
| "webcam_list"
| "webcam_select"
| "webcam_set_fps"
| "disconnect"
| "reconnect"
| "screenshot"
@@ -108,6 +114,7 @@ export type FrameHeader = {
format: "jpeg" | "webp" | "raw" | "h264";
hash?: string;
hvnc?: boolean;
webcam?: boolean;
};
export type Frame = { type: "frame"; header: FrameHeader; data: Uint8Array };
@@ -116,6 +123,18 @@ export type Status = {
state: "idle" | "streaming" | "error";
detail?: string;
};
export type WebcamDevice = {
index: number;
name: string;
maxFps?: number;
};
export type WebcamDevices = {
type: "webcam_devices";
devices: WebcamDevice[];
selected: number;
};
export type ConsoleOutput = {
type: "console_output";
sessionId: string;