Audio currentTime Property

❮ Audio Object

Example

Set time position to 1 second:

document.getElementById("myAudio").currentTime = 1;
Try it Yourself »

Description

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

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


Browser Support

Property
currentTime Yes Yes Yes Yes Yes

Syntax

Return the currentTime property:

audioObject.currentTime

Set the currentTime property:

audioObject.currentTime = seconds

Property Values

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

Technical Details

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

❮ Audio Object
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.