Expand description
Camera event subscription.
Two transports, one port. dahua_cgi attaches to Dahua’s
eventManager.cgi and reads multipart/x-mixed-replace chunks; an ONVIF
PullPoint transport lands alongside it. Both implement
EventSource, so nothing
downstream knows which one is in use.
§Reconnection is not this crate’s job
An EventSource opens a stream
and parses what comes back. The reconnect loop belongs to the shared
supervisor in dahua-camera-rtsp, which gives the event channel the same
backoff, stall watchdog and panic isolation that video gets — and keeps the
two reconnecting independently, so a camera whose event endpoint is
disabled still streams video normally.
§Safety
Events carried by this crate are an operator aid and are not
safety-rated. See SAFETY.md at the workspace root.
Re-exports§
pub use dahua_cgi::DahuaEventSource;pub use dahua_cgi::DahuaEventSourceFactory;
Modules§
- dahua_
cgi EventSourceover Dahua’seventManager.cgiattach endpoint.- parser
- Parsing Dahua’s
eventManager.cgipayload intoEvents.