Contents

CMSampleBufferGetPresentationTimeStamp(_:)

Returns the presentation timestamp that’s the earliest numerically of all the samples in a sample buffer.

Declaration

func CMSampleBufferGetPresentationTimeStamp(_ sbuf: CMSampleBuffer) -> CMTime

Parameters

  • sbuf:

    The CMSampleBuffer being interrogated.

Return Value

Numerically earliest sample presentation timestamp in the CMSampleBuffer. kCMTimeInvalid is returned if there is an error.

Discussion

For in-presentation-order samples, this is the presentation timestamp of the first sample. For out-of-presentation-order samples, this is the presentation timestamp of the sample that will be presented first, which isn’t necessarily the first sample in the buffer.

See Also

Inspecting Duration and Timing