To be clear, I am using web requests for these. Your port 8124 is confusing, as everything that I have seen from this forum references 8100 for Json/capturePicture (See this forum topic):
I tried port 8124, but it returns nothing.
It looks like the CapturePicture is pulling the last buffered frame for the current snapshot instead of grabbing a frame from the live camera feed. Changing the camera properties in the camera source’s Output Resolution to “Native” decreases the delay, but it still is a delay.
Here is my code for grabbing the picture with Jquery (for privacy issues I replaced the site and token in the URLs):
$.get(“https://[netcamserver]:8100/Json/CapturePicture?sourceid=0&authToken=[permtoken]”)
which immediately returns the libraryID of the picture (as referenced in the above topic). I then use the returned LibraryID as the src for the image in my web page using the Library call:
https://[netcamserver]:8100/Library/202010130090/?authToken=[permtoken]
As stated above, it works perfectly except that the image is much older than the point in time that the picture was captured with the CapturePicture JSON web request.