[feat] receive remote audio with panel playback and bounded WAV capture

This commit is contained in:
dijunkun committed 2026-11-06 21:55:58 +08:00
1 parent 02b10d0d8e
commit 82b8cc11bc
15 files changed
+287 -7

No files matched your search

+1 -1
View File
@@ -255,7 +255,7 @@ export class BrowserPanel {
if (typeof body.view_id !== "string" || !client.views.has(body.view_id))
throw new Failure("VIEW_UNAUTHORIZED");
const name = req.url?.match(
/^\/api\/(ready|devices|status|connect|video_open|control|unlock|recovery|input)$/,
/^\/api\/(ready|devices|status|connect|video_open|control|unlock|recovery|input|audio)$/,
)?.[1];
if (!name) throw new Failure("UNKNOWN_ACTION");
const { view_id, ...args } = body;