We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello, I am trying to select from an array of videos, play a video on button click (LEFT ARROW) and then after the video stops it hides the video and waits for button press to play another random video again. I've tried variations on adding in or removing hide() and stop() in the onended call. Nothing seems to work right. I'm wondering if this relates to this issue I've read elsewhere about asynchronous video calls. Though it seems different since I'm preloading my videos.
My simplified code is here: http://alpha.editor.p5js.org/full/Hy71uQP_b
Posts about asynchronous video load issues here