HTML DOM Video currentTime Property
THE WORLD'S LARGEST WEB DEVELOPER SITE

Video currentTime Property

❮ Video Object

Example

Set time position to 5 seconds:

document.getElementById("myVideo").currentTime = 5;
Try it Yourself »

Definition and Usage

The currentTime property sets or returns the current position (in seconds) of the video playback.

When setting this property, the playback will jump to the specified position.


Browser Support

Property
currentTime Yes 9.0 Yes Yes Yes

Syntax

Return the currentTime property:

videoObject.currentTime

Set the currentTime property:

videoObject.currentTime = seconds

Property Values

Value Description
seconds Specifies the position for the playback of the video, in seconds

Technical Details

Return Value: A Number, representing the current playback time in seconds

❮ Video Object