how can I fire an event when a video is fully loaded?
I've tried the following method to get .loaded
and .total
to compare and fire, but looks like in the following scenerio console non-stop logs undefined
video.addEventListener("progress", function(p){
console.log(p.loaded )
});
ps. "video" is my video element as you may guess ps2. not a duplicate of HTML5 Video - Percentage Loaded? - I don't want to "play" the videos, only load them. The solution of this link needs videos to be either on autoplay or to be played (to load them).