Create a play/pause button with an HTML element

This code snippet will let you control the Player object with a click event.

Reference: Player Model

The Javascript

The HTML

Live Example