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