In this example, we use the addEventListener() method to attach a "timeupdate" event to a video element. When the user starts to play the video, or skips to a new position in the video, a function is triggered, which will display the current position (in seconds) of the video playback.
Playback position:
Video courtesy of Big Buck Bunny.