milg0 / onvif-java-lib

ONVIF (Open Network Video Interface Forum) is a community to standardize communication between IP-based security products (like cameras). I developed a Java library for the ONVIF spezification. It helps you with the basics (you don't need to learn SOAP e.g.) but you may need to learn a few basics about the ONVIF spezification. As far as I know, this is the first public Java project for the ONVIF spezification.
http://www.milgo.de/onvif/java-library
Apache License 2.0
215 stars 132 forks source link

Concurrent calls to onvifdevice instance. #16

Open YassineElyk opened 5 years ago

YassineElyk commented 5 years ago

Hi,

I would like to know if OnvifDevice methods can be called by multiple threads safely?

Thank you.

milg0 commented 5 years ago

You should do some adjustments for thread safety. I did not ensure that.

YassineElyk commented 5 years ago

Alright thanks, maybe I'll look into that.

tangwwwwwwwww commented 5 years ago

Hi, it takes 1.5 seconds for a single thread to acquire a camera ptz, and it takes 4.5 seconds for 3 threads to acquire three cameras ptzs. Can it be upgraded to 1.5 seconds? thanks.