Use the HTML DOM to assign an "oncanplay" event to a video element.
Video courtesy of Big Buck Bunny.