How to implement MotionAlarm (motion detection) event (ET01)
Warning! This is an implementation hint article. Read this first.
Calling sequence
- This sequence only applies when Event.Template (explained here) is set to ET01.
- Engage event notification sequence.
Event definition
ONVIF-Imaging-Service-Spec-v221.pdf
Message XML example
<wsnt:NotificationMessage> <wsnt:Topic Dialect="http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet"> tns1:VideoSource/MotionAlarm </wsnt:Topic> <wsnt:Message> <tt:Message UtcTime="2008-10-10T12:24:57.321Z"> <tt:Source> <tt:SimpleItem Name="Source" Value="[videoSourceToken]" /> </tt:Source> <tt:Data> <tt:SimpleItem Name="State" Value="[motionState]" /> </tt:Data> </tt:Message> </wsnt:Message> </wsnt:NotificationMessage> |
- [videoSourceToken]: Must match one of the tokens returned by GetVideoSources
- [motionState]: true if motion is in progress, false if not.
See also