Clean up: deduplicate settings UI, fix backupCodec, remove dead export

Signed-off-by: Ryan Emmick <ryanemmick4@gmail.com>
This commit is contained in:
Ryan Emmick
2026-02-11 12:26:16 -06:00
parent 297470ac2e
commit 98f63c7172
6 changed files with 113 additions and 162 deletions

View File

@@ -166,6 +166,14 @@ export const customLivekitUrl = new Setting<string | null>(
export type VideoCodec = "vp8" | "vp9" | "h264" | "av1";
/**
* Parse a "WIDTHxHEIGHT" resolution string into numeric width and height.
*/
export function parseResolution(res: string): { width: number; height: number } {
const [w, h] = res.split("x").map(Number);
return { width: w, height: h };
}
export const advancedScreenShare = new Setting<boolean>(
"advanced-screen-share",
false,