pub unsafe trait AVAssetReaderCaptionValidationHandling: NSObjectProtocol {
// Provided method
unsafe fn captionAdaptor_didVendCaption_skippingUnsupportedSourceSyntaxElements(
&self,
adaptor: &AVAssetReaderOutputCaptionAdaptor,
caption: &AVCaption,
syntax_elements: &NSArray<NSString>,
)
where Self: Sized + Message { ... }
}AVAssetReaderOutput only.Expand description
A protocol to receive caption validation notifications
A client can implement the protocol on its own class which processes the caption validation calls.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn captionAdaptor_didVendCaption_skippingUnsupportedSourceSyntaxElements(
&self,
adaptor: &AVAssetReaderOutputCaptionAdaptor,
caption: &AVCaption,
syntax_elements: &NSArray<NSString>,
)
Available on crate feature AVCaption only.
unsafe fn captionAdaptor_didVendCaption_skippingUnsupportedSourceSyntaxElements( &self, adaptor: &AVAssetReaderOutputCaptionAdaptor, caption: &AVCaption, syntax_elements: &NSArray<NSString>, )
AVCaption only.Called when one or more syntax elements were ignored in the process of creating the caption object.
Parameter adaptor: The caption adaptor object
Parameter caption: The caption object. The parser skipped unsupported syntax elements when creating this object.
Parameter syntaxElements: Array of NSString to represent the skipped syntax.
While the reported string content is human readable, it is highly technical and probably meaningful only to clients who are familiar with the source caption format. It is primarily designed for logging purposes and would not be suitable for UI purposes.