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 MESampleCursorParameters
- 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
loadTrackInfo(completionHandler:)generateSampleCursor(atPresentationTimeStamp:completionHandler:)generateSampleCursorAtLastSampleInDecodeOrder(completionHandler:)loadUneditedDuration(completionHandler:)loadTotalSampleDataLength(completionHandler:)loadEstimatedDataRate(completionHandler:)loadMetadata(completionHandler:)