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