<!--
{
  "availability" : [
    "FxPlug: 4.0.0 -",
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "professional_video_applications",
  "identifier" : "/documentation/professional_video_applications/FxKeyframeAPI_v3/keyframe(_:atOrBefore:fromParameter:andChannel:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)FxKeyframeAPI_v3(im)keyframe:atOrBeforeTime:fromParameter:andChannel:"
  },
  "title" : "keyframe(_:atOrBefore:fromParameter:andChannel:)"
}
-->

# keyframe(_:atOrBefore:fromParameter:andChannel:)

Returns the info about the nearest previous keyframe.

```
func keyframe(_ keyframe: UnsafeMutablePointer<FxKeyframe>, atOrBefore time: CMTime, fromParameter parameterID: Int, andChannel channelIndex: Int) -> (any Error)?
```

## Parameters

`keyframe`

A pointer to a struct which will receive information about the keyframe at or before the given time.

`time`

The time (<doc://com.apple.documentation/documentation/CoreMedia/CMTime>) you want a keyframe at or before.

`parameterID`

The ID of the parameter for which you want the keyframe information.

`channelIndex`

The index of the channel of the parameter for which you want the keyframe information.

---

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)