Package apple.avfoundation
Class AVMutableComposition
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfoundation.AVAsset
-
- apple.avfoundation.AVComposition
-
- apple.avfoundation.AVMutableComposition
-
- All Implemented Interfaces:
AVAsynchronousKeyValueLoading,NSCopying,NSMutableCopying,NSObject
public class AVMutableComposition extends AVComposition
API-Since: 4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAVMutableComposition.Block_insertTimeRangeOfAssetAtTimeCompletionHandlerstatic interfaceAVMutableComposition.Block_loadTracksWithMediaCharacteristicCompletionHandlerstatic interfaceAVMutableComposition.Block_loadTracksWithMediaTypeCompletionHandlerstatic interfaceAVMutableComposition.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 protectedAVMutableComposition(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()@Nullable AVMutableCompositionTrackaddMutableTrackWithMediaTypePreferredTrackID(@NotNull java.lang.String mediaType, int preferredTrackID)addMutableTrackWithMediaType:preferredTrackID: Adds an empty track to a mutable composition.@NotNull CNCompositionInfoaddTracksForCinematicAssetInfoPreferredStartingTrackID(@NotNull CNAssetInfo assetInfo, int preferredStartingTrackID)Adds a group of empty tracks associated with a cinematic asset to a mutable composition.static AVMutableCompositionalloc()static AVMutableCompositionallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static AVMutableCompositionassetWithURL(@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)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static AVMutableCompositioncomposition()composition Returns an empty AVMutableComposition.static AVMutableCompositioncompositionWithURLAssetInitializationOptions(@Nullable NSDictionary<java.lang.String,?> URLAssetInitializationOptions)compositionWithURLAssetInitializationOptions: Returns an empty AVMutableComposition.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static longhash_static()AVMutableCompositioninit()voidinsertEmptyTimeRange(CMTimeRange timeRange)insertEmptyTimeRange: Adds or extends an empty timeRange within all tracks of the composition.voidinsertTimeRangeOfAssetAtTimeCompletionHandler(CMTimeRange timeRange, @NotNull AVAsset asset, CMTime startTime, @NotNull AVMutableComposition.Block_insertTimeRangeOfAssetAtTimeCompletionHandler completionHandler)insertTimeRange:ofAsset:atTime:completionHandler: Inserts all the tracks of a timeRange of an asset into a composition.booleaninsertTimeRangeOfAssetAtTimeError(CMTimeRange timeRange, @NotNull AVAsset asset, CMTime startTime, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)Deprecated.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 AVMutableComposition.Block_loadTracksWithMediaCharacteristicCompletionHandler completionHandler)loadTracksWithMediaCharacteristic:completionHandler: Loads an array of AVMutableCompositionTracks of the asset that present media with the specified characteristic.voidloadTracksWithMediaTypeCompletionHandler(@NotNull java.lang.String mediaType, @NotNull AVMutableComposition.Block_loadTracksWithMediaTypeCompletionHandler completionHandler)loadTracksWithMediaType:completionHandler: Loads an array of AVMutableCompositionTracks of the asset that present media of the specified media type.voidloadTrackWithTrackIDCompletionHandler(int trackID, @NotNull AVMutableComposition.Block_loadTrackWithTrackIDCompletionHandler completionHandler)loadTrackWithTrackID:completionHandler: Loads an instance of AVMutableCompositionTrack that represents the track of the specified trackID.@Nullable AVMutableCompositionTrackmutableTrackCompatibleWithTrack(@NotNull AVAssetTrack track)mutableTrackCompatibleWithTrack: Provides a reference to a track of a mutable composition into which any timeRange of an AVAssetTrack can be inserted (via -[AVMutableCompositionTrack insertTimeRange:ofTrack:atTime:error:]).CGSizenaturalSize()[@property] naturalSize Indicates the authored size of the visual portion of the asset.static AVMutableCompositionnew_objc()voidremoveTimeRange(CMTimeRange timeRange)removeTimeRange: Removes a specified timeRange from all tracks of the composition.voidremoveTrack(@NotNull AVCompositionTrack track)removeTrack: Removes a track of a mutable composition.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidscaleTimeRangeToDuration(CMTimeRange timeRange, CMTime duration)scaleTimeRange:toDuration: Changes the duration of a timeRange of all tracks.voidsetNaturalSize(CGSize value)[@property] naturalSize Indicates the authored size of the visual portion of the asset.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()@NotNull NSArray<? extends AVMutableCompositionTrack>tracks()[@property] tracks Provides the array of AVMutableCompositionTracks contained by the composition.@NotNull NSArray<? extends AVMutableCompositionTrack>tracksWithMediaCharacteristic(@NotNull java.lang.String mediaCharacteristic)tracksWithMediaCharacteristic: Provides an array of AVMutableCompositionTracks of the asset that present media with the specified characteristic.@NotNull NSArray<? extends AVMutableCompositionTrack>tracksWithMediaType(@NotNull java.lang.String mediaType)tracksWithMediaType: Provides an array of AVMutableCompositionTracks of the asset that present media of the specified media type.@Nullable AVMutableCompositionTracktrackWithTrackID(int trackID)trackWithTrackID: Provides an instance of AVMutableCompositionTrack that represents the track of the specified trackID.static booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.avfoundation.AVComposition
chapterMetadataGroupsBestMatchingPreferredLanguages, chapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeys, loadTracksWithMediaCharacteristicCompletionHandler, loadTracksWithMediaTypeCompletionHandler, loadTrackWithTrackIDCompletionHandler, mediaSelectionGroupForMediaCharacteristic, metadataForFormat, mutableCopyWithZone, unusedTrackID, URLAssetInitializationOptions
-
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 AVMutableComposition alloc()
-
allocWithZone
public static AVMutableComposition allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
assetWithURL
public static AVMutableComposition 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()
-
composition
public static AVMutableComposition composition()
composition Returns an empty AVMutableComposition.
-
compositionWithURLAssetInitializationOptions
public static AVMutableComposition compositionWithURLAssetInitializationOptions(@Nullable @Nullable NSDictionary<java.lang.String,?> URLAssetInitializationOptions)
compositionWithURLAssetInitializationOptions: Returns an empty AVMutableComposition. AVMutableCompositions create AVURLAssets internally for URLs specified by AVCompositionTrackSegments of AVMutableCompositionTracks, as needed, whenever AVCompositionTrackSegments are added to tracks via -[AVMutableCompositionTrack setSegments:] rather than by inserting timeranges of already existing AVAssets or AVAssetTracks. API-Since: 9.0- Parameters:
URLAssetInitializationOptions- Specifies the initialization options that the receiver should use when creating AVURLAssets internally, e.g. AVURLAssetPreferPreciseDurationAndTimingKey. The default behavior for creation of AVURLAssets by an AVMutableComposition is equivalent to the behavior of +[AVURLAsset URLAssetWithURL:options:] when specifying no initialization options.
-
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 AVMutableComposition 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()
-
addMutableTrackWithMediaTypePreferredTrackID
@Nullable public @Nullable AVMutableCompositionTrack addMutableTrackWithMediaTypePreferredTrackID(@NotNull @NotNull java.lang.String mediaType, int preferredTrackID)
addMutableTrackWithMediaType:preferredTrackID: Adds an empty track to a mutable composition. If the specified preferred track ID is not available, or kCMPersistentTrackID_Invalid was passed in, a unique track ID will be generated.- Parameters:
mediaType- The media type of the new track.preferredTrackID- Specifies the preferred track ID for the new track. If you do not need to specify a preferred track ID, pass kCMPersistentTrackID_Invalid. Otherwise the preferred track ID will be used for the new track, provided that it is not currently in use and has not previously been used.- Returns:
- An instance of AVMutableCompositionTrack representing the new track. Its actual trackID is available via its @"trackID" key.
-
init
public AVMutableComposition init()
- Overrides:
initin classAVComposition
-
insertEmptyTimeRange
public void insertEmptyTimeRange(CMTimeRange timeRange)
insertEmptyTimeRange: Adds or extends an empty timeRange within all tracks of the composition. If you insert an empty timeRange into the composition, any media that was presented during that interval prior to the insertion will be presented instead immediately afterward. You can use this method to reserve an interval in which you want a subsequently created track to present its media. Note that you cannot add empty time ranges to the end of a composition.- Parameters:
timeRange- Specifies the empty timeRange to be inserted.
-
insertTimeRangeOfAssetAtTimeError
@Deprecated public boolean insertTimeRangeOfAssetAtTimeError(CMTimeRange timeRange, @NotNull @NotNull AVAsset asset, CMTime startTime, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
Deprecated.insertTimeRange:ofAsset:atTime:error: Inserts all the tracks of a timeRange of an asset into a composition. You provide a reference to an AVAsset and the timeRange within it that you want to insert. You specify the start time in the destination composition at which the timeRange should be inserted. This method may add new tracks to ensure that all tracks of the asset are represented in the inserted timeRange. Note that the media data for the inserted timeRange will be presented at its natural duration and rate. It can be scaled to a different duration and presented at a different rate via -scaleTimeRange:toDuration:. Existing content at the specified startTime will be pushed out by the duration of timeRange. Note that metadata will not be automatically copied. API-Since: 4.0 Deprecated-Since: 100000.0- Parameters:
timeRange- Specifies the timeRange of the asset to be inserted.asset- Specifies the asset that contains the tracks that are to be inserted. Only instances of AVURLAsset and AVComposition are supported (AVComposition starting in macOS 10.10 and iOS 8.0).startTime- Specifies the time at which the inserted tracks are to be presented by the composition.outError- Describes failures that may be reported to the user, e.g. the asset that was selected for insertion in the composition is restricted by copy-protection.- Returns:
- A BOOL value indicating the success of the insertion.
-
mutableTrackCompatibleWithTrack
@Nullable public @Nullable AVMutableCompositionTrack mutableTrackCompatibleWithTrack(@NotNull @NotNull AVAssetTrack track)
mutableTrackCompatibleWithTrack: Provides a reference to a track of a mutable composition into which any timeRange of an AVAssetTrack can be inserted (via -[AVMutableCompositionTrack insertTimeRange:ofTrack:atTime:error:]). If a compatible track is desired but the result of this method is nil, a new track of the same mediaType as the AVAssetTrack can be created via -addMutableTrackWithMediaType:preferredTrackID:, and this new track will be compatible. For best performance, the number of tracks of a composition should be kept to a minimum, corresponding to the number for which media data must be presented in parallel. If media data of the same type is to be presented serially, even from multiple assets, a single track of that media type should be used. This method, -mutableTrackCompatibleWithTrack:, can help the client to identify an existing target track for an insertion. Similar to -[AVAsset compatibleTrackForCompositionTrack:].- Parameters:
track- A reference to the AVAssetTrack from which a timeRange may be inserted.- Returns:
- An AVMutableCompositionTrack that can accommodate the insertion, or, if no such track is available, nil.
-
naturalSize
public CGSize naturalSize()
[@property] naturalSize Indicates the authored size of the visual portion of the asset. If not set, the value is the size of the composition's first video track. Set to CGSizeZero to revert to default behavior.- Overrides:
naturalSizein classAVComposition
-
removeTimeRange
public void removeTimeRange(CMTimeRange timeRange)
removeTimeRange: Removes a specified timeRange from all tracks of the composition. Removal of a time range does not cause any existing tracks to be removed from the composition, even if removing timeRange results in an empty track. Instead, it removes or truncates track segments that intersect with the timeRange. After removing, existing content after timeRange will be pulled in.- Parameters:
timeRange- Specifies the timeRange to be removed.
-
removeTrack
public void removeTrack(@NotNull @NotNull AVCompositionTrack track)removeTrack: Removes a track of a mutable composition. If you retain a reference to the removed track, note that its @"composition" key will have the value nil, and the values of its other properties are undefined.- Parameters:
track- A reference to the AVCompositionTrack to be removed.
-
scaleTimeRangeToDuration
public void scaleTimeRangeToDuration(CMTimeRange timeRange, CMTime duration)
scaleTimeRange:toDuration: Changes the duration of a timeRange of all tracks. Each trackSegment affected by the scaling operation will be presented at a rate equal to source.duration / target.duration of its resulting timeMapping.- Parameters:
timeRange- Specifies the timeRange of the composition to be scaled.duration- Specifies the new duration of the timeRange.
-
setNaturalSize
public void setNaturalSize(CGSize value)
[@property] naturalSize Indicates the authored size of the visual portion of the asset. If not set, the value is the size of the composition's first video track. Set to CGSizeZero to revert to default behavior.
-
trackWithTrackID
@Nullable public @Nullable AVMutableCompositionTrack trackWithTrackID(int trackID)
trackWithTrackID: Provides an instance of AVMutableCompositionTrack that represents the track of the specified trackID. Becomes callable without blocking when the key @"tracks" has been loaded- Overrides:
trackWithTrackIDin classAVComposition- Parameters:
trackID- The trackID of the requested AVMutableCompositionTrack.- Returns:
- An instance of AVMutableCompositionTrack; may be nil if no track of the specified trackID is available.
-
tracks
@NotNull public @NotNull NSArray<? extends AVMutableCompositionTrack> tracks()
[@property] tracks Provides the array of AVMutableCompositionTracks contained by the composition.- Overrides:
tracksin classAVComposition
-
tracksWithMediaCharacteristic
@NotNull public @NotNull NSArray<? extends AVMutableCompositionTrack> tracksWithMediaCharacteristic(@NotNull @NotNull java.lang.String mediaCharacteristic)
tracksWithMediaCharacteristic: Provides an array of AVMutableCompositionTracks of the asset that present media with the specified characteristic. Becomes callable without blocking when the key @"tracks" has been loaded- Overrides:
tracksWithMediaCharacteristicin classAVComposition- Parameters:
mediaCharacteristic- The media characteristic according to which the receiver filters its AVMutableCompositionTracks. (Media characteristics are defined in AVMediaFormat.h)- Returns:
- An NSArray of AVMutableCompositionTracks; may be empty if no tracks with the specified characteristic are available.
-
tracksWithMediaType
@NotNull public @NotNull NSArray<? extends AVMutableCompositionTrack> tracksWithMediaType(@NotNull @NotNull java.lang.String mediaType)
tracksWithMediaType: Provides an array of AVMutableCompositionTracks of the asset that present media of the specified media type. Becomes callable without blocking when the key @"tracks" has been loaded- Overrides:
tracksWithMediaTypein classAVComposition- Parameters:
mediaType- The media type according to which the receiver filters its AVMutableCompositionTracks. (Media types are defined in AVMediaFormat.h)- Returns:
- An NSArray of AVMutableCompositionTracks; may be empty if no tracks of the specified media type are available.
-
loadTrackWithTrackIDCompletionHandler
public void loadTrackWithTrackIDCompletionHandler(int trackID, @NotNull @NotNull AVMutableComposition.Block_loadTrackWithTrackIDCompletionHandler completionHandler)loadTrackWithTrackID:completionHandler: Loads an instance of AVMutableCompositionTrack that represents the track of the specified trackID.- Parameters:
trackID- The trackID of the requested AVMutableCompositionTrack.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 AVMutableComposition.Block_loadTracksWithMediaCharacteristicCompletionHandler completionHandler)loadTracksWithMediaCharacteristic:completionHandler: Loads an array of AVMutableCompositionTracks of the asset that present media with the specified characteristic.- Parameters:
mediaCharacteristic- The media characteristic according to which AVAsset filters its AVMutableCompositionTracks. (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 AVMutableComposition.Block_loadTracksWithMediaTypeCompletionHandler completionHandler)loadTracksWithMediaType:completionHandler: Loads an array of AVMutableCompositionTracks of the asset that present media of the specified media type.- Parameters:
mediaType- The media type according to which AVAsset filters its AVMutableCompositionTracks. (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
-
insertTimeRangeOfAssetAtTimeCompletionHandler
public void insertTimeRangeOfAssetAtTimeCompletionHandler(CMTimeRange timeRange, @NotNull @NotNull AVAsset asset, CMTime startTime, @NotNull @NotNull AVMutableComposition.Block_insertTimeRangeOfAssetAtTimeCompletionHandler completionHandler)
insertTimeRange:ofAsset:atTime:completionHandler: Inserts all the tracks of a timeRange of an asset into a composition. You provide a reference to an AVAsset and the timeRange within it that you want to insert. You specify the start time in the destination composition at which the timeRange should be inserted. This method may add new tracks to ensure that all tracks of the asset are represented in the inserted timeRange. Note that the media data for the inserted timeRange will be presented at its natural duration and rate. It can be scaled to a different duration and presented at a different rate via -scaleTimeRange:toDuration:. Existing content at the specified startTime will be pushed out by the duration of timeRange. Note that metadata will not be automatically copied. API-Since: 16.0- Parameters:
timeRange- Specifies the timeRange of the asset to be inserted.asset- Specifies the asset that contains the tracks that are to be inserted. Only instances of AVURLAsset and AVComposition are supported (AVComposition starting in macOS 10.10 and iOS 8.0).startTime- Specifies the time at which the inserted tracks are to be presented by the composition.completionHandler- A block that is invoked when the insertion is complete. If the error parameter is non-nil, it describes a failure that may be reported to the user, e.g. the asset that was selected for insertion in the composition is restricted by copy-protection.
-
addTracksForCinematicAssetInfoPreferredStartingTrackID
@NotNull public @NotNull CNCompositionInfo addTracksForCinematicAssetInfoPreferredStartingTrackID(@NotNull @NotNull CNAssetInfo assetInfo, int preferredStartingTrackID)
Adds a group of empty tracks associated with a cinematic asset to a mutable composition. - Returns: Information about the composition tracks added to the mutable composition. Be sure to call insertTimeRange on the result to specify at least one time range of cinematic asset you'd like in the composition.
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-