Skip to content

Commit

Permalink
src: lib: server: Propagate Onvif video source
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso authored and patrickelectric committed Nov 11, 2024
1 parent 79ed553 commit 3268668
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/server/pages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ pub async fn v4l() -> Json<Vec<ApiVideoSource>> {
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(),
Expand Down

0 comments on commit 3268668

Please sign in to comment.