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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
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 Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()voidaddTrackAssociationToTrackType(AVCompositionTrack compositionTrack, java.lang.String trackAssociationType)addTrackAssociationToTrack:type: Establishes a track association of a specific type between two tracks.static AVMutableCompositionTrackalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()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, AVAssetTrack track, CMTime startTime, 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(NSArray<? extends NSValue> timeRanges, NSArray<? extends AVAssetTrack> tracks, CMTime startTime, 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 NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)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 java.lang.Objectnew_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(AVCompositionTrack compositionTrack, java.lang.String trackAssociationType)removeTrackAssociationToTrack:type: Removes a track association of a specific type between two tracks.voidreplaceFormatDescriptionWithFormatDescription(CMFormatDescriptionRef originalFormatDescription, 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(java.lang.String value)[@property] extendedLanguageTag Indicates the language tag associated with the track, as an IETF BCP 47 (RFC 4646) language identifier.voidsetLanguageCode(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()booleanvalidateTrackSegmentsError(NSArray<? extends AVCompositionTrackSegment> trackSegments, 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
formatDescriptionReplacements, segmentForTrackTime
-
Methods inherited from class apple.avfoundation.AVAssetTrack
asset, associatedTracksOfType, availableMetadataFormats, availableTrackAssociationTypes, commonMetadata, copyWithZone, estimatedDataRate, formatDescriptions, hasAudioSampleDependencies, hasMediaCharacteristic, isDecodable, isPlayable, isSelfContained, loadValuesAsynchronouslyForKeysCompletionHandler, mediaType, metadata, metadataForFormat, minFrameDuration, naturalSize, nominalFrameRate, requiresFrameReordering, samplePresentationTimeForTrackTime, statusOfValueForKeyError, timeRange, totalSampleDataLength, trackID
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, 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, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static AVMutableCompositionTrack alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
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
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
extendedLanguageTag
public 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, AVAssetTrack track, CMTime startTime, 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 X 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(NSArray<? extends NSValue> timeRanges, NSArray<? extends AVAssetTrack> tracks, CMTime startTime, 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.- 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 X 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
public 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(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(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(NSArray<? extends AVCompositionTrackSegment> trackSegments, 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(AVCompositionTrack compositionTrack, 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).
-
isEnabled
public boolean isEnabled()
[@property] enabled Specifies whether the track is enabled or disabled. Default is YES.- Overrides:
isEnabledin classAVAssetTrack
-
removeTrackAssociationToTrackType
public void removeTrackAssociationToTrackType(AVCompositionTrack compositionTrack, 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).
-
replaceFormatDescriptionWithFormatDescription
public void replaceFormatDescriptionWithFormatDescription(CMFormatDescriptionRef originalFormatDescription, 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.- 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.
-
-