mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 10:33:11 +03:00
32 lines
735 B
TypeScript
32 lines
735 B
TypeScript
// Audio Section Component
|
|
// Reusable for both global and camera-level audio settings
|
|
|
|
import { createConfigSection } from "./BaseSection";
|
|
|
|
export const AudioSection = createConfigSection({
|
|
sectionPath: "audio",
|
|
defaultConfig: {
|
|
fieldOrder: [
|
|
"enabled",
|
|
"listen",
|
|
"filters",
|
|
"min_volume",
|
|
"max_not_heard",
|
|
"num_threads",
|
|
],
|
|
fieldGroups: {
|
|
detection: ["enabled", "listen", "filters"],
|
|
sensitivity: ["min_volume", "max_not_heard"],
|
|
},
|
|
hiddenFields: ["enabled_in_config"],
|
|
advancedFields: ["min_volume", "max_not_heard", "num_threads"],
|
|
uiSchema: {
|
|
listen: {
|
|
"ui:widget": "audioLabels",
|
|
},
|
|
},
|
|
},
|
|
});
|
|
|
|
export default AudioSection;
|