This example uses the HTML DOM to assign an "onplaying" event to a video element.
Play, pause and then play the video again.
Video courtesy of Big Buck Bunny.