This example demonstrates how to assign an "onplay" event to a video element.

Press play.

Video courtesy of Big Buck Bunny.