---
title: currentPlaybackTime
framework: mediaplayer
role: symbol
role_heading: Instance Property
path: mediaplayer/mpmediaplayback/currentplaybacktime
---

# currentPlaybackTime

The current position of the playhead.

## Declaration

```swift
var currentPlaybackTime: TimeInterval { get set }
```

## Discussion

Discussion For video-on-demand or progressively downloaded content, this value measures seconds from the beginning of the current item. Changing the value of this property moves the playhead to the new location. For content streamed live from a server, this value represents the time from the beginning of the playlist when it was first loaded. The system returns NaN if the CMTime is invalid or indefinite.

## See Also

### Accessing playback attributes

- [currentPlaybackRate](mediaplayer/mpmediaplayback/currentplaybackrate.md)
