Seek

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

Endpoints

MethodDescription
.getAbsolutePosition()Returns the viewer's absolute position for a media file in date format. This call applies only to Live stream content.
.getDuration()The total length of the media file. This varies depending on VOD or live content. See the table below for more information.
.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.
.seek(position)Jump to the specified position within the currently playing item.


Events

MethodDescription
.on('absolutePositionReady')Triggered when .getAbsolutePosition() is ready to return data.
.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.