Version 4.0 and Beta 4.1 Nx Desktop Client
AnsweredHi i want to trigger the recording of a camera using a generic event, but It wont work unless I include state=active to start and state=inactive to stop the recording, if I just send the command including state=active the recording starts but will never stop even if I use the pre and post recording settings in the activity section. If I don't include the state= part at all I get the notification but no recording?
according to your help file we should not need to use the state= part of the command on versions above 3.6?
-
Official comment
Hi Alan, when you are using pre/post-recording times, the state=Inactive request must be sent to stop recording. (Then the post-recording timer starts)
To do all of this with one request without the state attribute, version 3.1 and onward has the option Fixed Duration in the action settings, referred to in this article:
Comment actions -
Thanks Derek yes that's the article I read before, I still am confused, I want to send a generic event to start the recording I also want a 30 second pre-record I also want the recording to stop 30 seconds after the generic event occurred.
So a 60 second recording in total 30 seconds Pre and 30 Seconds Post
Can you tell me how I would achieve this please :)
Kind Regards
Alan
-
Hi Alan,
In order to use pre/post-recording, you will need to use a Prolonged event which uses the 'State' field for requests.
The pre-recording will begin after the State=Active request is sent.
The post-recording starts after the State=Inactive request is sent.
In your case, if you want to record exactly the 30 seconds before an event and 30 seconds after, you will need to send the Inactive request right after the Active one.
The generic event should look like this:
and it is up to you on how to send the requests (for example, soft trigger ---> do http request), but the URLs with the above example would be
http://<ip>:<port>/api/createEvent?state=Active&caption=record
http://<ip>:<port>/api/createEvent?state=Inactive&caption=record -
Hi Derek, thanks for clarifying that, I did find that it works well if you send the inactive command 5sec after the active command is sent, I guess that the server grabs 30secs of pre-recorded video as soon as it receives the active command? and then just runs the post as soon as the inactive is received if that makes sense :))
Please sign in to leave a comment.
Comments
5 comments