Package apple.avfoundation
Class AVMutableMovieTrack
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfoundation.AVAssetTrack
-
- apple.avfoundation.AVMovieTrack
-
- apple.avfoundation.AVMutableMovieTrack
-
- All Implemented Interfaces:
AVAsynchronousKeyValueLoading,NSCopying,NSObject
public class AVMutableMovieTrack extends AVMovieTrack
API-Since: 13.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 protectedAVMutableMovieTrack(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 AVMovieTrack movieTrack, @NotNull java.lang.String trackAssociationType)addTrackAssociationToTrack:type: Establishes a track association of a specific type between two tracks.static AVMutableMovieTrackalloc()static AVMutableMovieTrackallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)longalternateGroupID()[@property] alternateGroupID An integer indicating the track as a member of a particular alternate group.booleanappendSampleBufferDecodeTimePresentationTimeError(@NotNull CMSampleBufferRef sampleBuffer, @Nullable CMTime outDecodeTime, @Nullable CMTime outPresentationTime, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)appendSampleBuffer:decodeTime:presentationTime:error: Appends sample data to a media file and adds sample references for the added data to a track's media sample tables.@NotNull NSArray<? extends AVAssetTrack>associatedTracksOfType(@NotNull java.lang.String trackAssociationType)API-Since: 7.0static 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()CGSizecleanApertureDimensions()[@property] cleanApertureDimensions A CGSize indicating the clean aperture dimensions of the track.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()CGSizeencodedPixelsDimensions()[@property] encodedPixelsDimensions A CGSize indicating the dimensions encoded pixels dimensions of the track.@Nullable java.lang.StringextendedLanguageTag()[@property] extendedLanguageTag The language tag associated with the track.static longhash_static()booleanhasMediaCharacteristic(@NotNull java.lang.String mediaCharacteristic)hasMediaCharacteristic: Reports whether the track references media with the specified media characteristic.booleanhasProtectedContent()[@property] hasProtectedContent Whether a track contains protected content.AVMutableMovieTrackinit()voidinsertEmptyTimeRange(CMTimeRange timeRange)insertEmptyTimeRange: Adds an empty time range to the target track.booleaninsertMediaTimeRangeIntoTimeRange(CMTimeRange mediaTimeRange, CMTimeRange trackTimeRange)insertMediaTimeRange:intoTimeRange: Inserts a reference to a media time range into a track.booleaninsertTimeRangeOfTrackAtTimeCopySampleDataError(CMTimeRange timeRange, @NotNull AVAssetTrack track, CMTime startTime, boolean copySampleData, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)insertTimeRange:ofTrack:atTime:copySampleData:error: Inserts a portion of an AVAssetTrack object into the target movie.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 A BOOL value indicating whether the track is enabled by default for presentation.booleanisModified()[@property] modified Whether a track has been modified.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 The language associated with the track.longlayer()[@property] layer The layer level of the visual media data of the track.@Nullable AVMediaDataStoragemediaDataStorage()[@property] mediaDataStorage The storage container for media data added to a track.@NotNull NSArray<? extends AVMetadataItem>metadata()[@property] metadata A collection of metadata stored by the track.@NotNull NSArray<? extends AVMetadataItem>metadataForFormat(@NotNull java.lang.String format)metadataForFormat: Provides an NSArray of AVMetadataItems, one for each metadata item in the container of the specified format.CGSizenaturalSize()[@property] naturalSize A CGSize indicating the dimensions at which the visual media data of the track should be displayed.static AVMutableMovieTracknew_objc()longpreferredMediaChunkAlignment()[@property] preferredMediaChunkAlignment For file types that support media chunk alignment, the boundary for media chunk alignment (in bytes).CMTimepreferredMediaChunkDuration()[@property] preferredMediaChunkDuration For file types that support media chunk durations, the maximum duration to be used for each chunk of sample data written to the file.longpreferredMediaChunkSize()[@property] preferredMediaChunkSize For file types that support media chunk sizes, the maximum size (in bytes) to be used for each chunk of sample data written to the file.CGAffineTransformpreferredTransform()[@property] preferredTransform A CGAffineTransform indicating the transform specified in the track's storage container as the preferred transformation of the visual media data for display purposes; the value is often but not always CGAffineTransformIdentity.floatpreferredVolume()[@property] preferredVolume The preferred volume of the audible media data of the track; often but not always 1.0.CGSizeproductionApertureDimensions()[@property] productionApertureDimensions A CGSize indicating the production aperture dimensions of the track.voidremoveTimeRange(CMTimeRange timeRange)removeTimeRange: Removes a specified time range from a track.voidremoveTrackAssociationToTrackType(@NotNull AVMovieTrack movieTrack, @NotNull java.lang.String trackAssociationType)removeTrackAssociationToTrack:type: Removes a track association of a specific type between two tracks.voidreplaceFormatDescriptionWithFormatDescription(@NotNull CMFormatDescriptionRef formatDescription, @NotNull CMFormatDescriptionRef newFormatDescription)replaceFormatDescription:withFormatDescription: Replaces one of the receiver's format descriptions with another format description 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.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)CMTimesamplePresentationTimeForTrackTime(CMTime trackTime)samplePresentationTimeForTrackTime: Maps the specified trackTime through the appropriate time mapping and returns the resulting sample presentation time.@Nullable NSURLsampleReferenceBaseURL()[@property] sampleReferenceBaseURL For file types that support writing sample references, such as QuickTime Movie files, specifies the base URL that sample references are relative to; may be nil.voidscaleTimeRangeToDuration(CMTimeRange timeRange, CMTime duration)scaleTimeRange:toDuration: Changes the duration of a time range of a track.@Nullable AVAssetTrackSegmentsegmentForTrackTime(CMTime trackTime)segmentForTrackTime: Supplies the AVAssetTrackSegment from the segments array with a target timeRange that either contains the specified track time or is the closest to it among the target timeRanges of the track's segments.voidsetAlternateGroupID(long value)[@property] alternateGroupID An integer indicating the track as a member of a particular alternate group.voidsetCleanApertureDimensions(CGSize value)[@property] cleanApertureDimensions A CGSize indicating the clean aperture dimensions of the track.voidsetEnabled(boolean value)[@property] enabled A BOOL value indicating whether the track is enabled by default for presentation.voidsetEncodedPixelsDimensions(CGSize value)[@property] encodedPixelsDimensions A CGSize indicating the dimensions encoded pixels dimensions of the track.voidsetExtendedLanguageTag(@Nullable java.lang.String value)[@property] extendedLanguageTag The language tag associated with the track.voidsetLanguageCode(@Nullable java.lang.String value)[@property] languageCode The language associated with the track.voidsetLayer(long value)[@property] layer The layer level of the visual media data of the track.voidsetMediaDataStorage(@Nullable AVMediaDataStorage value)[@property] mediaDataStorage The storage container for media data added to a track.voidsetMetadata(@NotNull NSArray<? extends AVMetadataItem> value)[@property] metadata A collection of metadata stored by the track.voidsetModified(boolean value)[@property] modified Whether a track has been modified.voidsetNaturalSize(CGSize value)[@property] naturalSize A CGSize indicating the dimensions at which the visual media data of the track should be displayed.voidsetPreferredMediaChunkAlignment(long value)[@property] preferredMediaChunkAlignment For file types that support media chunk alignment, the boundary for media chunk alignment (in bytes).voidsetPreferredMediaChunkDuration(CMTime value)[@property] preferredMediaChunkDuration For file types that support media chunk durations, the maximum duration to be used for each chunk of sample data written to the file.voidsetPreferredMediaChunkSize(long value)[@property] preferredMediaChunkSize For file types that support media chunk sizes, the maximum size (in bytes) to be used for each chunk of sample data written to the file.voidsetPreferredTransform(CGAffineTransform value)[@property] preferredTransform A CGAffineTransform indicating the transform specified in the track's storage container as the preferred transformation of the visual media data for display purposes; the value is often but not always CGAffineTransformIdentity.voidsetPreferredVolume(float value)[@property] preferredVolume The preferred volume of the audible media data of the track; often but not always 1.0.voidsetProductionApertureDimensions(CGSize value)[@property] productionApertureDimensions A CGSize indicating the production aperture dimensions of the track.voidsetSampleReferenceBaseURL(@Nullable NSURL value)[@property] sampleReferenceBaseURL For file types that support writing sample references, such as QuickTime Movie files, specifies the base URL that sample references are relative to; may be nil.voidsetTimescale(int value)[@property] timescale For file types that contain a 'moov' atom, such as QuickTime Movie files, specifies the time scale of the track's media.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()inttimescale()[@property] timescale For file types that contain a 'moov' atom, such as QuickTime Movie files, specifies the time scale of the track's media.static booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.avfoundation.AVMovieTrack
mediaDecodeTimeRange, mediaPresentationTimeRange
-
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, minFrameDuration, naturalTimeScale, nominalFrameRate, requiresFrameReordering, segments, 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()
-
addTrackAssociationToTrackType
public void addTrackAssociationToTrackType(@NotNull @NotNull AVMovieTrack movieTrack, @NotNull @NotNull java.lang.String trackAssociationType)addTrackAssociationToTrack:type: Establishes a track association of a specific type between two tracks. This method throws an exception if the movie track belongs to a different movie.- Parameters:
movieTrack- An AVMovieTrack object that is to be associated with the receiver.trackAssociationType- The type of track association to add between the receiver and the specified movieTrack (for instance, AVTrackAssociationTypeChapterList).
-
alloc
public static AVMutableMovieTrack alloc()
-
allocWithZone
public static AVMutableMovieTrack allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
alternateGroupID
public long alternateGroupID()
[@property] alternateGroupID An integer indicating the track as a member of a particular alternate group.- Overrides:
alternateGroupIDin classAVMovieTrack
-
appendSampleBufferDecodeTimePresentationTimeError
public boolean appendSampleBufferDecodeTimePresentationTimeError(@NotNull @NotNull CMSampleBufferRef sampleBuffer, @Nullable @Nullable CMTime outDecodeTime, @Nullable @Nullable CMTime outPresentationTime, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)appendSampleBuffer:decodeTime:presentationTime:error: Appends sample data to a media file and adds sample references for the added data to a track's media sample tables. If the sample buffer carries sample data, the sample data is written to the container specified by the track property mediaDataStorage if non-nil, or else by the movie property defaultMediaDataStorage if non-nil, and sample references will be appended to the track's media. If both media data storage properties are nil, the method will fail and return NO. If the sample buffer carries sample references only, sample data will not be written and sample references to the samples in their original container will be appended to the track's media as necessary. Note regarding sample timing: in a track's media, the first sample's decode timestamp must always be zero. For an audio track, each sample buffer's duration is used as the sample decode duration. For other track types, difference between a sample's decode timestamp and the following sample's decode timestamp is used as the first sample's decode duration, so as to preserve the relative timing. Note that this method does not modify the track's sourceTimeMappings but only appends sample references and sample data to the track's media. To make the new samples appear in the track's timeline, invoke -insertMediaTimeRange:intoTimeRange:. You can retrieve the mediaPresentationTimeRange property before and after appending a sequence of samples, using CMTimeRangeGetEnd on each to calculate the media TimeRange for -insertMediaTimeRange:intoTimeRange:. It's safe for multiple threads to call this method on different tracks at once. This method throws an exception for any of the following reasons: - the sample buffer's media type does not match the track's media type - the sample buffer contains image buffers (must contain encoded video) - the sample buffer contains caption groups (must contain encoded media data) API-Since: 13.0- Parameters:
sampleBuffer- The CMSampleBuffer to be appended; this may be obtained from an instance of AVAssetReader.outDecodeTime- A pointer to a CMTime structure to receive the decode time in the media of the first sample appended from the sample buffer. Pass NULL if you do not need this information.outPresentationTime- A pointer to a CMTime structure to receive the presentation time in the media of the first sample appended from the sample buffer. Pass NULL if you do not need this information.outError- If the appending fails, describes the nature of the failure. For example, if the device containing the track's media data storage is full, AVErrorDiskFull is returned.- Returns:
- A BOOL value indicating the success of the operation.
-
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()
-
cleanApertureDimensions
public CGSize cleanApertureDimensions()
[@property] cleanApertureDimensions A CGSize indicating the clean aperture dimensions of the track.
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
encodedPixelsDimensions
public CGSize encodedPixelsDimensions()
[@property] encodedPixelsDimensions A CGSize indicating the dimensions encoded pixels dimensions of the track.
-
extendedLanguageTag
@Nullable public @Nullable java.lang.String extendedLanguageTag()
[@property] extendedLanguageTag The language tag associated with the track. The value of this property is an IETF BCP 47 (RFC 4646) language identifier indicating the language tag associated with the track; may be nil if no language tag is indicated.- Overrides:
extendedLanguageTagin classAVAssetTrack
-
hasProtectedContent
public boolean hasProtectedContent()
[@property] hasProtectedContent Whether a track contains protected content. The value of this property is a BOOL that indicates whether the track contains protected content.
-
hash_static
public static long hash_static()
-
init
public AVMutableMovieTrack init()
- Overrides:
initin classAVMovieTrack
-
insertEmptyTimeRange
public void insertEmptyTimeRange(CMTimeRange timeRange)
insertEmptyTimeRange: Adds an empty time range to the target track.- Parameters:
timeRange- The time range to be made empty. Note that you cannot add empty time ranges to the end of a track.
-
insertMediaTimeRangeIntoTimeRange
public boolean insertMediaTimeRangeIntoTimeRange(CMTimeRange mediaTimeRange, CMTimeRange trackTimeRange)
insertMediaTimeRange:intoTimeRange: Inserts a reference to a media time range into a track. Use this method after you have appended samples or sample references to a track's media. To specify that the media time range be played at its natural rate, pass mediaTimeRange.duration == trackTimeRange.duration; otherwise, the ratio between these is used to determine the playback rate. Pass kCMTimeInvalid for trackTimeRange.start to indicate that the segment should be appended to the end of the track. API-Since: 13.0- Parameters:
mediaTimeRange- The presentation time range of the media to be inserted.trackTimeRange- The time range of the track into which the media is to be inserted.- Returns:
- A BOOL value indicating the success of the operation.
-
insertTimeRangeOfTrackAtTimeCopySampleDataError
public boolean insertTimeRangeOfTrackAtTimeCopySampleDataError(CMTimeRange timeRange, @NotNull @NotNull AVAssetTrack track, CMTime startTime, boolean copySampleData, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
insertTimeRange:ofTrack:atTime:copySampleData:error: Inserts a portion of an AVAssetTrack object into the target movie.- Parameters:
timeRange- The time range from the track from which media is to be inserted.track- An AVAssetTrack object indicating the source of the inserted media. Only AVAssetTracks of AVURLAssets and AVCompositions are supported. Must not be nil.startTime- The time in the target track at which the media is to be inserted.copySampleData- A BOOL value that indicates whether sample data is to be copied from the source to the destination during edits. If YES, the sample data is written to the file specified by the track property mediaDataStorage if non-nil, or else by the movie property defaultMediaDataStorage if non-nil; if both are nil, the method will fail and return NO. If NO, sample data will not be written and sample references to the samples in their original container will be added as necessary. Note that in this case, this method will fail if the original samples are fragmented.outError- If the insertion fails, describes the nature of the failure.- Returns:
- A BOOL value that indicates the success of the insertion.
-
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)
-
isEnabled
public boolean isEnabled()
[@property] enabled A BOOL value indicating whether the track is enabled by default for presentation.- Overrides:
isEnabledin classAVAssetTrack
-
isModified
public boolean isModified()
[@property] modified Whether a track has been modified. The value of this property is a BOOL that indicates whether the AVMutableMovieTrack object has been modified since it was created, was last written, or had its modified state cleared via a call to setModified:NO.
-
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)
-
languageCode
@Nullable public @Nullable java.lang.String languageCode()
[@property] languageCode The language associated with the track. The value of this property is an ISO 639-2/T language code indicating the language associated with the track; may be nil if no language is indicated.- Overrides:
languageCodein classAVAssetTrack
-
layer
public long layer()
[@property] layer The layer level of the visual media data of the track.
-
mediaDataStorage
@Nullable public @Nullable AVMediaDataStorage mediaDataStorage()
[@property] mediaDataStorage The storage container for media data added to a track. The value of this property is an AVMediaDataStorage object that indicates the location at which media data inserted or appended to the track will be written.- Overrides:
mediaDataStoragein classAVMovieTrack
-
metadata
@NotNull public @NotNull NSArray<? extends AVMetadataItem> metadata()
[@property] metadata A collection of metadata stored by the track. The value of this property is an array of AVMetadataItem objects representing the collection of metadata stored by the track.- Overrides:
metadatain classAVAssetTrack
-
naturalSize
public CGSize naturalSize()
[@property] naturalSize A CGSize indicating the dimensions at which the visual media data of the track should be displayed.- Overrides:
naturalSizein classAVAssetTrack
-
new_objc
public static AVMutableMovieTrack new_objc()
-
preferredMediaChunkAlignment
public long preferredMediaChunkAlignment()
[@property] preferredMediaChunkAlignment For file types that support media chunk alignment, the boundary for media chunk alignment (in bytes). The default value is 0, which means that no padding should be used to achieve chunk alignment. It is an error to set a negative value for chunk alignment.
-
preferredMediaChunkDuration
public CMTime preferredMediaChunkDuration()
[@property] preferredMediaChunkDuration For file types that support media chunk durations, the maximum duration to be used for each chunk of sample data written to the file. The total duration of the samples in a chunk will be no greater than this preferred chunk duration, or the duration of a single sample if the sample's duration is greater than this preferred chunk duration. The default media chunk duration is 1.0 second. It is an error to set a chunk duration that is negative or non-numeric.
-
preferredMediaChunkSize
public long preferredMediaChunkSize()
[@property] preferredMediaChunkSize For file types that support media chunk sizes, the maximum size (in bytes) to be used for each chunk of sample data written to the file. The total size of the samples in a chunk will be no larger than this preferred chunk size, or the size of a single sample if the sample is larger than this preferred chunk size. The default media chunk size is 1024 * 1024 bytes. It is an error to set a negative chunk size.
-
preferredTransform
public CGAffineTransform preferredTransform()
[@property] preferredTransform A CGAffineTransform indicating the transform specified in the track's storage container as the preferred transformation of the visual media data for display purposes; the value is often but not always CGAffineTransformIdentity.- Overrides:
preferredTransformin classAVAssetTrack
-
preferredVolume
public float preferredVolume()
[@property] preferredVolume The preferred volume of the audible media data of the track; often but not always 1.0.- Overrides:
preferredVolumein classAVAssetTrack
-
productionApertureDimensions
public CGSize productionApertureDimensions()
[@property] productionApertureDimensions A CGSize indicating the production aperture dimensions of the track.
-
removeTimeRange
public void removeTimeRange(CMTimeRange timeRange)
removeTimeRange: Removes a specified time range from a track.- Parameters:
timeRange- The time range to be removed.
-
removeTrackAssociationToTrackType
public void removeTrackAssociationToTrackType(@NotNull @NotNull AVMovieTrack movieTrack, @NotNull @NotNull java.lang.String trackAssociationType)removeTrackAssociationToTrack:type: Removes a track association of a specific type between two tracks. This method throws an exception if the movie track belongs to a different movie.- Parameters:
movieTrack- An AVMovieTrack object that is associated with the receiver.trackAssociationType- The type of track association to remove between the receiver and the specified movieTrack (for instance, AVTrackAssociationTypeChapterList).
-
replaceFormatDescriptionWithFormatDescription
public void replaceFormatDescriptionWithFormatDescription(@NotNull @NotNull CMFormatDescriptionRef formatDescription, @NotNull @NotNull CMFormatDescriptionRef newFormatDescription)replaceFormatDescription:withFormatDescription: Replaces one of the receiver's format descriptions with another format description 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. This method throws an exception if the media type of the new format description does not match the media type of the receiver. API-Since: 13.0- Parameters:
formatDescription- A CMFormatDescription occurring in the array returned by the -formatDescriptions method.newFormatDescription- A CMFormatDescription to replace the specified format description.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
sampleReferenceBaseURL
@Nullable public @Nullable NSURL sampleReferenceBaseURL()
[@property] sampleReferenceBaseURL For file types that support writing sample references, such as QuickTime Movie files, specifies the base URL that sample references are relative to; may be nil. If the value of this property can be resolved as an absolute URL, the sample locations written to the file when appending sample references to this track will be relative to this URL. The URL must point to a location contained by any common parent directory of the locations that will be referenced. For example, setting the sampleReferenceBaseURL property to "file:///Users/johnappleseed/Movies/" and appending sample buffers that refer to "file:///Users/johnappleseed/Movies/data/movie1.mov" will cause the sample reference "data/movie1.mov" to be written to the movie file. If the value of the property cannot be resolved as an absolute URL or if it points to a location that is not contained by any common parent directory of the locations that will be referenced, the location will be written unmodified. The default value is nil, which means that the location will be written unmodified.
-
scaleTimeRangeToDuration
public void scaleTimeRangeToDuration(CMTimeRange timeRange, CMTime duration)
scaleTimeRange:toDuration: Changes the duration of a time range of a track.- Parameters:
timeRange- The time range to be scaled.duration- The new duration of the time range.
-
setAlternateGroupID
public void setAlternateGroupID(long value)
[@property] alternateGroupID An integer indicating the track as a member of a particular alternate group.
-
setCleanApertureDimensions
public void setCleanApertureDimensions(CGSize value)
[@property] cleanApertureDimensions A CGSize indicating the clean aperture dimensions of the track.
-
setEnabled
public void setEnabled(boolean value)
[@property] enabled A BOOL value indicating whether the track is enabled by default for presentation.
-
setEncodedPixelsDimensions
public void setEncodedPixelsDimensions(CGSize value)
[@property] encodedPixelsDimensions A CGSize indicating the dimensions encoded pixels dimensions of the track.
-
setExtendedLanguageTag
public void setExtendedLanguageTag(@Nullable @Nullable java.lang.String value)[@property] extendedLanguageTag The language tag associated with the track. The value of this property is an IETF BCP 47 (RFC 4646) language identifier indicating the language tag associated with the track; may be nil if no language tag is indicated.
-
setLanguageCode
public void setLanguageCode(@Nullable @Nullable java.lang.String value)[@property] languageCode The language associated with the track. The value of this property is an ISO 639-2/T language code indicating the language associated with the track; may be nil if no language is indicated.
-
setLayer
public void setLayer(long value)
[@property] layer The layer level of the visual media data of the track.
-
setMediaDataStorage
public void setMediaDataStorage(@Nullable @Nullable AVMediaDataStorage value)[@property] mediaDataStorage The storage container for media data added to a track. The value of this property is an AVMediaDataStorage object that indicates the location at which media data inserted or appended to the track will be written.
-
setMetadata
public void setMetadata(@NotNull @NotNull NSArray<? extends AVMetadataItem> value)[@property] metadata A collection of metadata stored by the track. The value of this property is an array of AVMetadataItem objects representing the collection of metadata stored by the track.
-
setModified
public void setModified(boolean value)
[@property] modified Whether a track has been modified. The value of this property is a BOOL that indicates whether the AVMutableMovieTrack object has been modified since it was created, was last written, or had its modified state cleared via a call to setModified:NO.
-
setNaturalSize
public void setNaturalSize(CGSize value)
[@property] naturalSize A CGSize indicating the dimensions at which the visual media data of the track should be displayed.
-
setPreferredMediaChunkAlignment
public void setPreferredMediaChunkAlignment(long value)
[@property] preferredMediaChunkAlignment For file types that support media chunk alignment, the boundary for media chunk alignment (in bytes). The default value is 0, which means that no padding should be used to achieve chunk alignment. It is an error to set a negative value for chunk alignment.
-
setPreferredMediaChunkDuration
public void setPreferredMediaChunkDuration(CMTime value)
[@property] preferredMediaChunkDuration For file types that support media chunk durations, the maximum duration to be used for each chunk of sample data written to the file. The total duration of the samples in a chunk will be no greater than this preferred chunk duration, or the duration of a single sample if the sample's duration is greater than this preferred chunk duration. The default media chunk duration is 1.0 second. It is an error to set a chunk duration that is negative or non-numeric.
-
setPreferredMediaChunkSize
public void setPreferredMediaChunkSize(long value)
[@property] preferredMediaChunkSize For file types that support media chunk sizes, the maximum size (in bytes) to be used for each chunk of sample data written to the file. The total size of the samples in a chunk will be no larger than this preferred chunk size, or the size of a single sample if the sample is larger than this preferred chunk size. The default media chunk size is 1024 * 1024 bytes. It is an error to set a negative chunk size.
-
setPreferredTransform
public void setPreferredTransform(CGAffineTransform value)
[@property] preferredTransform A CGAffineTransform indicating the transform specified in the track's storage container as the preferred transformation of the visual media data for display purposes; the value is often but not always CGAffineTransformIdentity.
-
setPreferredVolume
public void setPreferredVolume(float value)
[@property] preferredVolume The preferred volume of the audible media data of the track; often but not always 1.0.
-
setProductionApertureDimensions
public void setProductionApertureDimensions(CGSize value)
[@property] productionApertureDimensions A CGSize indicating the production aperture dimensions of the track.
-
setSampleReferenceBaseURL
public void setSampleReferenceBaseURL(@Nullable @Nullable NSURL value)[@property] sampleReferenceBaseURL For file types that support writing sample references, such as QuickTime Movie files, specifies the base URL that sample references are relative to; may be nil. If the value of this property can be resolved as an absolute URL, the sample locations written to the file when appending sample references to this track will be relative to this URL. The URL must point to a location contained by any common parent directory of the locations that will be referenced. For example, setting the sampleReferenceBaseURL property to "file:///Users/johnappleseed/Movies/" and appending sample buffers that refer to "file:///Users/johnappleseed/Movies/data/movie1.mov" will cause the sample reference "data/movie1.mov" to be written to the movie file. If the value of the property cannot be resolved as an absolute URL or if it points to a location that is not contained by any common parent directory of the locations that will be referenced, the location will be written unmodified. The default value is nil, which means that the location will be written unmodified.
-
setTimescale
public void setTimescale(int value)
[@property] timescale For file types that contain a 'moov' atom, such as QuickTime Movie files, specifies the time scale of the track's media. The default media time scale is 0. This property should be set on a new empty track before any edits are performed on the track.
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
timescale
public int timescale()
[@property] timescale For file types that contain a 'moov' atom, such as QuickTime Movie files, specifies the time scale of the track's media. The default media time scale is 0. This property should be set on a new empty track before any edits are performed on the track.
-
version_static
public static long version_static()
-
associatedTracksOfType
@NotNull public @NotNull NSArray<? extends AVAssetTrack> associatedTracksOfType(@NotNull @NotNull java.lang.String trackAssociationType)
API-Since: 7.0- Overrides:
associatedTracksOfTypein classAVAssetTrack- Parameters:
trackAssociationType- The type of track association for which associated tracks are requested.- Returns:
- An NSArray containing AVAssetTracks; may be empty if there is no associated tracks of the specified type.
-
hasMediaCharacteristic
public boolean hasMediaCharacteristic(@NotNull @NotNull java.lang.String mediaCharacteristic)Description copied from class:AVAssetTrackhasMediaCharacteristic: Reports whether the track references media with the specified media characteristic.- Overrides:
hasMediaCharacteristicin classAVAssetTrack- Parameters:
mediaCharacteristic- The media characteristic of interest, e.g. AVMediaCharacteristicVisual, AVMediaCharacteristicAudible, AVMediaCharacteristicLegible, etc., as defined above.- Returns:
- YES if the track references media with the specified characteristic, otherwise NO.
-
metadataForFormat
@NotNull public @NotNull NSArray<? extends AVMetadataItem> metadataForFormat(@NotNull @NotNull java.lang.String format)
Description copied from class:AVAssetTrackmetadataForFormat: Provides an NSArray of AVMetadataItems, one for each metadata item in the container of the specified format. Becomes callable without blocking when the key @"availableMetadataFormats" has been loaded API-Since: 4.0 Deprecated-Since: 100000.0- Overrides:
metadataForFormatin classAVAssetTrack- Parameters:
format- The metadata format for which items are requested.- Returns:
- An NSArray containing AVMetadataItems.
-
samplePresentationTimeForTrackTime
public CMTime samplePresentationTimeForTrackTime(CMTime trackTime)
Description copied from class:AVAssetTracksamplePresentationTimeForTrackTime: Maps the specified trackTime through the appropriate time mapping and returns the resulting sample presentation time.- Overrides:
samplePresentationTimeForTrackTimein classAVAssetTrack- Parameters:
trackTime- The trackTime for which a sample presentation time is requested.- Returns:
- A CMTime; will be invalid if the trackTime is out of range API-Since: 4.0 Deprecated-Since: 100000.0
-
segmentForTrackTime
@Nullable public @Nullable AVAssetTrackSegment segmentForTrackTime(CMTime trackTime)
Description copied from class:AVAssetTracksegmentForTrackTime: Supplies the AVAssetTrackSegment from the segments array with a target timeRange that either contains the specified track time or is the closest to it among the target timeRanges of the track's segments. If the trackTime does not map to a sample presentation time (e.g. it's outside the track's timeRange), the segment closest in time to the specified trackTime is returned. API-Since: 4.0 Deprecated-Since: 100000.0- Overrides:
segmentForTrackTimein classAVAssetTrack- Parameters:
trackTime- The trackTime for which an AVAssetTrackSegment is requested.- Returns:
- An AVAssetTrackSegment.
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-