Soft triggers control panel
Answered
How would i be able to create this?:
I found an example of a system that shows a menu of soft triggers and a custom view of each control panel.
How can this be built, i cannot find any information in any sdk.
-
Official comment
Hello Stefaan,
The screenshot you attached is one of the mockups which show how the soft trigger feature could evolve in future.
Moreover, it has not been added to the roadmap of 4.2, so there's no even rough delivery time estimate.
Comment actions -
Stefaan, Nx team,
A partner is developing similar use cases. They have a access control web application that can be embedded to Nx. Now it interacts with Nx via generic events and server APIs, such as to create event/bookmarks in Nx, pull streams (live/archived) from Nx. Few things they want to do:
1. Click the bottom on the embedded webpage and add a camera to the same layout. (i.e. in Sefaan's snapshot, add the 4th camera to the same layout.
2. Select time or an event and select a camera on the embedded webpage, (for example the first camera with a truck in the middle), then this camera on the layout will start playback video accordingly.
Do you see a way to do this now? Or can this be done in future releases?
Thanks!
-
Hi Jason Lee,
Thanks for chasing this thread, Unfortunately, your case is not possible at the moment.
Your use case is trying to interact with the Desktop Client in a situational or programmable procedure.1. First, we need to understand what is client and what is server.
Nx Witness provides the SERVER API, so you would be able to interact with the Nx mediaserver.
You would be able to add the devices to SERVER, or pull the SERVER information or send the generic event to SERVER.2. Unfortunately, Nx Witness has not yet provided CLIENT API, so at the moment you are not able to configure the desktop client via external command or software. More specifically, automatically enable the fisheye dewarpping mode on the CLIENT, automatically and dynamically add a camera view to the layout on the CLIENT. This would not be able to achieve at the moment.
So, in your case, you would like to use an external web page that triggers some actions to interact with the CLIENT to add a camera and directly playback on the CLIENT - This is not yet supported.
The Nx Client API is on the roadmap, but the ETA and scope detail is not yet discussed, likely in one of the releases in the future. Thanks.
-
Hi guys,
Regarding these tasks
1. Click the bottom on the embedded webpage and add a camera to the same layout. (i.e. in Sefaan's snapshot, add the 4th camera to the same layout.
2. Select time or an event and select a camera on the embedded webpage, (for example the first camera with a truck in the middle), then this camera on the layout will start playback video accordingly.
There is the "c2pplayback" method in the GUI. You could embed a similar code into your web page for opening a camera on a layout.
<script> var button = document.getElementById('button'); button.addEventListener("click", function(){ var camera = document.getElementById('camera'); var timestamp = document.getElementById('timestamp'); external.c2pplayback(camera.value,timestamp.value); }); </script>
As you can see in this example, "camera" is a textbox with cameraId and the "timestamp" is a textbox with timestamp values.
"timestamp" being set to "-1" makes the live stream of the camera be opened in the layout and paused.
Clicking the "triangle" in the left-hand lower corner in GUI plays the live stream.
Of course, you can set "timestamp" value according to your needs in order to playback records from the archive.
Please sign in to leave a comment.
Comments
11 comments