The video doesn't stop playing when the slider continues because we stay on the page containing the video.
A workaround for the manual mode version of the slider is to attach an event handler to the body ensuring that a click event reloads the iframe.
HTML for the video:
Code:
<div class="slide" >
<div class="desc" > <!-- Takes care of the iframe's height -->
<iframe name="ifrm" id="ifrm" style="position:relative; width:100%; height:100%" src="http://www.youtube.com/embed/7OmAiEvGp7A?wmode=transparent&autoplay=0" frameborder="0" allowfullscreen ></iframe>
</div>
</div>
Event handler (script at the end of the body):
Code:
<script>
document.body.addEventListener("click", YouTubeStop);
function YouTubeStop() {//delay required in order not to interfer with slide
document.getElementById('ifrm').style.opacity=0;
setTimeout("frames.ifrm.location.replace('http://www.youtube.com/embed/7OmAiEvGp7A?wmode=transparent&autoplay=0')",1000);
setTimeout("document.getElementById('ifrm').style.opacity=1",1500)
}
</script>
Demo: http://mesdomaines.nu/dmwhipp.html
It's not perfect, but it works (more or less)
Bookmarks