Package apple.avfoundation
Class AVMutableCompositionTrack
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfoundation.AVAssetTrack
-
- apple.avfoundation.AVCompositionTrack
-
- apple.avfoundation.AVMutableCompositionTrack
-
- All Implemented Interfaces:
AVAsynchronousKeyValueLoading,NSCopying,NSObject
public class AVMutableCompositionTrack extends AVCompositionTrack
API-Since: 4.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.avfoundation.AVAssetTrack
AVAssetTrack.Block_loadAssociatedTracksOfTypeCompletionHandler, AVAssetTrack.Block_loadMetadataForFormatCompletionHandler, AVAssetTrack.Block_loadSamplePresentationTimeForTrackTimeCompletionHandler, AVAssetTrack.Block_loadSegmentForTrackTimeCompletionHandler
-
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 protectedAVMutableCompositionTrack(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()voidaddTrackAssociationToTrackType(@NotNull AVCompositionTrack compositionTrack, @NotNull java.lang.String trackAssociationType)addTrackAssociationToTrack:type: Establishes a track association of a specific type between two tracks.static AVMutableCompositionTrackalloc()static AVMutableCompositionTrackallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)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 java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()@Nullable java.lang.StringextendedLanguageTag()[@property] extendedLanguageTag Indicates the language tag associated with the track, as an IETF BCP 47 (RFC 4646) language identifier.static longhash_static()AVMutableCompositionTrackinit()voidinsertEmptyTimeRange(CMTimeRange timeRange)insertEmptyTimeRange: Adds or extends an empty timeRange within the composition track.booleaninsertTimeRangeOfTrackAtTimeError(CMTimeRange timeRange, @NotNull AVAssetTrack track, CMTime startTime, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)insertTimeRange:ofTrack:atTime:error: Inserts a timeRange of a source track into a track of a composition.booleaninsertTimeRangesOfTracksAtTimeError(@NotNull NSArray<? extends NSValue> timeRanges, @NotNull NSArray<? extends AVAssetTrack> tracks, CMTime startTime, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)insertTimeRanges:ofTracks:atTime:error: Inserts the timeRanges of multiple source tracks into a track of a composition.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)booleanisEnabled()[@property] enabled Specifies whether the track is enabled or disabled.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)@Nullable java.lang.StringlanguageCode()[@property] languageCode Indicates the language associated with the track, as an ISO 639-2/T language code.intnaturalTimeScale()[@property] naturalTimeScale Indicates a timescale in which time values for the track can be operated upon without extraneous numerical conversion.static AVMutableCompositionTracknew_objc()CGAffineTransformpreferredTransform()[@property] preferredTransform The preferred transformation of the visual media data for display purposes.floatpreferredVolume()[@property] preferredVolume The preferred volume of the audible media data.voidremoveTimeRange(CMTimeRange timeRange)removeTimeRange: Removes a specified timeRange from the track.voidremoveTrackAssociationToTrackType(@NotNull AVCompositionTrack compositionTrack, @NotNull java.lang.String trackAssociationType)removeTrackAssociationToTrack:type: Removes a track association of a specific type between two tracks.voidreplaceFormatDescriptionWithFormatDescription(@NotNull CMFormatDescriptionRef originalFormatDescription, @Nullable CMFormatDescriptionRef replacementFormatDescription)replaceFormatDescription:withFormatDescription: Replaces one of the receiver's format descriptions with another format description or cancels a previous replacement.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 the track.NSArray<? extends AVCompositionTrackSegment>segments()[@property] segments Provides read/write access to the array of track segments, each an instance of AVCompositionTrackSegment.voidsetEnabled(boolean value)[@property] enabled Specifies whether the track is enabled or disabled.voidsetExtendedLanguageTag(@Nullable java.lang.String value)[@property] extendedLanguageTag Indicates the language tag associated with the track, as an IETF BCP 47 (RFC 4646) language identifier.voidsetLanguageCode(@Nullable java.lang.String value)[@property] languageCode Indicates the language associated with the track, as an ISO 639-2/T language code.voidsetNaturalTimeScale(int value)[@property] naturalTimeScale Indicates a timescale in which time values for the track can be operated upon without extraneous numerical conversion.voidsetPreferredTransform(CGAffineTransform value)[@property] preferredTransform The preferred transformation of the visual media data for display purposes.voidsetPreferredVolume(float value)[@property] preferredVolume The preferred volume of the audible media data.voidsetSegments(NSArray<? extends AVCompositionTrackSegment> value)[@property] segments Provides read/write access to the array of track segments, each an instance of AVCompositionTrackSegment.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static booleanuseStoredAccessor()Deprecated.booleanvalidateTrackSegmentsError(@NotNull NSArray<? extends AVCompositionTrackSegment> trackSegments, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)validateTrackSegments:error: Tests an array of AVCompositionTrackSegments to determine whether they conform to the timing rules noted above (see the property key @"trackSegments").static longversion_static()-
Methods inherited from class apple.avfoundation.AVCompositionTrack
associatedTracksOfType, formatDescriptionReplacements, hasMediaCharacteristic, metadataForFormat, samplePresentationTimeForTrackTime, segmentForTrackTime
-
Methods inherited from class apple.avfoundation.AVAssetTrack
asset, availableMetadataFormats, availableTrackAssociationTypes, canProvideSampleCursors, commonMetadata, copyWithZone, estimatedDataRate, formatDescriptions, hasAudioSampleDependencies, isDecodable, isPlayable, isSelfContained, loadAssociatedTracksOfTypeCompletionHandler, loadMetadataForFormatCompletionHandler, loadSamplePresentationTimeForTrackTimeCompletionHandler, loadSegmentForTrackTimeCompletionHandler, loadValuesAsynchronouslyForKeysCompletionHandler, makeSampleCursorAtFirstSampleInDecodeOrder, makeSampleCursorAtLastSampleInDecodeOrder, makeSampleCursorWithPresentationTimeStamp, mediaType, metadata, minFrameDuration, naturalSize, nominalFrameRate, requiresFrameReordering, statusOfValueForKeyError, timeRange, totalSampleDataLength, trackID
-
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 AVMutableCompositionTrack alloc()
-
allocWithZone
public static AVMutableCompositionTrack allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
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 AVMutableCompositionTrack 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()
-
extendedLanguageTag
@Nullable public @Nullable java.lang.String extendedLanguageTag()
[@property] extendedLanguageTag Indicates the language tag associated with the track, as an IETF BCP 47 (RFC 4646) language identifier. The default value is nil.- Overrides:
extendedLanguageTagin classAVAssetTrack
-
init
public AVMutableCompositionTrack init()
- Overrides:
initin classAVCompositionTrack
-
insertEmptyTimeRange
public void insertEmptyTimeRange(CMTimeRange timeRange)
insertEmptyTimeRange: Adds or extends an empty timeRange within the composition track. If you insert an empty timeRange into the track, any media that was presented during that interval prior to the insertion will be presented instead immediately afterward. The exact meaning of the term "empty timeRange" depends upon the mediaType of the track. For example, an empty timeRange in a sound track presents silence. Note that you cannot add empty time ranges to the end of a composition track.- Parameters:
timeRange- Specifies the empty timeRange to be inserted.
-
insertTimeRangeOfTrackAtTimeError
public boolean insertTimeRangeOfTrackAtTimeError(CMTimeRange timeRange, @NotNull @NotNull AVAssetTrack track, CMTime startTime, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
insertTimeRange:ofTrack:atTime:error: Inserts a timeRange of a source track into a track of a composition. You provide a reference to an AVAssetTrack and the timeRange within it that you want to insert. You specify the start time in the target composition track at which the timeRange should be inserted. Note that the inserted track 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:.- Parameters:
timeRange- Specifies the timeRange of the track to be inserted.track- Specifies the source track to be inserted. Only AVAssetTracks of AVURLAssets and AVCompositions are supported (AVCompositions starting in macOS 10.10 and iOS 8.0).startTime- Specifies the time at which the inserted track is to be presented by the composition track. You may pass kCMTimeInvalid for startTime to indicate that the timeRange should be appended to the end of the track.error- 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.
-
insertTimeRangesOfTracksAtTimeError
public boolean insertTimeRangesOfTracksAtTimeError(@NotNull @NotNull NSArray<? extends NSValue> timeRanges, @NotNull @NotNull NSArray<? extends AVAssetTrack> tracks, CMTime startTime, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)insertTimeRanges:ofTracks:atTime:error: Inserts the timeRanges of multiple source tracks into a track of a composition. This method is equivalent to (but more efficient than) calling -insertTimeRange:ofTrack:atTime:error: for each timeRange/track pair. If this method returns an error, none of the time ranges will be inserted into the composition track. To specify an empty time range, pass NSNull for the track and a time range of starting at kCMTimeInvalid with a duration of the desired empty edit. This method throws an exception if time ranges and tracks to not have the same array count. API-Since: 5.0- Parameters:
timeRanges- Specifies the timeRanges to be inserted. An NSArray of NSValues containing CMTimeRange. (See +[NSValue valueWithCMTimeRange:] in AVTime.h.)tracks- Specifies the source tracks to be inserted. Only AVAssetTracks of AVURLAssets and AVCompositions are supported (AVCompositions 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 track. You may pass kCMTimeInvalid for startTime to indicate that the timeRanges should be appended to the end of the track.error- 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.
-
languageCode
@Nullable public @Nullable java.lang.String languageCode()
[@property] languageCode Indicates the language associated with the track, as an ISO 639-2/T language code. The default value is nil.- Overrides:
languageCodein classAVAssetTrack
-
naturalTimeScale
public int naturalTimeScale()
[@property] naturalTimeScale Indicates a timescale in which time values for the track can be operated upon without extraneous numerical conversion. If not set, the value is the naturalTimeScale of the first non-empty edit, or 600 if there are no non-empty edits. Set to 0 to revert to default behavior.- Overrides:
naturalTimeScalein classAVAssetTrack
-
preferredTransform
public CGAffineTransform preferredTransform()
[@property] preferredTransform The preferred transformation of the visual media data for display purposes. The default value is CGAffineTransformIdentity.- Overrides:
preferredTransformin classAVAssetTrack
-
preferredVolume
public float preferredVolume()
[@property] preferredVolume The preferred volume of the audible media data. The default value is 1.0.- Overrides:
preferredVolumein classAVAssetTrack
-
removeTimeRange
public void removeTimeRange(CMTimeRange timeRange)
removeTimeRange: Removes a specified timeRange from the track. Removal of a timeRange does not cause the track to be removed from the composition. Instead it removes or truncates track segments that intersect with the timeRange.- Parameters:
timeRange- Specifies the timeRange to be removed.
-
scaleTimeRangeToDuration
public void scaleTimeRangeToDuration(CMTimeRange timeRange, CMTime duration)
scaleTimeRange:toDuration: Changes the duration of a timeRange of the track. 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 track to be scaled.duration- Specifies the new duration of the timeRange.
-
segments
public NSArray<? extends AVCompositionTrackSegment> segments()
[@property] segments Provides read/write access to the array of track segments, each an instance of AVCompositionTrackSegment. Note that timeMapping.target.start of the first AVCompositionTrackSegment must be kCMTimeZero, and the timeMapping.target.start of each subsequent AVCompositionTrackSegment must equal CMTimeRangeGetEnd(the previous AVCompositionTrackSegment's timeMapping.target). Use -validateTrackSegments:error: to perform a test to ensure that an array of AVCompositionTrackSegments conforms to this rule.- Overrides:
segmentsin classAVCompositionTrack
-
setExtendedLanguageTag
public void setExtendedLanguageTag(@Nullable @Nullable java.lang.String value)[@property] extendedLanguageTag Indicates the language tag associated with the track, as an IETF BCP 47 (RFC 4646) language identifier. The default value is nil.
-
setLanguageCode
public void setLanguageCode(@Nullable @Nullable java.lang.String value)[@property] languageCode Indicates the language associated with the track, as an ISO 639-2/T language code. The default value is nil.
-
setNaturalTimeScale
public void setNaturalTimeScale(int value)
[@property] naturalTimeScale Indicates a timescale in which time values for the track can be operated upon without extraneous numerical conversion. If not set, the value is the naturalTimeScale of the first non-empty edit, or 600 if there are no non-empty edits. Set to 0 to revert to default behavior.
-
setPreferredTransform
public void setPreferredTransform(CGAffineTransform value)
[@property] preferredTransform The preferred transformation of the visual media data for display purposes. The default value is CGAffineTransformIdentity.
-
setPreferredVolume
public void setPreferredVolume(float value)
[@property] preferredVolume The preferred volume of the audible media data. The default value is 1.0.
-
setSegments
public void setSegments(NSArray<? extends AVCompositionTrackSegment> value)
[@property] segments Provides read/write access to the array of track segments, each an instance of AVCompositionTrackSegment. Note that timeMapping.target.start of the first AVCompositionTrackSegment must be kCMTimeZero, and the timeMapping.target.start of each subsequent AVCompositionTrackSegment must equal CMTimeRangeGetEnd(the previous AVCompositionTrackSegment's timeMapping.target). Use -validateTrackSegments:error: to perform a test to ensure that an array of AVCompositionTrackSegments conforms to this rule.
-
validateTrackSegmentsError
public boolean validateTrackSegmentsError(@NotNull @NotNull NSArray<? extends AVCompositionTrackSegment> trackSegments, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)validateTrackSegments:error: Tests an array of AVCompositionTrackSegments to determine whether they conform to the timing rules noted above (see the property key @"trackSegments"). The array is tested for suitability for setting as the value of the trackSegments property. If a portion of an existing trackSegments array is to be modified, the modification can be made via an instance of NSMutableArray, and the resulting array can be tested via -validateTrackSegments:error:.- Parameters:
trackSegments- The array of AVCompositionTrackSegments to be validated.error- If validation fais, returns information about the failure.- Returns:
- YES if validation suceeds, otherwise NO.
-
addTrackAssociationToTrackType
public void addTrackAssociationToTrackType(@NotNull @NotNull AVCompositionTrack compositionTrack, @NotNull @NotNull java.lang.String trackAssociationType)addTrackAssociationToTrack:type: Establishes a track association of a specific type between two tracks.- Parameters:
compositionTrack- An AVCompositionTrack object that is to be associated with the receiver.trackAssociationType- The type of track association to add between the receiver and the specified compositionTrack (for instance, AVTrackAssociationTypeChapterList). API-Since: 12.0
-
isEnabled
public boolean isEnabled()
[@property] enabled Specifies whether the track is enabled or disabled. Default is YES. API-Since: 13.0- Overrides:
isEnabledin classAVAssetTrack
-
removeTrackAssociationToTrackType
public void removeTrackAssociationToTrackType(@NotNull @NotNull AVCompositionTrack compositionTrack, @NotNull @NotNull java.lang.String trackAssociationType)removeTrackAssociationToTrack:type: Removes a track association of a specific type between two tracks.- Parameters:
compositionTrack- An AVCompositionTrack object that is associated with the receiver.trackAssociationType- The type of track association to remove between the receiver and the specified compositionTrack (for instance, AVTrackAssociationTypeChapterList). API-Since: 12.0
-
replaceFormatDescriptionWithFormatDescription
public void replaceFormatDescriptionWithFormatDescription(@NotNull @NotNull CMFormatDescriptionRef originalFormatDescription, @Nullable @Nullable CMFormatDescriptionRef replacementFormatDescription)replaceFormatDescription:withFormatDescription: Replaces one of the receiver's format descriptions with another format description or cancels a previous replacement. You can use this method to make surgical changes to a track's format descriptions, such as adding format description extensions to a format description or changing the audio channel layout of an audio track. You should note that a format description can have extensions of type kCMFormatDescriptionExtension_VerbatimSampleDescription and kCMFormatDescriptionExtension_VerbatimISOSampleEntry; if you modify a copy of a format description, you should delete those extensions from the copy or your changes might be ignored. Also note that format description replacements are not transferred when performing editing operations on AVMutableCompositionTrack objects; for instance, inserting a range of a composition track into another composition track does not transfer any replacement format descriptions. This method throws an exception if the media type of the replacement does not match the original format description. API-Since: 13.0- Parameters:
originalFormatDescription- A CMFormatDescription occurring in the underlying asset track.replacementFormatDescription- A CMFormatDescription to replace the specified format description or NULL to indicate that a previous replacement of originalFormatDescription should be cancelled.
-
setEnabled
public void setEnabled(boolean value)
[@property] enabled Specifies whether the track is enabled or disabled. Default is YES. API-Since: 13.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-