loadUneditedDuration(completionHandler:)
Returns the duration of the track, disregarding edits.
Declaration
optional func loadUneditedDuration(completionHandler: @escaping @Sendable (CMTime, (any Error)?) -> Void)optional func uneditedDuration() async throws -> CMTimeParameters
- completionHandler:
The completion block to execute when the load operation finishes.
Discussion
Media Toolbox uses this information to validate edit information and to check if the media is suitable for gapless playback.
See Also
Getting track information
loadTrackInfo(completionHandler:)generateSampleCursor(atPresentationTimeStamp:completionHandler:)generateSampleCursorAtFirstSampleInDecodeOrder(completionHandler:)generateSampleCursorAtLastSampleInDecodeOrder(completionHandler:)loadTotalSampleDataLength(completionHandler:)loadEstimatedDataRate(completionHandler:)loadMetadata(completionHandler:)