My setup: http://jsfiddle.net/ASa2K/1/
I have a Jquery Infinite Carousel which will have in it embedded Vimeo vids.
When 'Next' or 'Prev' is clicked, I would like it to stop all videos. Currently it keeps playing the videos while clicking through.
I've looked around but can't find much specific to my problem. I'm not so well-versed in js as you might have guessed!
Hej so first of you can find the api here
http://vimeo.com/api/docs/player-js
since its an iframe there is no back compatible way of communicating with it but there is something called postMessage that new browsers has. so You can write this.
$("iframe").each(function() {
this.contentWindow.postMessage('{ "method": "pause" }', "http://player.vimeo.com");
});
the different methods are documented on the page. but this pauses all players.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With