Remove live mode from config

This commit is contained in:
Nicolas Mowen 2024-05-29 08:19:53 -06:00
parent 23cfffcf71
commit 3b236d69a2
3 changed files with 7 additions and 7 deletions

View File

@ -645,8 +645,6 @@ cameras:
# Optional # Optional
ui: ui:
# Optional: Set the default live mode for cameras in the UI (default: shown below)
live_mode: mse
# Optional: Set a timezone to use in the UI (default: use browser local time) # Optional: Set a timezone to use in the UI (default: use browser local time)
# timezone: America/Denver # timezone: America/Denver
# Optional: Set the time format used. # Optional: Set the time format used.

View File

@ -87,8 +87,13 @@ def migrate_014(config: dict[str, dict[str, any]]) -> dict[str, dict[str, any]]:
if not new_config["record"]: if not new_config["record"]:
del new_config["record"] del new_config["record"]
if new_config.get("ui", {}).get("use_experimental"): if new_config.get("ui"):
del new_config["ui"]["experimental"]
if new_config["ui"].get("use_experimental"):
del new_config["ui"]["experimental"]
if new_config["ui"].get("live_mode"):
del new_config["ui"]["live_mode"]
if not new_config["ui"]: if not new_config["ui"]:
del new_config["ui"] del new_config["ui"]

View File

@ -1,5 +1,4 @@
import { IconName } from "@/components/icons/IconPicker"; import { IconName } from "@/components/icons/IconPicker";
import { LivePlayerMode } from "./live";
export interface UiConfig { export interface UiConfig {
timezone?: string; timezone?: string;
@ -7,8 +6,6 @@ export interface UiConfig {
date_style?: "full" | "long" | "medium" | "short"; date_style?: "full" | "long" | "medium" | "short";
time_style?: "full" | "long" | "medium" | "short"; time_style?: "full" | "long" | "medium" | "short";
strftime_fmt?: string; strftime_fmt?: string;
live_mode?: LivePlayerMode;
use_experimental?: boolean;
dashboard: boolean; dashboard: boolean;
order: number; order: number;
} }