<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioPlayerNode/playAudio(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAudioPlayerNode(im)playAtTime:error:"
  },
  "title" : "playAudio(at:)"
}
-->

# playAudio(at:)

```
func playAudio(at when: AVAudioTime?) throws
```

## Parameters

`when`

the node time at which to start or resume playback. nil signifies “now”.

## Discussion

\abstract Start or resume playback at a specific time.
\discussion This node is initially paused. Requests to play buffers or file segments are enqueued, and
any necessary decoding begins immediately. Playback does not begin, however, until the player
has started playing, via this method.

Note that providing an AVAudioTime which is past (before lastRenderTime) will cause the
player to begin playback immediately.

E.g. To start a player X seconds in future:

---

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)