How to export and replay from backup storage via api
AnsweredDear Support Team:
I refer to API documentation, but can not find how to export or play archive video to specific from "Backup" storage API. My backup storage is NAS device.
About API function we reference as below:
1.Http streaming for export 2./ec2/recordedTimePeriods 3.Get Remote Archive status 4./ec2/getCameraHistoryItems
But seems like there isn't any field related to Backup storage
We want to integrate export and replay video from "Main" or "Backup" storage functions.
Let it become an option then can select it. I know the NX desktop client can do it. But this project is for software integration and customization.
Our NX version:5.1.4.38659
-
Hi Ryan Chu
Thanks for your question.
It is likely you may misunderstand the storage concept of the mediaserver and there is no need to "integrate" the video of different storage. I am not sure what do you mean by "integrate", but I assume you want to "stitch" or maybe "just put the video in one file if it across both storages".
On Nx Witness mediaserver, the export will be "stitched" if the file is continuous. This means it has nothing to do with the file location, but if the files or video existed in regards of your requested period. There is no need to choose "storage type" at all.
So, for example, if you have the situation as :
- Main storage : 2024/10/22 00:00 ~ 2024/10/23 00:00
- Backup storage : 2024/10/18 00:00 ~ 2024/10/19 1800, 2024/10/20 00:00 ~ 2024/10/21 23:59[2024/10/22 10:01 ~ 2024/10/22 10:05] -> Direct from Main
[2024/10/20 10:01 ~ 2024/10/22 10:05] -> Direct from Backup
[2024/10/21 23:55 ~ 2024/10/22 00:05] -> Direct from Main+Backup -> Stitch directly, no need to define storage type.[2024/10/18 10:00 ~ 2024/10/22 00:05] -> Not possible, there is no available footage across whole range. It has to be seperated, Nx Meidaserver will NOT help to stitch the gaps.
Hope this helps.
Also, please allow us to remind you, any version older than 6.0 will not have any fix, but only in 6.0 and onward. Older version will not be supported at the moment, please arrange the update ASAP.Thanks.
0 -
Hi Ichiro:
My mistake!!! let u misunderstand what i mean.
We need API customize management platform to develope export or replay video from main or backup storage.Let customer can select one of them if one storage is failure.
Please refer to attach as below (Nx client have this feature)

Best regards
Ryan
0 -
Hi Ryan,
No need to apologize at all, I am just confirming if I understand correctly and it is great that you have helped to elaborate the detail to us.
Let me check with the DEV and get back to you. As far as I know, there is no such parameter but you may use the APIs combination to get this if this is really important and must-done without any other options (However, as I mentioned in earlier post, this is likely not a necessary concern in regard of download).
Please wait for some time and further notice.
Thanks.0 -
Hi Ryan,
Here is the parameter you can use, storageLocation.
This information can be retrieved with the standard rest api call:
/rest/v3/devices/{id}/footageif thestorageLocationquery param value is specified according to the available enums list.
Thanks.
0 -
Hi Ichiro:
Many thanks for your support. We will try it !!
Best regards
Ryan
0
Please sign in to leave a comment.
Comments
5 comments