<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioPlayerNode/nodeTime(forPlayerTime:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAudioPlayerNode(im)nodeTimeForPlayerTime:"
  },
  "title" : "nodeTime(forPlayerTime:)"
}
-->

# nodeTime(forPlayerTime:)

Converts from player time to node time.

```
func nodeTime(forPlayerTime playerTime: AVAudioTime) -> AVAudioTime?
```

## Parameters

`playerTime`

A time relative to the player’s start time.

## Return Value

A node time, or `nil` if the player isn’t playing.

## Discussion

For more information about this method and its inverse [`playerTime(forNodeTime:)`](/documentation/AVFAudio/AVAudioPlayerNode/playerTime(forNodeTime:)), see [`Player Timeline`](/documentation/AVFAudio/AVAudioPlayerNode#Player-Timeline).

---

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)