Add support for connecting microphone on card load.

This commit is contained in:
Dermot Duffy
2023-05-07 15:17:39 -07:00
parent c78d4be0c3
commit ee7d02fc58
11 changed files with 55 additions and 12 deletions
+2
View File
@@ -415,6 +415,7 @@ const imageBaseConfigSchema = z.object({
const microphoneConfigDefault = {
disconnect_seconds: 60,
connect_on_load: false,
};
const microphoneConfigSchema = z
@@ -423,6 +424,7 @@ const microphoneConfigSchema = z
.number()
.min(0)
.default(microphoneConfigDefault.disconnect_seconds),
connect_on_load: z.boolean().default(microphoneConfigDefault.connect_on_load),
})
.default(microphoneConfigDefault);
export type MicrophoneConfig = z.infer<typeof microphoneConfigSchema>;