Onvif library in Unity

Hello everyone, I’m fully aware that this post will not get any answer but yeah, let’s try anyway :slight_smile:
I need to create an administration tool that talks with some Onvif camera. Onvif is an open protocol used to view and control physical IP-based security cameras.
Do anyone have any C# library to suggest that I could interface with Unity 2020.2?

I tried this: GitHub - Jazea/Onvif.Core: A lightweight ONVIF Discovery and Client library. (but I get a security error)
This: GitHub - jamidon/ONVIF-test: C# project for ONVIF camera control (also a security error)
This: GitHub - mictlanix/onvif: A lightweight ONVIF Client library. (it seems to work but crashed on PTZ controls)

Thanks

I’m not sure what a “security error” is but if those libraries rely on a newer version of C# than Unity provides, or rely on some assembly that Unity cannot interoperate with, you might need to write some kind of native wrapper, or rewrite the libraries so they work under Unity. Of course the best way to find info about Onvif is probably to check in their forums.

Hey, did you found any solution regarding Onvif and unity ?

Yes!
I managed to generate C# classes directly from the Onvif service public urls (you can read more here).
I just published my work on a public repository, let me know if it helps: https://github.com/Oneiros90/UnityOnvif

Thanks man. I will let you know soon

1 Like

Were you ever able to pull frames/steam using Onvif?