Skip to main content
Get and Set Timestamp
Updated over 7 months ago

Overview

The Timestamp API enables you to interact with timestamps within the video player. This includes retrieving the current timestamp and setting it to a specific value within the video playback.

Get Timestamp

To retrieve the current timestamp, use the following method:

window.anyclip.getWidget().player.currentTime()

This will return the current position in milliseconds (positionMS) within the video.

Set Timestamp

To set a new timestamp within the video playback, use the following method:

window.anyclip.getWidget().setCurrentTime(positionMS);

Replace positionMS with the desired timestamp in milliseconds to jump to that specific point in the video.

Did this answer your question?