From 3268668102b7b2327e35079c21b0d3f8c8ca975c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ant=C3=B4nio=20Cardoso?= Date: Thu, 7 Nov 2024 12:07:08 -0300 Subject: [PATCH] src: lib: server: Propagate Onvif video source --- src/lib/server/pages.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/server/pages.rs b/src/lib/server/pages.rs index 1fd9c1f9..53753745 100644 --- a/src/lib/server/pages.rs +++ b/src/lib/server/pages.rs @@ -205,6 +205,12 @@ pub async fn v4l() -> Json> { formats: gst.formats().await, controls: gst.controls(), }, + VideoSourceType::Onvif(onvif) => ApiVideoSource { + name: onvif.name().clone(), + source: onvif.source_string().to_string(), + formats: onvif.formats().await, + controls: onvif.controls(), + }, VideoSourceType::Redirect(redirect) => ApiVideoSource { name: redirect.name().clone(), source: redirect.source_string().to_string(),