Easy Tutorial
❮ Jsref For Met Canvas Stroke ❯

Video currentTime Property

Video Object

Example

Set the time position to 5 seconds:

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

Definition and Usage

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

When this property is set, playback jumps to the specified position.


Browser Support

All major browsers support the currentTime property.

Note: Internet Explorer 8 or earlier does not support this property.


Syntax

Return the currentTime property:

Set the currentTime property:

Property Values

Value Description
seconds Describes the current playback position of the video in seconds.

Technical Details

| Return Value: | Numeric value, representing the current playback time in seconds | | --- | --- |

❮ Jsref For Met Canvas Stroke ❯