Easy Tutorial
❮ Att Canvas Width Att Table Align ❯

HTML Audio/Video DOM currentTime Property

HTML Audio/Video DOM Reference Manual

Example

Set the time position to 5 seconds:


Definition and Usage

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

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


Browser Support

All major browsers support the currentTime property.

Note: This property is not supported in Internet Explorer 8 and earlier versions.


Syntax

Set the currentTime property:

Return the currentTime property:

Property Values

Value Description
seconds Indicates the current playback position of the audio/video, in seconds.

Technical Details

| Return Value: | Numeric value, representing seconds | | --- | --- |

❮ Att Canvas Width Att Table Align ❯