Set time position to 1 second:
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.
The currentTime property is supported in all major browsers.
Note: This property is not supported in Internet Explorer 8 and earlier.
Return the currentTime property:
Set the currentTime property:
Value | Description |
---|---|
seconds | Specifies the position for the playback of the audio, in seconds |
Return Value: | A Number, representing the current playback time in seconds |
---|