Class AVAssetWriterInputGroup

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class AVAssetWriterInputGroup
    extends AVMediaSelectionGroup
    AVAssetWriterInputGroup Associates tracks corresponding to inputs with each other in a mutually exclusive relationship. This class is used to associate tracks corresponding to multiple AVAssetWriterInputs as mutually exclusive to each other for playback or other processing. For example, if you are creating an asset with multiple audio tracks using different spoken languages, only one of which should be played at a time, group the inputs corresponding to those tracks into a single instance of AVAssetWriterInputGroup and add the group to the AVAssetWriter via -[AVAssetWriter addInputGroup:]. If the output format supports mutually exlusive relationships among tracks, the AVAssetWriter will mark the tracks as mutually exclusive to each other. Note that because AVAssetWriterInputGroup is a subclass of AVMediaSelectionGroup, clients can examine the media selection options that will be available on the output asset before the asset is written. Best results for examining the options of the AVAssetWriterInputGroup will be obtained after associating the AVAssetWriterInputs of the AVAsset as appropriate via -[AVAssetWriterInput addTrackAssociationWithTrackOfInput:type:] and by initializing each AVAssetWriterInput with a source format hint, where appropriate.
    • Constructor Detail

      • AVAssetWriterInputGroup

        protected AVAssetWriterInputGroup​(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)
      • assetWriterInputGroupWithInputsDefaultInput

        public static AVAssetWriterInputGroup assetWriterInputGroupWithInputsDefaultInput​(NSArray<? extends AVAssetWriterInput> inputs,
                                                                                          AVAssetWriterInput defaultInput)
        assetWriterInputGroupWithInputs:defaultInput: Creates an instance of AVAssetWriterInputGroup, for use with -[AVAssetWriter addInputGroup:].
        Parameters:
        inputs - The collection of AVAssetWriterInputs to be grouped together.
        defaultInput - The instance of AVAssetWriterInput in the group to designate as the default. When the input group is added to an AVAssetWriter via -addInputGroup:, the value of marksOutputTrackAsEnabled will automatically be set to YES for the default input and set to NO for all of the other inputs in the group.
        Returns:
        An instance of AVAssetWriterInputGroup, for use with -[AVAssetWriter addInputGroup:].
      • 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)
      • mediaSelectionOptionsFromArrayFilteredAndSortedAccordingToPreferredLanguages

        public static NSArray<? extends AVMediaSelectionOption> mediaSelectionOptionsFromArrayFilteredAndSortedAccordingToPreferredLanguages​(NSArray<? extends AVMediaSelectionOption> mediaSelectionOptions,
                                                                                                                                             NSArray<java.lang.String> preferredLanguages)
      • 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()
      • defaultInput

        public AVAssetWriterInput defaultInput()
        [@property] defaultInput The input designated at the defaultInput of the receiver. The value of this property is a concrete instance of AVAssetWriterInput.
      • initWithInputsDefaultInput

        public AVAssetWriterInputGroup initWithInputsDefaultInput​(NSArray<? extends AVAssetWriterInput> inputs,
                                                                  AVAssetWriterInput defaultInput)
        initWithInputs:defaultInput: Creates an instance of AVAssetWriterInputGroup, for use with -[AVAssetWriter addInputGroup:].
        Parameters:
        inputs - The collection of AVAssetWriterInputs to be grouped together.
        defaultInput - The instance of AVAssetWriterInput in the group to designate as the default. When the input group is added to an AVAssetWriter via -addInputGroup:, the value of marksOutputTrackAsEnabled will automatically be set to YES for the default input and set to NO for all of the other inputs in the group.
        Returns:
        An instance of AVAssetWriterInputGroup, for use with -[AVAssetWriter addInputGroup:].
      • inputs

        public NSArray<? extends AVAssetWriterInput> inputs()
        [@property] inputs The inputs grouped together by the receiver. The value of this property is an NSArray containing concrete instances of AVAssetWriterInput.