Possibility to get IP Camera stream from url and get frame in Android (mobile) app

Hello,
I am testing open cv library for android, performing some image manipulation tests. All works fine.
Now i would like to code an Android App in order to:

*get ip camera stream from a URL. I think to use a VideoCapture component
*take a frame from the stream and manipulate it

I tried but the VideoCapture opening fails with the url stream: **VideoCapture vc = new VideoCapture(); **
** vc.open(“http://192.168.1.122:8080/video”); **

I am not sure if in Android/Java we could have limitations in using external url from external sources. Is it true?

Thank you all,
Daniel

Hi Daniel,
I have similar requirement.
Did you solve your issue? if yes, please share the solution.

Thank You

hey @Daniel and @Sunil_Halvi

i have a similar problem too, just that i am getting it from an ESP32 camera, which is pretty much an MJPEG stream over HTTPS.
Im using it with gstreamer because i read somewhere that opencv cant do it directly, but it is not working as well even with gstreamer.

        var fullGStreamerCommand = "gst-launch-1.0 " + streamAddress // gst-launch-1.0 souphttpsrc etc etc....
        //actual code meant for reading from the gstreamer lib
        lifecycleScope.launch {
            var videoCapturing = VideoCapture(fullGStreamerCommand, CAP_GSTREAMER)
            videoCapturing.open(fullGStreamerCommand, CAP_GSTREAMER)

for reference, my streamAddress is something like souphttpsrc location=http://someipaddress ! multipartdemux ! jpegdec ! videoconvert ! autovideosink

Any ideas?