This example uses the addEventListener() method to attach a "durationchange" event to a video element.
Video courtesy of Big Buck Bunny.