<script type="text/javascript">
// listener function changes src
function myNewSrc() {
var myVideo = document.getElementsByTagName('video')[0];
myVideo.src="http://nnn.com/nnn.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>
Нужно заменить обычное видео на iframe