Video currentTimeProperty
Examples
Set the time position to 5 seconds:
document.getElementById("myVideo").currentTime = 5;
Try it Yourself »
Definition and Usage
The currentTime property sets or returns the current playback position of the video (in seconds).
When this property is set, playback will jump to the specified position.
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the currentTime property.
Note:Internet Explorer 8 and earlier browsers do not support this property.
Syntax
Return the currentTime property:
videoObject.currentTime
Set the currentTime property:
videoObject.currentTime=seconds
Property Values
| Value | Description |
|---|---|
| seconds | Describes the current playback position of the video (in seconds). |
Technical Details
| Return Value: | A numeric value representing the current playback time, in seconds |
|---|
Video Object Other Extensions