Inside of my slider contains a video. The first slide contains this video. How can you stop the Flexslider animation when a Youtube video beings to play?
$(window).load(function(){
$('.flexslider').flexslider({
animation: "fade",
pauseOnHover: true,
start: function(slider){
$('body').removeClass('loading');
slider.pause();
setTimeout(function(){
slider.play();
}, 6000);
},
after: function(slider){
$('div.flexslider').mouseover(function(){
slider.pause();
});
$('div.flexslider').mouseout(function(){
slider.resume();
});
}
});
});
<ul class="slides" style="z-index:99;">
<li>
<div class="banner_video">
<iframe width="450" height="280" src="//www.youtube.com/embed/Au46iRGFuUw?rel=0&autoplay=1" frameborder="0" allowfullscreen id="banner_video"></iframe>
</div>
<a href="master_diploma_programme.php">
<img src="images/banner/home/master-diploma.jpg" alt="Master Diploma Programe" title="Master Diploma Programe" />
</a>
</li>
<li><a href="franchise_opportunity_maharastra.php"><img src="images/banner/home/Invite_maharastra.jpg" alt="Franchise Business for Maharashtra" title="Franchise Business for Maharashtra" width="1004" height="300" /></a></li>
</ul>