Protocol: AVVideoCompositionValidationHandling

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.Reports a time range that has no corresponding video composition instruction.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.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:. Reports that a key that has an invalid value.

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) videoComposition(videoComposition, shouldContinueValidatingAfterFindingEmptyTimeRange:timeRange)

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

Parameters:

  • videoComposition (Object)

    The video composition being validated.

  • timeRange (CMTimeRange)

    The time range that has no corresponding video composition instruction.

Returns:

  • (Boolean)

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

- (Boolean) videoComposition(videoComposition, shouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction:videoCompositionInstruction)

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.

Parameters:

  • videoComposition (Object)

    The video composition being validated.

  • videoCompositionInstruction (Object)

    The video composition instruction.

Returns:

  • (Boolean)

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

- (Boolean) videoComposition(videoComposition, shouldContinueValidatingAfterFindingInvalidTrackIDInInstruction:videoCompositionInstruction, layerInstruction:layerInstruction, asset: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:.

Parameters:

  • videoComposition (Object)

    The video composition being validated.

  • videoCompositionInstruction (Object)

    The video composition instruction.

  • layerInstruction (Object)

    The layer instruction.

  • asset (AVAsset)

    The underlying asset.

Returns:

  • (Boolean)

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

- (Boolean) videoComposition(videoComposition, shouldContinueValidatingAfterFindingInvalidValueForKey:key)

Reports that a key that has an invalid value.

Parameters:

  • videoComposition (Object)

    The video composition being validated.

  • key (String)

    The key being validated.

Returns:

  • (Boolean)

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