Camera Thumbnail API Info
In ProgressIs the image that is produced from the ec2/cameraThumbnail endpoint pulled from the camera's live stream or the camera's recordings. If there are no recordings will an image be returned? We are unable to get an image and are wondering if the lack of recordings is the reason why.
Thank you
-
Hi Elan Paul,
The snapshot is retrieved from the recording or the buffer. If no recording is available and only live video exists, the thumbnail will be fetched from the camera’s video buffer, which typically retains a few seconds of data.
Sometimes, you may get the image more quickly if the timing aligns with an I-frame. However, if there is no I-frame available at that moment, you may need to wait for the next I-frame or use the roundMethod to select a preferred frame.
Please note that the endpoint /ec2/cameraThumbnail has been deprecated. The current endpoint for retrieving camera thumbnails (6.0.1) is: /rest/v3/devices/{cameraId}/image
You can find more details about this API in the latest API documentation. We might recommend checking this updated API to confirm the behavior.Thanks.
-
Hi Elan Paul,
No, this issue is not related to whether it’s an NVR or a camera.
The API works perfectly for each channel of an NVR and/or cameras.
Most likely, the issue lies in the cameraId you provided—it should correspond to one of the channels, not the entire NVR. In other words, the cameraId must reference a specific channel, not the NVR itself.Thank you.
Please sign in to leave a comment.
Comments
2 comments