This example uses the HTML DOM to assign an "onprogress" event to a video element.

Video courtesy of Big Buck Bunny.