Right now we are struggling with showing recorded footage. With live view it’s not happening at all, in fact live view is working pretty fine.
Apparently, methods to consume live view and recorded footage are different, with the last one forcing us to request a new image permanently.
Let me show you some lines code from Milestone documentation that will help us to be more clear.
When we want to require live view, we use the following method. In this case, once we request it through the socket, live images keep coming continuously, without any need to send the request again. So it seems to be simple as that, you request Live View, and images start to be coming until the user stop it.
<?xml version="1.0" encoding="UTF-8"?>1liveno75
On the other hand, once we want to play recorded footage (based on alarms), we use the following request. As you may see, this request is different from the one above and include some variables that will change as the recording move forward. For example, ${countReq} is a variable that is incremented one by one (1, 2, 3, 4, …. ) per request we send to obtain a recording period. It didn’t keep coming like the case for live view, in this case we need to request image by image.
<?xml version="1.0" encoding="UTF-8"?>${countReq}goto${centerTime}75no
We are experiencing some problems with these recorded footage.
- First of all, we are seeing that countReq starts over and over again, let’s says it goes like 2,3,4,5,6 and then starts again 2,3,4,5,6, and it keep happening that way. As you may guess, it’s not the expected beheavior so the video play is not good at all.
- On the other hand, we are requesting this images in a really short period of time, let’s say that we are doing twice per milisecond, which seems a lot of request. At this point I am not sure if this frecuency is or not supported by recording server or if it’s only affecting our application.
Having said all that, and sorry for this long explanation, I would like to know if you are able to help us to better understand what are happening us and why we are experiencing those things that I’ve mentioned above.
We would really appreaciate your help.
Thanks in advance.
Regards.
Pablo.

