Seeking through media

Media elements provide support for moving the current playback position to specific points in the media’s content. This is done by setting the value of the currentTime property on the element; see HTMLMediaElement for further details on the element’s properties. Simply set the value to the time, in seconds, at which you want playback to continue.
 
You can use the element’s seekable property to determine the ranges of the media that are currently available for seeking to. This returns a TimeRanges object listing the ranges of times that you can seek to.

var mediaElement = document.getElementById('mediaElementID');
mediaElement.seekable.start();  // Returns the starting time (in seconds)
mediaElement.seekable.end();    // Returns the ending time (in seconds)
mediaElement.currentTime = 122; // Seek to 122 seconds
// Returns the number of seconds the browser has played
mediaElement.played.end();