Good Morning Kais,
That’s a very good question. What I would suggest up front is turning off automatically playing the slideshow. That’s far and away the easiest option. If you need to leave on autoplay and have it pause it is possible with some types of videos. I believe you can do that using YouTube or Vimeo’s API.
There is a rather lengthy thread on Github about this (https://github.com/woothemes/FlexSlider/issues/346). In the theme you’ll need to change this section of the custom-js.php file:
jQuery(window).load(function() {
jQuery('.flexslider').flexslider({
animation : "slide",
slideshow : <?php echo get_theme_mod('auto','true') ?>,
slideshowSpeed : <?php echo get_theme_mod('duration','5000') ?>,
controlNav : <?php echo get_theme_mod('control_nav','true') ?>,
directionNav : <?php echo get_theme_mod('prev_next','false') ?>,
prevText : "",
nextText : "",
pauseOnAction : true,
pauseOnHover : true,
useCSS : true,
video : true,
smoothHeight : true
});
});
If you do give it a try, let me know how it goes.
Take care,
Bill