video backup
AnsweredI use the following URL to download video files through the REAT API in C#, and I obtain all the IDs via /ec2/getCamerasEx?extraFormatting. Is there a simpler or more efficient way to combine this into a function, or are there additional parameters that can be modified?
/<server_ip>:<server_port>/media//<camere_id>.mp4?pos="2025-10-20T00:00:00"&duration=500&&stream=1
-
Hi Chen-I-WEN,
I’m not sure what you mean by a “more efficient way,” but the methods you mentioned are already the official APIs:
- GET /rest/v3/devices — to retrieve all camera IDs
- GET /rest/v3/devices/{device_id}/media.mp4?download=true — to download the desired video
For additional parameters, please refer to the official API documentation for full details.
BTW, it appears that you are still using a deprecated API. We kindly recommend migrating to the latest version(both API and mediaserver) as soon as possible to ensure compatibility and continued support.
Thanks.
0
Please sign in to leave a comment.
Comments
1 comment