---
title: "seek(to:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/audioplaybackcontroller/seek(to:)"
---

# seek(to:)

Sets the playback position to the specified time.

## Declaration

```swift
@MainActor @preconcurrency func seek(to time: Duration)
```

## Parameters

- `time`: The desired playback position.
