AVVideoCompositionValidationHandling Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/AVFoundation.framework
Availability
Available in iOS 5.0 and later.
Companion guide
Declared in
AVVideoComposition.h

Overview

The AVVideoCompositionValidationHandling protocol declares methods that you can implement in the delegate of an AVVideoComposition object to indicate whether validation of a video composition should continue after specific errors have been found.

You might chose to stop validation after particular errors have been found so as to avoid unnecessary subsequent processing following an eror from which there is no suitable recovery.

Tasks

Validation Methods

Instance Methods

videoComposition:shouldContinueValidatingAfterFindingEmptyTimeRange:

Reports a time range that has no corresponding video composition instruction.

- (BOOL)videoComposition:(AVVideoComposition *)videoComposition shouldContinueValidatingAfterFindingEmptyTimeRange:(CMTimeRange)timeRange
Parameters
videoComposition

The video composition being validated.

timeRange

The time range that has no corresponding video composition instruction.

Return Value

YES if the video composition should continue validation in order to report additional problems that may exist, otherwise NO.

Availability
  • Available in iOS 5.0 and later.
Declared In
AVVideoComposition.h

videoComposition:shouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction:

Reports a video composition instruction with a time range that is invalid, that overlaps with the time range of a prior instruction, or that contains times earlier than the time range of a prior instruction.

- (BOOL)videoComposition:(AVVideoComposition *)videoComposition shouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction:(AVVideoCompositionInstruction *)videoCompositionInstruction
Parameters
videoComposition

The video composition being validated.

videoCompositionInstruction

The video composition instruction.

Return Value

YES if the video composition should continue validation in order to report additional problems that may exist, otherwise NO.

Availability
  • Available in iOS 5.0 and later.
Declared In
AVVideoComposition.h

videoComposition:shouldContinueValidatingAfterFindingInvalidTrackIDInInstruction:layerInstruction:asset:

Reports a video composition layer instruction with a track ID that does not correspond either to the track ID used for the composition’s animation tool or to a track of the asset specified in isValidForAsset:timeRange:delegate:.

- (BOOL)videoComposition:(AVVideoComposition *)videoComposition shouldContinueValidatingAfterFindingInvalidTrackIDInInstruction:(AVVideoCompositionInstruction *)videoCompositionInstruction layerInstruction:(AVVideoCompositionLayerInstruction *)layerInstruction asset:(AVAsset *)asset
Parameters
videoComposition

The video composition being validated.

videoCompositionInstruction

The video composition instruction.

layerInstruction

The layer instruction.

asset

The underlying asset.

Return Value

YES if the video composition should continue validation in order to report additional problems that may exist, otherwise NO.

Availability
  • Available in iOS 5.0 and later.
Declared In
AVVideoComposition.h

videoComposition:shouldContinueValidatingAfterFindingInvalidValueForKey:

Reports that a key that has an invalid value.

- (BOOL)videoComposition:(AVVideoComposition *)videoComposition shouldContinueValidatingAfterFindingInvalidValueForKey:(NSString *)key
Parameters
videoComposition

The video composition being validated.

key

The key being validated.

Return Value

YES if the video composition should continue validation in order to report additional problems that may exist, otherwise NO.

Availability
  • Available in iOS 5.0 and later.
Declared In
AVVideoComposition.h