OpenCV Android (4.8.0) VideoCapture could not read video from "IP" - (Java)

I need your help to solve an issue. In my React native application, I need to do some stuff regarding object detection from a given video file (which will come from the local server). For preprocessing the video and doing other stuff, I am trying to build a native module in Java.

Now, in Java, to read the video, I am passing the (LocalHost’s URL) to the VideoCapture but I end up getting this error (even for general URLs)



Please help by letting me know how to access it using VideoCapture.

please, NO IMAGES OF CODE OR ERRORS, they’re unusable for indexing / quoting, replace with text, thank you.