How to use an url to stream video

I’m trying to make my own movie app but when i try to load the movies onto p5.js it says too big. so I was wondering if there a way I can just grab the url no matter how long the video is and use it instead of loading each video