---
title: getDecodeTimeStamp
framework: coremedia
role: symbol
role_heading: Instance Property
path: coremedia/cmbuffercallbacks/getdecodetimestamp
---

# getDecodeTimeStamp

Client callback that returns a CMTime from a CMBuffer.

## Declaration

```swift
var getDecodeTimeStamp: CMBufferGetTimeCallback?
```

## Discussion

Discussion This callback is called once from CMBufferQueueGetFirstDecodeTimeStamp(_:) and multiple times from CMBufferQueueGetMinDecodeTimeStamp(_:). It should return the decode timestamp of the buffer. If there are multiple samples in the buffer, this callback should return the minimum decode timestamp in the buffer. This can be NULL (CMBufferQueueGetFirstDecodeTimeStamp(_:) and CMBufferQueueGetMinDecodeTimeStamp(_:) will return kCMTimeInvalid).

## See Also

### Properties

- [compare](coremedia/cmbuffercallbacks/compare.md)
- [CMBufferCompareCallback](coremedia/cmbuffercomparecallback.md)
- [CMBufferGetBooleanCallback](coremedia/cmbuffergetbooleancallback.md)
- [CMBufferGetTimeCallback](coremedia/cmbuffergettimecallback.md)
- [dataBecameReadyNotification](coremedia/cmbuffercallbacks/databecamereadynotification.md)
- [getDuration](coremedia/cmbuffercallbacks/getduration.md)
- [getPresentationTimeStamp](coremedia/cmbuffercallbacks/getpresentationtimestamp.md)
- [getSize](coremedia/cmbuffercallbacks/getsize.md)
- [isDataReady](coremedia/cmbuffercallbacks/isdataready.md)
- [refcon](coremedia/cmbuffercallbacks/refcon.md)
- [version](coremedia/cmbuffercallbacks/version.md)
