public class AVMutableCompositionTrack extends AVCompositionTrack
AVAssetTrack.Block_loadAssociatedTracksOfTypeCompletionHandler, AVAssetTrack.Block_loadMetadataForFormatCompletionHandler, AVAssetTrack.Block_loadSamplePresentationTimeForTrackTimeCompletionHandler, AVAssetTrack.Block_loadSegmentForTrackTimeCompletionHandlerNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retAVAsynchronousKeyValueLoading.Block_loadValuesAsynchronouslyForKeysCompletionHandler| Modifier | Constructor and Description |
|---|---|
protected |
AVMutableCompositionTrack(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
void |
addTrackAssociationToTrackType(AVCompositionTrack compositionTrack,
java.lang.String trackAssociationType)
addTrackAssociationToTrack:type:
|
static AVMutableCompositionTrack |
alloc() |
static AVMutableCompositionTrack |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(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.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
java.lang.String |
extendedLanguageTag()
[@property] extendedLanguageTag
|
static long |
hash_static() |
AVMutableCompositionTrack |
init() |
void |
insertEmptyTimeRange(CMTimeRange timeRange)
insertEmptyTimeRange:
|
boolean |
insertTimeRangeOfTrackAtTimeError(CMTimeRange timeRange,
AVAssetTrack track,
CMTime startTime,
org.moe.natj.general.ptr.Ptr<NSError> outError)
insertTimeRange:ofTrack:atTime:error:
|
boolean |
insertTimeRangesOfTracksAtTimeError(NSArray<? extends NSValue> timeRanges,
NSArray<? extends AVAssetTrack> tracks,
CMTime startTime,
org.moe.natj.general.ptr.Ptr<NSError> outError)
insertTimeRanges:ofTracks:atTime:error:
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isEnabled()
[@property] enabled
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
java.lang.String |
languageCode()
[@property] languageCode
|
int |
naturalTimeScale()
[@property] naturalTimeScale
|
static AVMutableCompositionTrack |
new_objc() |
CGAffineTransform |
preferredTransform()
[@property] preferredTransform
|
float |
preferredVolume()
[@property] preferredVolume
|
void |
removeTimeRange(CMTimeRange timeRange)
removeTimeRange:
|
void |
removeTrackAssociationToTrackType(AVCompositionTrack compositionTrack,
java.lang.String trackAssociationType)
removeTrackAssociationToTrack:type:
|
void |
replaceFormatDescriptionWithFormatDescription(CMFormatDescriptionRef originalFormatDescription,
CMFormatDescriptionRef replacementFormatDescription)
replaceFormatDescription:withFormatDescription:
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
scaleTimeRangeToDuration(CMTimeRange timeRange,
CMTime duration)
scaleTimeRange:toDuration:
|
NSArray<? extends AVCompositionTrackSegment> |
segments()
[@property] segments
|
void |
setEnabled(boolean value)
[@property] enabled
|
void |
setExtendedLanguageTag(java.lang.String value)
[@property] extendedLanguageTag
|
void |
setLanguageCode(java.lang.String value)
[@property] languageCode
|
void |
setNaturalTimeScale(int value)
[@property] naturalTimeScale
|
void |
setPreferredTransform(CGAffineTransform value)
[@property] preferredTransform
|
void |
setPreferredVolume(float value)
[@property] preferredVolume
|
void |
setSegments(NSArray<? extends AVCompositionTrackSegment> value)
[@property] segments
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
boolean |
validateTrackSegmentsError(NSArray<? extends AVCompositionTrackSegment> trackSegments,
org.moe.natj.general.ptr.Ptr<NSError> outError)
validateTrackSegments:error:
|
static long |
version_static() |
formatDescriptionReplacements, segmentForTrackTimeasset, associatedTracksOfType, availableMetadataFormats, availableTrackAssociationTypes, commonMetadata, copyWithZone, estimatedDataRate, formatDescriptions, hasAudioSampleDependencies, hasMediaCharacteristic, isDecodable, isPlayable, isSelfContained, loadAssociatedTracksOfTypeCompletionHandler, loadMetadataForFormatCompletionHandler, loadSamplePresentationTimeForTrackTimeCompletionHandler, loadSegmentForTrackTimeCompletionHandler, loadValuesAsynchronouslyForKeysCompletionHandler, mediaType, metadata, metadataForFormat, minFrameDuration, naturalSize, nominalFrameRate, requiresFrameReordering, samplePresentationTimeForTrackTime, statusOfValueForKeyError, timeRange, totalSampleDataLength, trackIDaccessibilityActivate, 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, willChangeValuesAtIndexesForKeyprotected AVMutableCompositionTrack(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static AVMutableCompositionTrack alloc()
public static AVMutableCompositionTrack allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static AVMutableCompositionTrack new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public java.lang.String extendedLanguageTag()
Indicates the language tag associated with the track, as an IETF BCP 47 (RFC 4646) language identifier.
The default value is nil.
extendedLanguageTag in class AVAssetTrackpublic AVMutableCompositionTrack init()
init in class AVCompositionTrackpublic void insertEmptyTimeRange(CMTimeRange timeRange)
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.
timeRange - Specifies the empty timeRange to be inserted.public boolean insertTimeRangeOfTrackAtTimeError(CMTimeRange timeRange, AVAssetTrack track, CMTime startTime, org.moe.natj.general.ptr.Ptr<NSError> outError)
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:.
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.public boolean insertTimeRangesOfTracksAtTimeError(NSArray<? extends NSValue> timeRanges, NSArray<? extends AVAssetTrack> tracks, CMTime startTime, org.moe.natj.general.ptr.Ptr<NSError> outError)
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.
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.public java.lang.String languageCode()
Indicates the language associated with the track, as an ISO 639-2/T language code.
The default value is nil.
languageCode in class AVAssetTrackpublic int 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.
naturalTimeScale in class AVAssetTrackpublic CGAffineTransform preferredTransform()
The preferred transformation of the visual media data for display purposes.
The default value is CGAffineTransformIdentity.
preferredTransform in class AVAssetTrackpublic float preferredVolume()
The preferred volume of the audible media data.
The default value is 1.0.
preferredVolume in class AVAssetTrackpublic void removeTimeRange(CMTimeRange timeRange)
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.
timeRange - Specifies the timeRange to be removed.public void scaleTimeRangeToDuration(CMTimeRange timeRange, CMTime duration)
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.
timeRange - Specifies the timeRange of the track to be scaled.duration - Specifies the new duration of the timeRange.public NSArray<? extends AVCompositionTrackSegment> 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.
segments in class AVCompositionTrackpublic void setExtendedLanguageTag(java.lang.String value)
Indicates the language tag associated with the track, as an IETF BCP 47 (RFC 4646) language identifier.
The default value is nil.
public void setLanguageCode(java.lang.String value)
Indicates the language associated with the track, as an ISO 639-2/T language code.
The default value is nil.
public void setNaturalTimeScale(int value)
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.
public void setPreferredTransform(CGAffineTransform value)
The preferred transformation of the visual media data for display purposes.
The default value is CGAffineTransformIdentity.
public void setPreferredVolume(float value)
The preferred volume of the audible media data.
The default value is 1.0.
public void setSegments(NSArray<? extends AVCompositionTrackSegment> value)
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.
public boolean validateTrackSegmentsError(NSArray<? extends AVCompositionTrackSegment> trackSegments, org.moe.natj.general.ptr.Ptr<NSError> outError)
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:.
trackSegments - The array of AVCompositionTrackSegments to be validated.error - If validation fais, returns information about the failure.public void addTrackAssociationToTrackType(AVCompositionTrack compositionTrack, java.lang.String trackAssociationType)
Establishes a track association of a specific type between two tracks.
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).public boolean isEnabled()
Specifies whether the track is enabled or disabled. Default is YES.
isEnabled in class AVAssetTrackpublic void removeTrackAssociationToTrackType(AVCompositionTrack compositionTrack, java.lang.String trackAssociationType)
Removes a track association of a specific type between two tracks.
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).public void replaceFormatDescriptionWithFormatDescription(CMFormatDescriptionRef originalFormatDescription, CMFormatDescriptionRef replacementFormatDescription)
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.
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.public void setEnabled(boolean value)
Specifies whether the track is enabled or disabled. Default is YES.