libonvif
Library implementing client ONVIF for Windows and Linux
...libonvif comes with an example program that implements discovery on the local network to find compatible cameras and return the RTSP string for streaming.
Tested on Hikvision, Dahua, Axis, Foscam, Trendnet, Amcrest, Reolink, Vivotek, Speco and others. Should work for any Onvif compatible device.
INSTALL FOR WINDOWS: download libonvif-1.2.0.zip and extract folder. From libonvif\libonvif directory, run build.bat from your Visual Studio command prompt. See the ReadMe.txt file for detailed instructions. The video below shows how to install and link to libonvif.
...