How to use OpenCV to connect to an ONVIF Bridge stream?

I am developing a plugin into Xprotect and one of the requirements of the software I’m integrating with is to use OpenCV to access an ONVIF bridge stream for cameras. I have the ONVIF bridge running successfully (can connect to the ONVIF created URL using VLC), but OpenCV’s videocapture is not seeing anything when I try to connect using the same URL that is working in VLC. Does anyone have any insight on this issue?

Thanks in advance for any response.

We at Milestone unfortunately don’t have a lot of experience using OpenCV, so we can unfortunately not provide much help on the difference between it an VLC, but maybe someone else on the forum can?