Contents

CMBufferQueueGetFirstPresentationTimeStamp(_:)

Gets the presentation timestamp of the first buffer in a buffer queue.

Declaration

func CMBufferQueueGetFirstPresentationTimeStamp(_ queue: CMBufferQueue) -> CMTime

Parameters

  • queue:

    CMBufferQueue being interrogated.

Return Value

The presentation timestamp of the first buffer in the interrogated CMBufferQueue.

Discussion

This API is is a faster alternative to CMBufferQueueTestTrigger(_:triggerToken:), but only works if you know your queue is sorted by presentation timestamp. If the getPresentationTimeStamp callback is NULL, kCMTimeInvalid will be returned.

See Also

Inspecting Duration and Timing