I'm a beginner in JS and I would like to know how to randomize a video playlist (JS), i want to use a canvas to see the videos "protected" (pass the videos trough the canvas) and then loop the videos to start again, video continous playlist randomizing. Non-stop
Help would be really appreciated! THANKS in advance!!
You can simply generate a list as an array:
Then sort it with a custom sorter which will randomize it:
Online demo here (open the console to see the "sorted" list).
For a continuous video player you can check out this fiddle I made a while ago.