function nextVideo(nextVid){
  currentVid = nextVid;
  vid_source.src = videos[currentVid];
  video.load();
  video.play();
}
// Load and auto play the next video
Load and auto play the next video
Load and auto play the next video
function nextVideo(nextVid){
  currentVid = nextVid;
  vid_source.src = videos[currentVid];
  video.load();
  video.play();
}
function nextVideo ( nextVid ) { currentVid = nextVid ; vid_source . src = videos [ currentVid ] ; video . load ( ) ; video . play ( ) ; }
Load and auto play the next video
Load and auto play the next video