Contents

generateSampleCursorAtFirstSampleInDecodeOrder(completionHandler:)

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

Declaration

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

Parameters

  • completionHandler:

    The completion block to execute when the generate operation finishes.

Discussion

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

See Also

Getting track information