Class AVAssetReaderSampleReferenceOutput

  • All Implemented Interfaces:
    NSObject

    public class AVAssetReaderSampleReferenceOutput
    extends AVAssetReaderOutput
    AVAssetReaderSampleReferenceOutput AVAssetReaderSampleReferenceOutput is a concrete subclass of AVAssetReaderOutput that defines an interface for reading sample references from a single AVAssetTrack of an AVAssetReader's AVAsset. Clients can extract information about the location (file URL and offset) of samples in a track by adding an instance of AVAssetReaderSampleReferenceOutput to an AVAssetReader using the -[AVAssetReader addOutput:] method. No actual sample data can be extracted using this class. The location of the sample data is described by the kCMSampleBufferAttachmentKey_SampleReferenceURL and kCMSampleBufferAttachmentKey_SampleReferenceByteOffset attachments on the extracted sample buffers. More information about sample buffers describing sample references can be found in the CMSampleBuffer documentation. Sample buffers extracted using this class can also be appended to an AVAssetWriterInput to create movie tracks that are not self-contained and reference data in the original file instead. Currently, only instances of AVAssetWriter configured to write files of type AVFileTypeQuickTimeMovie can be used to write tracks that are not self-contained. Since no sample data is ever returned by instances of AVAssetReaderSampleReferenceOutput, the value of the alwaysCopiesSampleData property is ignored.
    • Constructor Detail

      • AVAssetReaderSampleReferenceOutput

        protected AVAssetReaderSampleReferenceOutput​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • assetReaderSampleReferenceOutputWithTrack

        public static AVAssetReaderSampleReferenceOutput assetReaderSampleReferenceOutputWithTrack​(AVAssetTrack track)
        assetReaderSampleReferenceOutputWithTrack: Returns an instance of AVAssetReaderSampleReferenceOutput for supplying sample references. The track must be one of the tracks contained by the target AVAssetReader's asset.
        Parameters:
        track - The AVAssetTrack for which the resulting AVAssetReaderSampleReferenceOutput should provide sample references.
        Returns:
        An instance of AVAssetReaderSampleReferenceOutput.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • initWithTrack

        public AVAssetReaderSampleReferenceOutput initWithTrack​(AVAssetTrack track)
        initWithTrack: Returns an instance of AVAssetReaderSampleReferenceOutput for supplying sample references. The track must be one of the tracks contained by the target AVAssetReader's asset.
        Parameters:
        track - The AVAssetTrack for which the resulting AVAssetReaderSampleReferenceOutput should provide sample references.
        Returns:
        An instance of AVAssetReaderTrackOutput.
      • track

        public AVAssetTrack track()
        [@property] track The track from which the receiver extracts sample references. The value of this property is an AVAssetTrack owned by the target AVAssetReader's asset.