then the actual video auto plays after,
two issues for now,
1.Need the prevent preroll to be able to be skipped as the controls are showing but be able to be started. (they have to for the second video)
2.Stop the second video is looping
http://wiziwiz.com/pr3.html
<script type="text/javascript">
// listener function changes src
function myNewSrc() {
var myVideo = document.getElementsByTagName('video')[0];
myVideo.src="http://www.wiziwiz.com/4f59dd2fe1e60.mp4";
myVideo.load();
myVideo.play();
}
// add listener function to ended event -->
function myAddListener(){
var myVideo = document.getElementsByTagName('video')[0];
myVideo.addEventListener('ended',myNewSrc,false);
}
</script>
</head>
<body onload="myAddListener()">
<p>HTML5 Pre roll</p>
<div style="background-color:#000000; width:720px; height:404px;"><video id="myvideo" controls preload="auto" width="720" height="404"
src="http://cdn.smart-video.tv/videos/ipad/4f422ca47cead.mp4" poster="http://www.wiziwiz.com/4f59dd2fe1e60.jpg">
</video></div>
</body>

New Topic/Question
Reply


MultiQuote







|