Repeat?
TomberWolf opened this issue · 4 comments
TomberWolf commented
Hey,
thanks for this script.
Do you think you could add a repeat feature?
Best
Tom
rorosaurus commented
You can add loop
to the video tag after autoplay
, that will automatically loop the first randomly selected video. But without modifying the code more, the next video will never play.
rorosaurus commented
I made some alterations to the code, so it will
- loop a randomly selected video until
- the next random video starts every 3 minutes
- with fade in/out to black transitions in-between each new video
jaredkotoff commented
What do you mean by repeat? It should loop through all the videos over and over again.
A single video? Just only put the 1 video in the array and it'll repeat it forever.
jaredkotoff commented
Added some support for looping videos in the latest version. Let me know if this does what you need!