CSS TRICKS

Play and Pause Buttons for YouTube and Vimeo Videos (via Their APIs) | CSS-Tricks

“Sometimes you just need to start a video playing by some user interaction on the page other than clicking right on that video itself. Perhaps a ‘Play Video’ button of your own creation lives on your page and you want to start that video when that button is clicked. That’s JavaScript territory. And if that video is a YouTube or Vimeo video, we’ll need to make use of the APIs they provide. No problem.”

YouTube / Vimeo primer