JavaScript API - control multiple windows/screens
In ProgressNx Witness Version: 5.1.1.37512
Hi,
I'm trying to control video playback on desktop client from another app.
Right now the way I managed to do that is by embedding our webpage into NX client and using JavaScript API.
Is it possible to control playback on multiple windows/screens from an embedded web page?
The documentation says that Tab Management API is 'only available for the tab which contains the current web page'. Is it possible to extend a tab to multiple screens or will it be possible with VideoWall?
Or is there another way to control playback on the desktop client (timeframes, speed etc) from the outside?
best regards Martyna
PS.
In the Knowledgebase > API Examples > JavaScript API Spec > TabManagement: there is a method > setItemParameters(itemId: String, params: ItemParameters)
and the one in the repo with samples (and working) is called > setItemParams(itemId: String, params: ItemParameters)
-
Hello,
Is it possible to extend a tab to multiple screens or will it be possible with VideoWall?
That's possible with VideoWall.
I'm trying to control video playback on desktop client from another app.
Could you give more details on your business scenario, where you consider that might be a solution? It would help us to evaluate all the options.
-
Hello,
Here are some details on our business scenario:
Our app is running on a local intranet where we want to couple events to video. Our events are based on different time frames, so for example event 1 is from yesterday morning till 12 o clock. Event 2 from 1 week ago ….. etc.
The idea was to run nx with nx client in parallel to our system (to use all the features of nx client) and synchronize video playback when the user selects the events.
best regards Martyna
-
Hello,
The idea was to run nx with nx client in parallel to our system (to use all the features of nx client) and synchronize video playback when the user selects the events.
If you want a video synchronized with an event your could request it via Server media API.
https://meta.nxvms.com/doc/developers/api-tool/media-1
In this case, you'll have video displayed right in your application.
If that is not the option, generating a link would be another solution.
https://support.networkoptix.com/hc/en-us/articles/360046141254-How-to-Call-Client-Using-URL-
The last paragraph
Following the example below, the link opens the client and connects to the server with the specific authenticator; if successful, it opens the camera (specifically the first resource ID in the URL) and sets it in an archive position specified by timestamp parameter:
For the `auth` value bearer token can be used.
-
Hi,
I used Server media API for our other scenario and it works fine.
In this case we wanted to take advantage of nx client s flexible layout with multiple cameras.
As I understand, the solution with a link can open only one camera not the whole layout?
if successful, it opens the camera (specifically the first resource ID in the URL)
I also tried the option to open an layout using an event, but there was no way to set the timeframes if I remember correctly.
best regards Martyna
Please sign in to leave a comment.
Comments
4 comments