Audio currentTime Property

Definition and Usage

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

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

Example

Set the time position to 1 second:

document.getElementById("myAudio").currentTime = 1;

Try It Yourself

Syntax

Return the currentTime property:

audioObject.currentTime

Set the currentTime property:

audioObject.currentTime = seconds

Attribute Value

Value Description
seconds Specifies the position of the audio playback, in seconds.

Technical Details

Return Value: The value is represented in seconds, indicating the current playback time.

Browser Support

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