Class AVComposition

    • Constructor Detail

      • AVComposition

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static AVComposition allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • assetWithURL

        public static AVComposition assetWithURL​(@NotNull
                                                 @NotNull NSURL URL)
      • automaticallyNotifiesObserversForKey

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

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

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

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

        @NotNull
        public static @NotNull 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • 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()
      • URLAssetInitializationOptions

        @NotNull
        public @NotNull NSDictionary<java.lang.String,​?> URLAssetInitializationOptions()
        [@property] URLAssetInitializationOptions Specifies the initialization options for the creation of AVURLAssets by the receiver, e.g. AVURLAssetPreferPreciseDurationAndTimingKey. The default behavior for creation of AVURLAssets by an AVComposition is equivalent to the behavior of +[AVURLAsset URLAssetWithURL:options:] when specifying no initialization options. AVCompositions create AVURLAssets internally for URLs specified by AVCompositionTrackSegments of AVCompositionTracks, as needed, whenever AVCompositionTrackSegments were originally added to a track via -[AVMutableCompositionTrack setSegments:] rather than by inserting timeranges of already existing AVAssets or AVAssetTracks. The value of URLAssetInitializationOptions can be specified at the time an AVMutableComposition is created via +compositionWithURLAssetInitializationOptions:. API-Since: 9.0
      • mutableCopyWithZone

        @NotNull
        public @NotNull java.lang.Object mutableCopyWithZone​(@Nullable
                                                             @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        mutableCopyWithZone in interface NSMutableCopying
      • naturalSize

        public CGSize naturalSize()
        [@property] naturalSize Indicates the authored size of the visual portion of the composition.
        Overrides:
        naturalSize in class AVAsset
      • trackWithTrackID

        @Nullable
        public @Nullable AVCompositionTrack trackWithTrackID​(int trackID)
        trackWithTrackID: Provides an instance of AVCompositionTrack that represents the track of the specified trackID. Becomes callable without blocking when the key @"tracks" has been loaded
        Overrides:
        trackWithTrackID in class AVAsset
        Parameters:
        trackID - The trackID of the requested AVCompositionTrack.
        Returns:
        An instance of AVCompositionTrack; may be nil if no track of the specified trackID is available.
      • tracks

        @NotNull
        public @NotNull NSArray<? extends AVCompositionTrack> tracks()
        [@property] tracks Provides the array of AVCompositionTracks contained by the composition.
        Overrides:
        tracks in class AVAsset
      • tracksWithMediaCharacteristic

        @NotNull
        public @NotNull NSArray<? extends AVCompositionTrack> tracksWithMediaCharacteristic​(@NotNull
                                                                                            @NotNull java.lang.String mediaCharacteristic)
        tracksWithMediaCharacteristic: Provides an array of AVCompositionTracks of the asset that present media with the specified characteristic. Becomes callable without blocking when the key @"tracks" has been loaded
        Overrides:
        tracksWithMediaCharacteristic in class AVAsset
        Parameters:
        mediaCharacteristic - The media characteristic according to which the receiver filters its AVCompositionTracks. (Media characteristics are defined in AVMediaFormat.h)
        Returns:
        An NSArray of AVCompositionTracks; may be empty if no tracks with the specified characteristic are available.
      • tracksWithMediaType

        @NotNull
        public @NotNull NSArray<? extends AVCompositionTrack> tracksWithMediaType​(@NotNull
                                                                                  @NotNull java.lang.String mediaType)
        tracksWithMediaType: Provides an array of AVCompositionTracks of the asset that present media of the specified media type. Becomes callable without blocking when the key @"tracks" has been loaded
        Overrides:
        tracksWithMediaType in class AVAsset
        Parameters:
        mediaType - The media type according to which the receiver filters its AVCompositionTracks. (Media types are defined in AVMediaFormat.h)
        Returns:
        An NSArray of AVCompositionTracks; may be empty if no tracks of the specified media type are available.
      • loadTrackWithTrackIDCompletionHandler

        public void loadTrackWithTrackIDCompletionHandler​(int trackID,
                                                          @NotNull
                                                          @NotNull AVComposition.Block_loadTrackWithTrackIDCompletionHandler completionHandler)
        loadTrackWithTrackID:completionHandler: Loads an instance of AVCompositionTrack that represents the track of the specified trackID.
        Parameters:
        trackID - The trackID of the requested AVCompositionTrack.
        completionHandler - A block that is called when the loading is finished, with either the loaded track (which may be nil if no track of the specified trackID is available) or an error. API-Since: 15.0
      • loadTracksWithMediaCharacteristicCompletionHandler

        public void loadTracksWithMediaCharacteristicCompletionHandler​(@NotNull
                                                                       @NotNull java.lang.String mediaCharacteristic,
                                                                       @NotNull
                                                                       @NotNull AVComposition.Block_loadTracksWithMediaCharacteristicCompletionHandler completionHandler)
        loadTracksWithMediaCharacteristic:completionHandler: Loads an array of AVCompositionTracks of the asset that present media with the specified characteristic.
        Parameters:
        mediaCharacteristic - The media characteristic according to which AVAsset filters its AVCompositionTracks. (Media characteristics are defined in AVMediaFormat.h.)
        completionHandler - A block that is called when the loading is finished, with either the loaded tracks (which may be empty if no tracks with the specified characteristic are available) or an error. API-Since: 15.0
      • loadTracksWithMediaTypeCompletionHandler

        public void loadTracksWithMediaTypeCompletionHandler​(@NotNull
                                                             @NotNull java.lang.String mediaType,
                                                             @NotNull
                                                             @NotNull AVComposition.Block_loadTracksWithMediaTypeCompletionHandler completionHandler)
        loadTracksWithMediaType:completionHandler: Loads an array of AVCompositionTracks of the asset that present media of the specified media type.
        Parameters:
        mediaType - The media type according to which AVAsset filters its AVCompositionTracks. (Media types are defined in AVMediaFormat.h.)
        completionHandler - A block that is called when the loading is finished, with either the loaded tracks (which may be empty if no tracks of the specified media type are available) or an error. API-Since: 15.0
      • chapterMetadataGroupsBestMatchingPreferredLanguages

        @NotNull
        public @NotNull NSArray<? extends AVTimedMetadataGroup> chapterMetadataGroupsBestMatchingPreferredLanguages​(@NotNull
                                                                                                                    @NotNull NSArray<java.lang.String> preferredLanguages)
        Description copied from class: AVAsset
        chapterMetadataGroupsBestMatchingPreferredLanguages: Tests, in order of preference, for a match between language identifiers in the specified array of preferred languages and the available chapter locales, and returns the array of chapters corresponding to the first match that's found. Safe to call without blocking when the AVAsset key availableChapterLocales has status AVKeyValueStatusLoaded. Returns an array of AVTimedMetadataGroup objects. Each object in the array always contains an AVMetadataItem representing the chapter title; the timeRange property of the AVTimedMetadataGroup object is equal to the time range of the chapter title item. All of the available chapter metadata is included in the metadata groups, including items with the common key AVMetadataCommonKeyArtwork, if such items are present. Items not carrying chapter titles will be added to an existing AVTimedMetadataGroup object if the time range (timestamp and duration) of the metadata item and that of the metadata group overlaps. The locale of such items need not match the locale of the chapter titles. Further filtering of the metadata items in AVTimedMetadataGroups according to language can be accomplished using +[AVMetadataItem metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:]; filtering of the metadata items according to locale can be accomplished using +[AVMetadataItem metadataItemsFromArray:withLocale:]. . API-Since: 6.0 Deprecated-Since: 100000.0
        Overrides:
        chapterMetadataGroupsBestMatchingPreferredLanguages in class AVAsset
        Parameters:
        preferredLanguages - An array of language identifiers in order of preference, each of which is an IETF BCP 47 (RFC 4646) language identifier. Use +[NSLocale preferredLanguages] to obtain the user's list of preferred languages.
        Returns:
        An NSArray of AVTimedMetadataGroup.
      • chapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeys

        @NotNull
        public @NotNull NSArray<? extends AVTimedMetadataGroup> chapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeys​(@NotNull
                                                                                                                                  @NotNull NSLocale locale,
                                                                                                                                  @Nullable
                                                                                                                                  @Nullable NSArray<java.lang.String> commonKeys)
        Description copied from class: AVAsset
        chapterMetadataGroupsWithTitleLocale:containingItemsWithCommonKeys: Provides an array of chapters. This method returns an array of AVTimedMetadataGroup objects. Each object in the array always contains an AVMetadataItem representing the chapter title; the timeRange property of the AVTimedMetadataGroup object is equal to the time range of the chapter title item. An AVMetadataItem with the specified common key will be added to an existing AVTimedMetadataGroup object if the time range (timestamp and duration) of the metadata item and the metadata group overlaps. The locale of items not carrying chapter titles need not match the specified locale parameter. Further filtering of the metadata items in AVTimedMetadataGroups according to language can be accomplished using +[AVMetadataItem metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:]; filtering of the metadata items according to locale can be accomplished using +[AVMetadataItem metadataItemsFromArray:withLocale:]. API-Since: 4.3 Deprecated-Since: 100000.0
        Overrides:
        chapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeys in class AVAsset
        Parameters:
        locale - Locale of the metadata items carrying chapter titles to be returned (supports the IETF BCP 47 specification).
        commonKeys - Array of common keys of AVMetadataItem to be included; can be nil. AVMetadataCommonKeyArtwork is the only supported key for now.
        Returns:
        An NSArray of AVTimedMetadataGroup.
      • mediaSelectionGroupForMediaCharacteristic

        @Nullable
        public @Nullable AVMediaSelectionGroup mediaSelectionGroupForMediaCharacteristic​(@NotNull
                                                                                         @NotNull java.lang.String mediaCharacteristic)
        Description copied from class: AVAsset
        mediaSelectionGroupForMediaCharacteristic: Provides an instance of AVMediaSelectionGroup that contains one or more options with the specified media characteristic. Becomes callable without blocking when the key @"availableMediaCharacteristicsWithMediaSelectionOptions" has been loaded. If the asset has no AVMediaSelectionGroup containing options with the specified media characteristic, the return value will be nil. Filtering of the options in the returned AVMediaSelectionGroup according to playability, locale, and additional media characteristics can be accomplished using the category AVMediaSelectionOptionFiltering defined on AVMediaSelectionGroup. API-Since: 5.0 Deprecated-Since: 100000.0
        Overrides:
        mediaSelectionGroupForMediaCharacteristic in class AVAsset
        Parameters:
        mediaCharacteristic - A media characteristic for which you wish to obtain the available media selection options. AVMediaCharacteristicAudible, AVMediaCharacteristicLegible, and AVMediaCharacteristicVisual are currently supported. Pass AVMediaCharacteristicAudible to obtain the group of available options for audio media in various languages and for various purposes, such as descriptive audio. Pass AVMediaCharacteristicLegible to obtain the group of available options for subtitles in various languages and for various purposes. Pass AVMediaCharacteristicVisual to obtain the group of available options for video media.
        Returns:
        An instance of AVMediaSelectionGroup. May be nil.
      • metadataForFormat

        @NotNull
        public @NotNull NSArray<? extends AVMetadataItem> metadataForFormat​(@NotNull
                                                                            @NotNull java.lang.String format)
        Description copied from class: AVAsset
        metadataForFormat: Provides an NSArray of AVMetadataItems, one for each metadata item in the container of the specified format; can subsequently be filtered according to language via +[AVMetadataItem metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:], according to locale via +[AVMetadataItem metadataItemsFromArray:withLocale:], or according to key via +[AVMetadataItem metadataItemsFromArray:withKey:keySpace:]. Becomes callable without blocking when the key @"availableMetadataFormats" has been loaded API-Since: 4.0 Deprecated-Since: 100000.0
        Overrides:
        metadataForFormat in class AVAsset
        Parameters:
        format - The metadata format for which items are requested.
        Returns:
        An NSArray containing AVMetadataItems; may be empty if there is no metadata of the specified format.
      • unusedTrackID

        public int unusedTrackID()
        Description copied from class: AVAsset
        API-Since: 4.0 Deprecated-Since: 100000.0
        Overrides:
        unusedTrackID in class AVAsset
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.