---
title: "setStartTime(_:forItemWith:)"
framework: mediaplayer
role: symbol
role_heading: Instance Method
path: "mediaplayer/mpmusicplayerplayparametersqueuedescriptor/setstarttime(_:foritemwith:)"
---

# setStartTime(_:forItemWith:)

Sets the time the item with the associated play parameters is to start playing.

## Declaration

```swift
func setStartTime(_ startTime: TimeInterval, forItemWith playParameters: MPMusicPlayerPlayParameters)
```

## Parameters

- `startTime`: The doc://com.apple.documentation/documentation/Foundation/TimeInterval describing when the item with designated play parameters starts playing.
- `playParameters`: The play parameters associated with the item in the queue that has a changed start time.

## See Also

### Setting start and end times

- [setEndTime(_:forItemWith:)](mediaplayer/mpmusicplayerplayparametersqueuedescriptor/setendtime(_:foritemwith:).md)
