Returns a Boolean value that indicates whether a given array of track segments conform to the timing rules for a composition track.
- iOS 4.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
An array of
If validation fails, on return contains an
NSErrorobject that describes the problem.
true if the track segments in
track conform to the timing rules for a composition track, otherwise
You can use this method to ensure that an array of track segments is suitable for setting as the value of the
segments property. The
time of the first track segment must be
k, and the
time of each subsequent track segment must equal
If you want to modify the existing
segments array, you can create a mutable copy of it, modify the mutable array, and then validate the mutable array using this method.