This example uses the addEventListener() method to attach a "playing" event to a video element.

Play, pause and then play the video again.

Video courtesy of Big Buck Bunny.