Add support for go2rtc for non-Frigate cameras
This commit is contained in:
+5
-1
@@ -774,7 +774,11 @@ const microphoneConfigSchema = z
|
||||
export type MicrophoneConfig = z.infer<typeof microphoneConfigSchema>;
|
||||
|
||||
const go2rtcConfigSchema = z.object({
|
||||
url: z.string().optional(),
|
||||
url: z
|
||||
.string()
|
||||
.transform((input) => input.replace(/\/+$/, ''))
|
||||
.optional(),
|
||||
host: z.string().optional(),
|
||||
modes: z.enum(['webrtc', 'mse', 'mp4', 'mjpeg']).array().optional(),
|
||||
stream: z.string().optional(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user