Version 4.0 and Beta 4.1 Nx Desktop Client

Answered

Comments

5 comments

  • Official comment
    Avatar
    Derek Mangasarian

    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:

    https://support.networkoptix.com/hc/en-us/articles/216914297-How-to-start-stop-recording-using-Nx-Witness-Generic-Event

     

    Comment actions Permalink
  • Avatar
    Alan Hares

    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

    0
    Comment actions Permalink
  • Avatar
    Derek Mangasarian

    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
    0
    Comment actions Permalink
  • Avatar
    Alan Hares

    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 :))

    0
    Comment actions Permalink
  • Avatar
    Derek Mangasarian

    Hi Alan,

     

    Your assumption is correct on how the recording behavior reacts to Active/Inactive requests.

    0
    Comment actions Permalink

Please sign in to leave a comment.