If anyone is trying to integrate Unifi protect cameras - This may save you a bit of time.
- enable the stream quality you desire in the cam settings in unifi protect console (camera/settings/advanced/RTSP)
The stream URLs are listed as RTSPS streams not RTSP streams. So the protocol, port, and url must be updated
Copy the URL and in the URL:
- change RTSPS to RTSP
- change the port from 7441 to 7447
- remove the query string