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

@@ -61,6 +61,7 @@ import {
screenShareFramerate,
screenShareBitrate,
screenShareCodec,
parseResolution,
} from "../../../settings/settings.ts";
import { Config } from "../../../config/Config.ts";
import {
@@ -688,9 +689,7 @@ export const createLocalMembership$ = ({
if (advancedScreenShare.getValue()) {
// User has advanced screen share settings enabled
const resParts = screenShareResolution.getValue().split("x");
const width = Number(resParts[0]);
const height = Number(resParts[1]);
const { width, height } = parseResolution(screenShareResolution.getValue());
const fps = screenShareFramerate.getValue();
const bps = screenShareBitrate.getValue();
const codec = screenShareCodec.getValue();