Pause Video While clicking Next and Prev button -Flexslider

Pause Video While clicking Next and Prev button -Flexslider

I have used flex slider for implementing image and video slider .The video may be either YouTube or custom videos. Its working fine.I need to pause the video while a user press the Next or Previous button. Any help will be appreciated.

Thank you