Attach a "timeupdate" event to a video element.
When the user plays the video, or skips to a new position, a function will display the position (in seconds) of the playback: