---
title: currentTime
framework: webkitjs
role: symbol
role_heading: Instance Property
path: webkitjs/htmlmediaelement/1631307-currenttime
---

# currentTime

The current playback position in seconds.

## Declaration

```data
attribute unrestricted double currentTime;
```

## Discussion

Discussion When you set this property, the media play head moves to the new location. An INVALID_STATE_ERR DOM exception is raised if there is no selected media resource when you set this property. An INDEX_SIZE_ERR DOM exception is raised if the specified time is not within the start and end times.

## See Also

### Getting and Setting Properties

- [autoplay](webkitjs/htmlmediaelement/1629662-autoplay.md)
- [controls](webkitjs/htmlmediaelement/1631980-controls.md)
- [defaultPlaybackRate](webkitjs/htmlmediaelement/1631650-defaultplaybackrate.md)
- [loop](webkitjs/htmlmediaelement/1633760-loop.md)
- [muted](webkitjs/htmlmediaelement/1630580-muted.md)
- [playbackRate](webkitjs/htmlmediaelement/1629746-playbackrate.md)
- [preload](webkitjs/htmlmediaelement/1633059-preload.md)
- [src](webkitjs/htmlmediaelement/1629312-src.md)
- [volume](webkitjs/htmlmediaelement/1631549-volume.md)
