Contents

generateSampleCursorAtLastSampleInDecodeOrder(completionHandler:)

Provides a new sample cursor that points to the last sample in decode order.

Declaration

func generateSampleCursorAtLastSampleInDecodeOrder(completionHandler: @escaping  @Sendable ((any MESampleCursor)?, (any Error)?) -> Void)
func sampleCursorAtLastSampleInDecodeOrder() async throws -> any MESampleCursor

Parameters

  • completionHandler:

    The completion block to execute when the generate operation finishes.

Discussion

The new sample cursor points to the last sample in decode order, regardless of presentation time stamp (PTS).

See Also

Getting track information