Add editor support for go2rtc modes.

This commit is contained in:
Dermot Duffy
2023-02-18 11:36:35 -08:00
parent f5ce02fe4a
commit d446716b7b
5 changed files with 47 additions and 1 deletions
+6
View File
@@ -435,6 +435,12 @@ const cameraConfigSchema = z
})
.default(cameraConfigDefault.frigate),
go2rtc: z
.object({
modes: z.enum(['webrtc', 'mse', 'mp4', 'mjpeg']).array(),
})
.optional(),
// Camera identifiers for WebRTC.
webrtc_card: webrtcCardCameraConfigSchema.optional(),