Play and Pause Buttons for YouTube and Vimeo Videos (via Their APIs)
The Vimeo player API actually works by sending commands through
<span style="color: #2e2f3e;">postMessage</span>right to the iframe. You don’t need the froogaloop library to do that, but<span style="color: #2e2f3e;">postMessage</span>has some inherent complexities that this library (by Vimeo themselves) makes way easier. Plus it’s only 1.8kb so I’d recommend it.
source:
$link[host]
Read Original Source