How to use a URL as input in OpenCV

My project consists on making some operations on a streaming video in real time thanks to OpenCV using the video URL.
I chose to change the color of the video(or its resolution, 2 easy codes) it worked perfectly when I generated a streaming video from my laptop camera. but when I put the URL as an input it didn't.
here what the 2 URLs I am using look like