Class: AVMetadataObject
Overview
The AVMetadataObject class is an abstract class that defines the basic properties associated with a piece of metadata. These attributes reflect information either about the metadata itself or the media from which the metadata originated. Subclasses are responsible for providing appropriate values for each of the relevant properties.
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- bounds
readonly
The bounding rectangle associated with the metadata.
-
- duration
readonly
The duration of the media associated with this metadata object.
-
- time
readonly
The media time value associated with the metadata object.
-
- type
readonly
The type of the metadata.
Method Summary
Methods inherited from NSObject
#!, #!=, #!~, #, #==, #===, #=~, #Rational, #__callee__, #__method__, #__send__, #__type__, `, alloc, allocWithZone:, #autoContentAccessingProxy, autoload, autoload?, autorelease_pool, #awakeAfterUsingCoder:, binding, block_given?, caller, cancelPreviousPerformRequestsWithTarget:, cancelPreviousPerformRequestsWithTarget:selector:object:, catch, class, classFallbacksForKeyedArchiver, #classForCoder, #classForKeyedArchiver, classForKeyedUnarchiver, #clone, conformsToProtocol:, #copy, copyWithZone:, #dealloc, #define_singleton_method, description, display, #doesNotRecognizeSelector:, #dup, #enum_for, #eql?, #equal?, #extend, fail, #finalize, format, #forwardInvocation:, #forwardingTargetForSelector:, framework, #freeze, #frozen?, getpass, gets, global_variables, #init, initialize, #initialize_clone, #initialize_copy, #initialize_dup, #inspect, instanceMethodForSelector:, instanceMethodSignatureForSelector:, #instance_eval, #instance_exec, #instance_of?, #instance_variable_defined?, #instance_variable_get, #instance_variable_set, #instance_variables, instancesRespondToSelector:, isSubclassOfClass:, #is_a?, iterator?, #kind_of?, lambda, load, load_bridge_support_file, load_plist, local_variables, loop, #method, #methodForSelector:, #methodSignatureForSelector:, #methods, #mutableCopy, mutableCopyWithZone:, new, #nil?, open, p, #performSelector:onThread:withObject:waitUntilDone:, #performSelector:onThread:withObject:waitUntilDone:modes:, #performSelector:withObject:afterDelay:, #performSelector:withObject:afterDelay:inModes:, #performSelectorInBackground:withObject:, #performSelectorOnMainThread:withObject:waitUntilDone:, #performSelectorOnMainThread:withObject:waitUntilDone:modes:, print, printf, #private_methods, proc, #protected_methods, #public_method, #public_methods, #public_send, putc, puts, raise, rand, readline, readlines, #replacementObjectForCoder:, #replacementObjectForKeyedArchiver:, require, resolveClassMethod:, resolveInstanceMethod:, #respond_to?, #respond_to_missing?, select, #send, setVersion:, #singleton_methods, sprintf, srand, superclass, #taint, #tainted?, #tap, test, throw, #to_plist, #to_s, trace_var, trap, #trust, #untaint, untrace_var, #untrust, #untrusted?, version
Constructor Details
This class inherits a constructor from NSObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class NSObject
Instance Attribute Details
- (CGRect) bounds (readonly)
The bounding rectangle associated with the metadata. (read-only) The bounding rectangle is specified relative to the picture or video of the corresponding media. The rectangle’s origin is always specified in the top-left corner and the x and y axis extend down and to the right. If the metadata has no bounding rectangle, the value if this property should be CGRectZero.For video content, the bounding rectangle may be expressed using scalar values in the range 0 to 1. Scalar values remain meaningful even when the original video has been scaled down.
- (CMTime) duration (readonly)
The duration of the media associated with this metadata object. (read-only) For metadata originating from a sample buffer (CMSampleBufferRef), the duration reflects the duration of the sample buffer. If there is no valid duration value associated with the metadata, this property should contain kCMTimeInvalid.
- (CMTime) time (readonly)
The media time value associated with the metadata object. (read-only) For captured media, this property represents the time at which the metadata was captured. For metadata originating from a sample buffer (CMSampleBufferRef), the time is the sample buffer’s presentation time. If there is no valid time value associated with the metadata, this property should contain kCMTimeInvalid.
- (String) type (readonly)
The type of the metadata. (read-only) You use this string to distinguish between different types of metadata. The possible values for this property are defined by subclasses, which can define constants for the type of metadata they represent.