Where does this pause vimeo embed code go in my slider script?
问题 I'm using coda slider to slide a number of embedded Vimeo videos into view and I now need each video to pause when a link to another slide has been clicked. I'm embedding videos using an iframe and found this code which does the trick: http://jsfiddle.net/ASa2K/4/ My code is different though and I just don't know where the following pause script goes in my Coda slider JS file: $("iframe").each(function() { this.contentWindow.postMessage('{ "method": "pause" }', "http://player.vimeo.com"); });