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
Answers
Here is the link to my code
This is an old post but I gave it a try. I can play multiple videos but something is not working. Either one of the videos do not have the proper format or one needs to dig into the documentation to understand the proper way to stop and rewind the video. I refer to rewind coming from the java realm but not sure if this applies to js. Either case, more research on the topic is needed and I do not think it is a bug but more likely proper system calls...
Kf