<html> <body> <span id="myVid" /> <!-- <video controls autoplay="autoplay"> <source src="myVid" /> </video>--> <script id="jsbin-javascript"> var videos = [ "dictionary/1.mp4", "dictionary/2.mp4", ]; videoPlayer = document.getElementById("myVid"); function playArray(index,ele,array,listener){ //e.removeEventListener(listener?listener:0); ele.innerHTML = array[index]; //e.load(); //le.play(); index++; if(index>=array.length){ index=0; } setTimeout(function(){ playArray(index,ele,array,listener); },2000); } playArray(0,document.getElementById("myVid"),videos); </script> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)