pausing flexslider when embedded youtube video is playing

pausing flexslider when embedded youtube video is playing

I am using a wordpress theme that incorporates flexslider (theme: wp-ClearVideo. site: http://AynRandHero.com)

I have found the flexslider.js file where I can add options such as pauseOnHover: or slideshowSpeed.

The theme directs flexslider to include the embedded video and opening text from posts that are tagged "featured." I embed <iframe> youtube videos in the post.

Flexslider works great. The one challenge I have is that the slide show auto-advances EVEN after a user has started playing one of the youtube videos. 

I am not using a plug-in that normalizes the controls across video types. I am open to this if anyone has one to suggest that flexslider can work with.

I want the slider to stop advancing if (and as long as) a youtube video in the slider is playing. I can't find any jquery options on https://www.woothemes.com/flexslider that seem to accomplish this. pauseOnAction doesn't seem to work.

I assume I need to leverage some aspect of the youtube api to communicate to flexslider that an action is "happening" so that it will pause. I don't know how to do this. Do y'all have any suggestions for me?

Thanks, Mark
    • Topic Participants

    • tech