Let's say i have 5 videos. I load the videos with F.loadAssets(). I define video = new Vid(myVideos[0],396,294,FIT,1,false).center(); video.play(). In ZIM, is there a way to update and load the source file of video?
I forgot to say that right now i am using the HTML
As far as I know, you do not need to preload the videos - they stream. So just use new Vid().addTo(); or whatever. I think you need to interact before playing.
Not sure how to handle subsequent videos - probably just make a new Vid() with the new source and add it to the stage and play it - maybe when the first one has ended - there is an "ended" event on the zimVid.source.addEventListener("ended", ...);
2 Likes