EDIT:
Changed the name of the topic as I have tested and established it is a delay within HA using ONVIF for stream and PTZ control. Would like to know if others can confirm the same behavior? Pressing any control of the PTZ and it takes 4-5 seconds until the image updates inside HA (updates immediately when having IE open next to my HA). Also tested ONVIF Manager and the response upon pressing any PTZ is immediate, concluding it is either the ONVIF in general or my instance itself.
I’ve set up an IP cam using ONVIF to get full control of PTZ and working really good.
Though, I only get a live stream if I use UDP. If switching to TCP I only get an image.
Using UDP makes delays of the PTZ of approx 3 seconds.
Logging on to the cam itself via browser and testing PTZ give immediate response.
Yes I do have the same problem, but I also face the same problem from the PTZ control of the browser control (plugin) within Internet Explorer. Meaning for me this is not a HA issue but soemthing with the cam control itself. If I click several times fast enough on one of the arrows, it suddenly as you say run to the end.
Do you use UDP or TCP for the ONVIF control ? If you use UDP, do you also experience the delay when sending PTZ commands to the cam?
@cvasantrao Hi again, when you click any of the PTZ arrows, do you have any delay on the update of the image, or is the response immediate?
I tested now with HA and Internet Explorer next to each other and sent the command to pan RIGHT and in Internet Explorer the cam react immediate and image updates, but in HA it takes 5 seconds before I see the update…
Hi TheStigh!
Sorry for the delay in response. Was busy with another project. I am using tcp and the delay is there. But i am more bothered by the cam going all the way to the end. I am not much of a python guy, hence cannot tinker with the component. I tried changing the modes but in vain. Waiting for someone to come up with a solution. Till then I will use the cam’s app to pan and tilt.
Regards