Reputation: 2785
I have a slideshow/slider containing images and videos from youtube. Is it possible to pause the current youtube video if the next or prev button is pressed. Also would i be able to auto play the clip when one comes back to the same slide?
Upvotes: 1
Views: 669
Reputation: 7596
Yes. YouTube JavaScript Player API Reference is what you need https://developers.google.com/youtube/js_api_reference#GettingStarted
Use player.stopVideo()
method.
Upvotes: 1