I have Wireless cameras connected to my WiFi hotspot on my Android device. I already have the IPs of the camera from /proc/net/arp. I am also able to run the video for known rtsp URLs, for testing cameras. But end user can connect to any cameras with their hotspot. So, I need to know the rtsp URL at runtime. For RTSP on android port is always 554 for RTSP. I have su access to the device and am ready to use SOAP as well.
Also, app is running on Android 7.0 and up.
Any help is really appreciated.