Video currentTime Property

Definition and Usage

currentTime Property to set or return the current position of video playback (in seconds).

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

Example

Set the time position to 5 seconds:

document.getElementById("myVideo").currentTime = 5;

Try it yourself

Syntax

Return currentTime property:

videoObject.currentTime

Set currentTime property:

videoObject.currentTime = seconds

Attribute Value

Value Description
seconds Specifies the position of the video playback in seconds.

Technical Details

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

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support 9.0 Support Support Support