This example uses the addEventListener() method to attach a "volumechange" event to a video element.
Try to change the volume in the bottom right corner.
Video courtesy of Big Buck Bunny.