These API calls are used to retrieve and update the current media playback position.


.getPosition()Intended to return the viewer's current position in a media file. Values may vary depending on the type of media. See the table below for more information.
.getDuration()The total length of the media file. This varies depending on VOD or live content. See the table below for more information.
.seek(position)Jump to the specified position within the currently playing item.


.on('seek')Fired after a seek has been requested either by scrubbing the control bar or through the API.
.on('seeked')Triggered when video position changes after seeking, as opposed to on('seek') which triggers as a seek occurs.
.on('time')While the player is playing, this event is fired as the playback position gets updated. This may occur as frequently as 10 times per second.