Can’t really find anything when googling the error. When I call video.loop
(actually, I’m calling a couple of really small videos (together smaller than 2MB), like so:
for(let i = 0; i < videos.length; i++){
videos[i].loop();
}
I get a TypeError: f.default._friendlyAutoplayError
(in p5.min.js:3) randomly (as in on loading the page) on that line.
I use createVideo
to create the videos in preload:
function preload(){
for(let i = 0; i < videoNames.length; i++){
videos[i] = createVideo(videoNames[i]);
}
}
75% of the time the code just works by the way. At random moments I get this error and can’t play the videos. If I console.log the videos I do get a result and the object seems to be loaded.
Any ideas what this error is and where it comes from?