---
title: "step(byCount:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avplayeritem/step(bycount:)"
---

# step(byCount:)

Moves the player item’s current time forward or backward by a specified number of steps.

## Declaration

```swift
nonisolated func step(byCount stepCount: Int)
```

## Parameters

- `stepCount`: The number of steps by which to move. A positive number steps forward, a negative number steps backward.

## Discussion

Discussion The size of each step depends on the receiver’s enabled AVPlayerItemTrack objects (see tracks).

## See Also

### Stepping through media

- [canStepForward](avfoundation/avplayeritem/canstepforward.md)
- [canStepBackward](avfoundation/avplayeritem/canstepbackward.md)
