<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVSampleBufferRenderSynchronizer/setRate(_:time:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVSampleBufferRenderSynchronizer(im)setRate:time:"
  },
  "title" : "setRate(_:time:)"
}
-->

# setRate(_:time:)

Sets the renderer’s time and rate.

```
func setRate(_ rate: Float, time: CMTime)
```

## Parameters

`rate`

The new timebase rate. This value must be greater than or equal to `0.0`.

`time`

The new timebase time. This value must be greater than or equal to <doc://com.apple.documentation/documentation/CoreMedia/CMTime/zero>, or <doc://com.apple.documentation/documentation/CoreMedia/CMTime/invalid>.

## Discussion

This method first sets the new time and then the new rendering rate. A `rate` value of `0.0` means that playback has stopped while a `rate` value of `1.0` indicates playback should be at the natural rate of the media.

---

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)