pub unsafe trait AVVideoCompositionValidationHandling: NSObjectProtocol {
// Provided methods
unsafe fn videoComposition_shouldContinueValidatingAfterFindingInvalidValueForKey(
&self,
video_composition: &AVVideoComposition,
key: &NSString,
) -> bool
where Self: Sized + Message { ... }
unsafe fn videoComposition_shouldContinueValidatingAfterFindingEmptyTimeRange(
&self,
video_composition: &AVVideoComposition,
time_range: CMTimeRange,
) -> bool
where Self: Sized + Message { ... }
unsafe fn videoComposition_shouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction(
&self,
video_composition: &AVVideoComposition,
video_composition_instruction: &ProtocolObject<dyn AVVideoCompositionInstructionProtocol>,
) -> bool
where Self: Sized + Message { ... }
unsafe fn videoComposition_shouldContinueValidatingAfterFindingInvalidTrackIDInInstruction_layerInstruction_asset(
&self,
video_composition: &AVVideoComposition,
video_composition_instruction: &ProtocolObject<dyn AVVideoCompositionInstructionProtocol>,
layer_instruction: &AVVideoCompositionLayerInstruction,
asset: &AVAsset,
) -> bool
where Self: Sized + Message { ... }
}AVVideoComposition only.Expand description
Provided Methods§
Sourceunsafe fn videoComposition_shouldContinueValidatingAfterFindingInvalidValueForKey(
&self,
video_composition: &AVVideoComposition,
key: &NSString,
) -> bool
unsafe fn videoComposition_shouldContinueValidatingAfterFindingInvalidValueForKey( &self, video_composition: &AVVideoComposition, key: &NSString, ) -> bool
Invoked by an instance of AVVideoComposition when validating an instance of AVVideoComposition, to report a key that has an invalid value.
- Returns: An indication of whether the AVVideoComposition should continue validation in order to report additional problems that may exist.
Sourceunsafe fn videoComposition_shouldContinueValidatingAfterFindingEmptyTimeRange(
&self,
video_composition: &AVVideoComposition,
time_range: CMTimeRange,
) -> bool
Available on crate feature objc2-core-media only.
unsafe fn videoComposition_shouldContinueValidatingAfterFindingEmptyTimeRange( &self, video_composition: &AVVideoComposition, time_range: CMTimeRange, ) -> bool
objc2-core-media only.Invoked by an instance of AVVideoComposition when validating an instance of AVVideoComposition, to report a timeRange that has no corresponding video composition instruction.
- Returns: An indication of whether the AVVideoComposition should continue validation in order to report additional problems that may exist.
Sourceunsafe fn videoComposition_shouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction(
&self,
video_composition: &AVVideoComposition,
video_composition_instruction: &ProtocolObject<dyn AVVideoCompositionInstructionProtocol>,
) -> bool
Available on crate feature AVVideoCompositing only.
unsafe fn videoComposition_shouldContinueValidatingAfterFindingInvalidTimeRangeInInstruction( &self, video_composition: &AVVideoComposition, video_composition_instruction: &ProtocolObject<dyn AVVideoCompositionInstructionProtocol>, ) -> bool
AVVideoCompositing only.Invoked by an instance of AVVideoComposition when validating an instance of AVVideoComposition, to report a video composition instruction with a timeRange that’s invalid, that overlaps with the timeRange of a prior instruction, or that contains times earlier than the timeRange of a prior instruction.
Use CMTIMERANGE_IS_INVALID, defined in CMTimeRange.h, to test whether the timeRange itself is invalid. Refer to headerdoc for AVVideoComposition.instructions for a discussion of how timeRanges for instructions must be formulated.
- Returns: An indication of whether the AVVideoComposition should continue validation in order to report additional problems that may exist.
Sourceunsafe fn videoComposition_shouldContinueValidatingAfterFindingInvalidTrackIDInInstruction_layerInstruction_asset(
&self,
video_composition: &AVVideoComposition,
video_composition_instruction: &ProtocolObject<dyn AVVideoCompositionInstructionProtocol>,
layer_instruction: &AVVideoCompositionLayerInstruction,
asset: &AVAsset,
) -> bool
Available on crate features AVAsset and AVVideoCompositing only.
unsafe fn videoComposition_shouldContinueValidatingAfterFindingInvalidTrackIDInInstruction_layerInstruction_asset( &self, video_composition: &AVVideoComposition, video_composition_instruction: &ProtocolObject<dyn AVVideoCompositionInstructionProtocol>, layer_instruction: &AVVideoCompositionLayerInstruction, asset: &AVAsset, ) -> bool
AVAsset and AVVideoCompositing only.Invoked by an instance of AVVideoComposition when validating an instance of AVVideoComposition, to report a video composition layer instruction with a trackID that does not correspond either to the trackID used for the composition’s animationTool or to a track of the asset specified in -[AVVideoComposition isValidForAsset:timeRange:delegate:].
- Returns: An indication of whether the AVVideoComposition should continue validation in order to report additional problems that may exist.