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 committed Nov 7, 2024
1 parent 3b111de commit ed68ec6
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 @@ -204,6 +204,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 ed68ec6

Please sign in to comment.