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