Package apple.avfoundation
Class AVComposition
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfoundation.AVAsset
-
- apple.avfoundation.AVComposition
-
- All Implemented Interfaces:
AVAsynchronousKeyValueLoading,NSCopying,NSMutableCopying,NSObject
- Direct Known Subclasses:
AVMutableComposition
public class AVComposition extends AVAsset implements NSMutableCopying
API-Since: 4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAVComposition.Block_loadTracksWithMediaCharacteristicCompletionHandlerstatic interfaceAVComposition.Block_loadTracksWithMediaTypeCompletionHandlerstatic interfaceAVComposition.Block_loadTrackWithTrackIDCompletionHandler-
Nested classes/interfaces inherited from class apple.avfoundation.AVAsset
AVAsset.Block_findUnusedTrackIDWithCompletionHandler, AVAsset.Block_loadChapterMetadataGroupsBestMatchingPreferredLanguagesCompletionHandler, AVAsset.Block_loadChapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeysCompletionHandler, AVAsset.Block_loadMediaSelectionGroupForMediaCharacteristicCompletionHandler, AVAsset.Block_loadMetadataForFormatCompletionHandler
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.avfoundation.protocol.AVAsynchronousKeyValueLoading
AVAsynchronousKeyValueLoading.Block_loadValuesAsynchronouslyForKeysCompletionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAVComposition(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static AVCompositionalloc()static AVCompositionallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static AVCompositionassetWithURL(@NotNull NSURL URL)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)@NotNull NSArray<? extends AVTimedMetadataGroup>chapterMetadataGroupsBestMatchingPreferredLanguages(@NotNull NSArray<java.lang.String> preferredLanguages)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.@NotNull NSArray<? extends AVTimedMetadataGroup>chapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeys(@NotNull NSLocale locale, @Nullable NSArray<java.lang.String> commonKeys)chapterMetadataGroupsWithTitleLocale:containingItemsWithCommonKeys: Provides an array of chapters.static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static longhash_static()AVCompositioninit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)voidloadTracksWithMediaCharacteristicCompletionHandler(@NotNull java.lang.String mediaCharacteristic, @NotNull AVComposition.Block_loadTracksWithMediaCharacteristicCompletionHandler completionHandler)loadTracksWithMediaCharacteristic:completionHandler: Loads an array of AVCompositionTracks of the asset that present media with the specified characteristic.voidloadTracksWithMediaTypeCompletionHandler(@NotNull java.lang.String mediaType, @NotNull AVComposition.Block_loadTracksWithMediaTypeCompletionHandler completionHandler)loadTracksWithMediaType:completionHandler: Loads an array of AVCompositionTracks of the asset that present media of the specified media type.voidloadTrackWithTrackIDCompletionHandler(int trackID, @NotNull AVComposition.Block_loadTrackWithTrackIDCompletionHandler completionHandler)loadTrackWithTrackID:completionHandler: Loads an instance of AVCompositionTrack that represents the track of the specified trackID.@Nullable AVMediaSelectionGroupmediaSelectionGroupForMediaCharacteristic(@NotNull java.lang.String mediaCharacteristic)mediaSelectionGroupForMediaCharacteristic: Provides an instance of AVMediaSelectionGroup that contains one or more options with the specified media characteristic.@NotNull NSArray<? extends AVMetadataItem>metadataForFormat(@NotNull java.lang.String format)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:].@NotNull java.lang.ObjectmutableCopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)CGSizenaturalSize()[@property] naturalSize Indicates the authored size of the visual portion of the composition.static AVCompositionnew_objc()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()@NotNull NSArray<? extends AVCompositionTrack>tracks()[@property] tracks Provides the array of AVCompositionTracks contained by the composition.@NotNull NSArray<? extends AVCompositionTrack>tracksWithMediaCharacteristic(@NotNull java.lang.String mediaCharacteristic)tracksWithMediaCharacteristic: Provides an array of AVCompositionTracks of the asset that present media with the specified characteristic.@NotNull NSArray<? extends AVCompositionTrack>tracksWithMediaType(@NotNull java.lang.String mediaType)tracksWithMediaType: Provides an array of AVCompositionTracks of the asset that present media of the specified media type.@Nullable AVCompositionTracktrackWithTrackID(int trackID)trackWithTrackID: Provides an instance of AVCompositionTrack that represents the track of the specified trackID.intunusedTrackID()API-Since: 4.0 Deprecated-Since: 100000.0@NotNull NSDictionary<java.lang.String,?>URLAssetInitializationOptions()[@property] URLAssetInitializationOptions Specifies the initialization options for the creation of AVURLAssets by the receiver, e.g.static booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.avfoundation.AVAsset
allMediaSelections, availableChapterLocales, availableMediaCharacteristicsWithMediaSelectionOptions, availableMetadataFormats, cancelLoading, canContainFragments, commonMetadata, containsFragments, copyWithZone, creationDate, duration, findUnusedTrackIDWithCompletionHandler, hasProtectedContent, isCompatibleWithAirPlayVideo, isCompatibleWithSavedPhotosAlbum, isComposable, isExportable, isPlayable, isReadable, loadChapterMetadataGroupsBestMatchingPreferredLanguagesCompletionHandler, loadChapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeysCompletionHandler, loadMediaSelectionGroupForMediaCharacteristicCompletionHandler, loadMetadataForFormatCompletionHandler, loadTracksWithMediaCharacteristicCompletionHandler, loadTracksWithMediaTypeCompletionHandler, loadTrackWithTrackIDCompletionHandler, loadValuesAsynchronouslyForKeysCompletionHandler, lyrics, metadata, minimumTimeOffsetFromLive, overallDurationHint, preferredMediaSelection, preferredRate, preferredTransform, preferredVolume, providesPreciseDurationAndTiming, referenceRestrictions, statusOfValueForKeyError, trackGroups
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static AVComposition alloc()
-
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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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)
-
new_objc
public static AVComposition 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()
-
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
-
init
public AVComposition init()
-
mutableCopyWithZone
@NotNull public @NotNull java.lang.Object mutableCopyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
mutableCopyWithZonein interfaceNSMutableCopying
-
naturalSize
public CGSize naturalSize()
[@property] naturalSize Indicates the authored size of the visual portion of the composition.- Overrides:
naturalSizein classAVAsset
-
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:
trackWithTrackIDin classAVAsset- 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.
-
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:
tracksWithMediaCharacteristicin classAVAsset- 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:
tracksWithMediaTypein classAVAsset- 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:AVAssetchapterMetadataGroupsBestMatchingPreferredLanguages: 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:
chapterMetadataGroupsBestMatchingPreferredLanguagesin classAVAsset- 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:AVAssetchapterMetadataGroupsWithTitleLocale: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:
chapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeysin classAVAsset- 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:AVAssetmediaSelectionGroupForMediaCharacteristic: 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:
mediaSelectionGroupForMediaCharacteristicin classAVAsset- 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:AVAssetmetadataForFormat: 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:
metadataForFormatin classAVAsset- 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:AVAssetAPI-Since: 4.0 Deprecated-Since: 100000.0- Overrides:
unusedTrackIDin classAVAsset
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-