implement Virtual Camera issue meets the API difference between 4.2 &5.0
Answered
Dear Sir,
we have implement the virtual camera with the following API.
https://support.networkoptix.com/hc/en-us/articles/360017704814-Virtual-Camera-API-Calls-How-to-Import-Files-to-Camera-Archive-via-the-Server-API
We have faced an issue which I record a video below
The breif decription will be
When we use the following command to post the file to Nx
Use the /api/wearableCamera/add?name=MyVirtualCamera (POST)
but when we use the following API for the second time file transfer on the 4.2, it shows fail
POST /api/virtualCamera/lock — locks Virtual Camera.
However, if we replace teh "virtualcamrea" parameter with "wearableCamera"
its ok for now, my questions, so we need to use "wearableCamera" on 5.0 and "wearableCamera" on 4.2?
will it be possible to offer a unify paramter?
Thank you, and looking forward to hearing from you~
-
Hello Kuo-Lun Tang ,
Thank you for pointing out.
There is obviously a typo in the article, will fix it.
For version 4.2 there should be wearableCamera
Please, see the working example in our repo on GitHub
For version 5.0 the API have been renamed to virtualCamera.
0 -
Hi Andrey,
It is very nice to hear from you, we have already make it work on 4.2 via replace the virtaulcam to wearableCamear, but will it be possible to also keep the "wearableCamear" on 5.0? or we have detect the Nx verstion before using the API.....
0 -
Hi Andrey,
Also, a quick questions that will it be possible to put the bookmark on the virtual camera recording playback bar?
0 -
Hi,
Also, a quick questions that will it be possible to put the bookmark on the virtual camera recording playback bar?
Could you please create a screenshot to demonstrate your idea?
or we have detect the Nx verstion before using the API.....
You should detect Server version. Here is an API to use /api/moduleInformation. It does not require authentication.
0
Please sign in to leave a comment.
Comments
4 comments