Contents

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 -> CMTime

Parameters

  • 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