cameraThumbnail problem - frame time and bookmarks
Completedhi, I have a problem with the cameraThumbnail endpoint. The problem is with returning the photo. It takes 10-15 seconds to update a photo. Endpoint does not return the photo LIVE. I even wrote a tester: test result:
/ec2/cameraThumbnail?cameraId=c088a93b-ac90-6e24-b11f-1d6de5dc6f2f&time=now&streamSelectionMode=forcedPrimary
In the browser, also when I refresh the endpoint, the photo will refresh after X seconds.
I can't get actual photo when req to this endpoint.
I saw one more problem, but with bookmarks. When I add bookmark by API bookmarks/add it not show in timeline.
When i 'update' this added bookmarks in NX client it show in timeline
-
Hi,
By default, on the cameraThumbnail request the Server returns the nearest I-frame. Usually, I-frames are sent by a camera once in 30 frames. The delay of 10-15 seconds can be caused by frame rate set or by camera specifics or simply bugs.
The behavior of how the Server chooses a frame to be sent is controlled by the "method" parameter (by default "after"). You could set the value to "precise" to make the Server to calculate the closest frame to the requested timestamp, starting with the nearest I-frame.
-
is there any way to get always live ? not only I-frame ?
The LIVE which is seen in the GUI client, for example, is a result of decoding frame data based on the I-frame and "delta" frame. The GUI client does it under the hood. So in your case, you need time=now and method=precise.
And what about bookmarks by api ?
Could you please provide more details description with sceenshots or a screencast demonstrating what are you doing, what is expected behavior and what is actual behavior as well as API invocation code expamples?
-
The LIVE which is seen in the GUI client, for example, is a result of decoding frame data based on the I-frame and "delta" frame. The GUI client does it under the hood. So in your case, you need time=now and method=precise.
I try this, but the effect is the same, i got only I-Frame, is there any way to get photo from LIVE which is seen in the GUI ?
Please sign in to leave a comment.
Comments
6 comments