<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MusicKit",
  "identifier" : "/documentation/MusicKit/MusicPlayer/playbackTime",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MusicKit"
    ],
    "preciseIdentifier" : "s:8MusicKit0A6PlayerC12playbackTimeSdvp"
  },
  "title" : "playbackTime"
}
-->

# playbackTime

The current playback time, in seconds, of the current entry.

```
var playbackTime: TimeInterval { get set }
```

## Discussion

Changing the value of this property moves the playhead to the
new location. For content streaming live from a server,
this value represents the time from the beginning of the playlist
when it first loads. This property returns `NaN` if the
<doc://com.apple.documentation/documentation/CoreMedia/CMTime>
is invalid or indefinite.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)