Contents

compatibleTrack(for:)

Returns an asset track from which you can insert any time range into a given composition track.

Declaration

func compatibleTrack(for compositionTrack: AVCompositionTrack) -> AVAssetTrack?

Parameters

  • compositionTrack:

    The composition track.

Return Value

An asset track managed by the asset from which any time range can be inserted into a given composition track.

Discussion

Apple discourages using this method in iOS 15, tvOS 15, macOS 12, and watchOS 8 or later. Load compatible tracks asynchronously using findCompatibleTrack(for:completionHandler:) instead.

This method is the logical complement of mutableTrack(compatibleWith:).