this is simplistic, simplified HTML5 video playlist.
Surprisingly for me, it seems to be working just fine in mozzila / chrome / opera just like that
i mean - with ogv ONLY specified in the script.
Question - do i have to specify mp4 and webm as well ?
if so - how in this particular case ?
What about the IE ?
regards
the code:
HTML5_videovar videoPlayer;
var video_count = 1;
window.onload = function (){
videoPlayer = document.getElementById("homevideo");
videoPlayer.addEventListener("ended", function (){
video_count++;
if (video_count == 4) video_count = 1;
var nextVideo = video_count+".ogv";
videoPlayer.src = nextVideo;
}, false);
}