Package apple.avfoundation
Class AVAssetTrack
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.avfoundation.AVAssetTrack
-
- All Implemented Interfaces:
AVAsynchronousKeyValueLoading,NSCopying,NSObject
- Direct Known Subclasses:
AVCompositionTrack,AVFragmentedAssetTrack,AVMovieTrack
public class AVAssetTrack extends NSObject implements NSCopying, AVAsynchronousKeyValueLoading
API-Since: 4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAVAssetTrack.Block_loadAssociatedTracksOfTypeCompletionHandlerstatic interfaceAVAssetTrack.Block_loadMetadataForFormatCompletionHandlerstatic interfaceAVAssetTrack.Block_loadSamplePresentationTimeForTrackTimeCompletionHandlerstatic interfaceAVAssetTrack.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 protectedAVAssetTrack(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()static AVAssetTrackalloc()static AVAssetTrackallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)@Nullable AVAssetasset()provides a reference to the AVAsset of which the AVAssetTrack is a part@NotNull NSArray<? extends AVAssetTrack>associatedTracksOfType(@NotNull java.lang.String trackAssociationType)Deprecated.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)@NotNull NSArray<java.lang.String>availableMetadataFormats()provides an NSArray of NSStrings, each representing a format of metadata that's available for the track (e.g.@NotNull NSArray<java.lang.String>availableTrackAssociationTypes()Provides an NSArray of NSStrings, each representing a type of track association that the receiver has with one or more of the other tracks of the asset (e.g.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)booleancanProvideSampleCursors()Indicates whether the receiver can provide instances of AVSampleCursor for traversing its media samples and discovering information about them.static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()@NotNull NSArray<? extends AVMetadataItem>commonMetadata()provides access to an array of AVMetadataItems for each common metadata key for which a value is available@NotNull java.lang.ObjectcopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()floatestimatedDataRate()indicates the estimated data rate of the media data referenced by the track, in units of bits per second@Nullable java.lang.StringextendedLanguageTag()indicates the language tag associated with the track, as an IETF BCP 47 (RFC 4646) language identifier; may be nil if no language tag is indicated@NotNull NSArray<?>formatDescriptions()provides an array of CMFormatDescriptions each of which indicates the format of media samples referenced by the track; a track that presents uniform media, e.g.booleanhasAudioSampleDependencies()indicates whether this audio track has dependencies (e.g.static longhash_static()booleanhasMediaCharacteristic(@NotNull java.lang.String mediaCharacteristic)hasMediaCharacteristic: Reports whether the track references media with the specified media characteristic.AVAssetTrackinit()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)booleanisDecodable()Indicates whether the receiver is decodable in the current environment; if YES, the track can be decoded even though decoding may be too slow for real time playback.booleanisEnabled()indicates whether the track is enabled according to state stored in its container or construct; note that its presentation state can be changed from this default via AVPlayerItemTrackbooleanisPlayable()Indicates whether the receiver is playable in the current environment; if YES, an AVPlayerItemTrack of an AVPlayerItem initialized with the receiver's asset can be enabled for playback.booleanisSelfContained()indicates whether the track references sample data only within its storage containerstatic booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)@Nullable java.lang.StringlanguageCode()indicates the language associated with the track, as an ISO 639-2/T language code; may be nil if no language is indicatedvoidloadAssociatedTracksOfTypeCompletionHandler(@NotNull java.lang.String trackAssociationType, @NotNull AVAssetTrack.Block_loadAssociatedTracksOfTypeCompletionHandler completionHandler)loadAssociatedTracksOfType:completionHandler: Provides an NSArray of AVAssetTracks, one for each track associated with the receiver with the specified type of track association.voidloadMetadataForFormatCompletionHandler(@NotNull java.lang.String format, @NotNull AVAssetTrack.Block_loadMetadataForFormatCompletionHandler completionHandler)loadMetadataForFormat:completionHandler: Loads an NSArray of AVMetadataItems, one for each metadata item in the container of the specified format.voidloadSamplePresentationTimeForTrackTimeCompletionHandler(CMTime trackTime, @NotNull AVAssetTrack.Block_loadSamplePresentationTimeForTrackTimeCompletionHandler completionHandler)loadSamplePresentationTimeForTrackTime:completionHandler: Maps the specified trackTime through the appropriate time mapping and loads the resulting sample presentation time.voidloadSegmentForTrackTimeCompletionHandler(CMTime trackTime, @NotNull AVAssetTrack.Block_loadSegmentForTrackTimeCompletionHandler completionHandler)loadSegmentForTrackTime:completionHandler: Loads 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.voidloadValuesAsynchronouslyForKeysCompletionHandler(@NotNull NSArray<java.lang.String> keys, AVAsynchronousKeyValueLoading.Block_loadValuesAsynchronouslyForKeysCompletionHandler handler)loadValuesAsynchronouslyForKeys:completionHandler: Directs the target to load the values of any of the specified keys that are not already loaded.@Nullable AVSampleCursormakeSampleCursorAtFirstSampleInDecodeOrder()makeSampleCursorAtFirstSampleInDecodeOrder: Creates an instance of AVSampleCursor and positions it at the receiver's first media sample in decode order.@Nullable AVSampleCursormakeSampleCursorAtLastSampleInDecodeOrder()makeSampleCursorAtLastSampleInDecodeOrder: Creates an instance of AVSampleCursor and positions it at the receiver's last media sample in decode order.@Nullable AVSampleCursormakeSampleCursorWithPresentationTimeStamp(CMTime presentationTimeStamp)makeSampleCursorWithPresentationTimeStamp: Creates an instance of AVSampleCursor and positions it at or near the specified presentation timestamp.@NotNull java.lang.StringmediaType()indicates the media type for this track, e.g.@NotNull NSArray<? extends AVMetadataItem>metadata()Provides access to an array of AVMetadataItems for all metadata identifiers for which a value is available; items can be filtered according to language via +[AVMetadataItem metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:] and according to identifier via +[AVMetadataItem metadataItemsFromArray:filteredByIdentifier:].@NotNull NSArray<? extends AVMetadataItem>metadataForFormat(@NotNull java.lang.String format)Deprecated.CMTimeminFrameDuration()indicates the minimum duration of the track's frames; the value will be kCMTimeInvalid if the minimum frame duration is not known or cannot be calculated API-Since: 7.0CGSizenaturalSize()indicates the natural dimensions of the media data referenced by the track as a CGSizeintnaturalTimeScale()indicates a timescale in which time values for the track can be operated upon without extraneous numerical conversionstatic AVAssetTracknew_objc()floatnominalFrameRate()[@property] nominalFrameRate For tracks that carry a full frame per media sample, indicates the frame rate of the track in units of frames per second.CGAffineTransformpreferredTransform()indicates the transform specified in the track's storage container as the preferred transformation of the visual media data for display purposes; its value is often but not always CGAffineTransformIdentityfloatpreferredVolume()indicates the volume specified in the track's storage container as the preferred volume of the audible media databooleanrequiresFrameReordering()[@property] requiresFrameReordering Indicates whether samples in the track may have different values for their presentation and decode timestamps.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)CMTimesamplePresentationTimeForTrackTime(CMTime trackTime)Deprecated.@Nullable AVAssetTrackSegmentsegmentForTrackTime(CMTime trackTime)Deprecated.@NotNull NSArray<? extends AVAssetTrackSegment>segments()Provides an array of AVAssetTrackSegments with time mappings from the timeline of the track's media samples to the timeline of the track.static voidsetVersion_static(long aVersion)longstatusOfValueForKeyError(@NotNull java.lang.String key, @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)statusOfValueForKey: Reports whether the value for a key is immediately available without blocking.static org.moe.natj.objc.Classsuperclass_static()CMTimeRangetimeRange()Indicates the timeRange of the track within the overall timeline of the asset; a track with CMTIME_COMPARE_INLINE(timeRange.start, >, kCMTimeZero) will initially present an empty interval.longtotalSampleDataLength()indicates the total number of bytes of sample data required by the trackinttrackID()indicates the persistent unique identifier for this track of the assetstatic booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static AVAssetTrack alloc()
-
allocWithZone
public static AVAssetTrack allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
public static AVAssetTrack 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()
-
asset
@Nullable public @Nullable AVAsset asset()
provides a reference to the AVAsset of which the AVAssetTrack is a part
-
associatedTracksOfType
@NotNull @Deprecated public @NotNull NSArray<? extends AVAssetTrack> associatedTracksOfType(@NotNull @NotNull java.lang.String trackAssociationType)
Deprecated.associatedTracksOfType: Provides an NSArray of AVAssetTracks, one for each track associated with the receiver with the specified type of track association. Becomes callable without blocking when the key @"availableTrackAssociationTypes" has been loaded. API-Since: 7.0 Deprecated-Since: 100000.0- 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.
-
availableMetadataFormats
@NotNull public @NotNull NSArray<java.lang.String> availableMetadataFormats()
provides an NSArray of NSStrings, each representing a format of metadata that's available for the track (e.g. QuickTime userdata, etc.) Metadata formats are defined in AVMetadataItem.h.
-
availableTrackAssociationTypes
@NotNull public @NotNull NSArray<java.lang.String> availableTrackAssociationTypes()
Provides an NSArray of NSStrings, each representing a type of track association that the receiver has with one or more of the other tracks of the asset (e.g. AVTrackAssociationTypeChapterList, AVTrackAssociationTypeTimecode, etc.). Track association types are defined immediately above. API-Since: 7.0
-
commonMetadata
@NotNull public @NotNull NSArray<? extends AVMetadataItem> commonMetadata()
provides access to an array of AVMetadataItems for each common metadata key for which a value is available
-
copyWithZone
@NotNull public @NotNull java.lang.Object copyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
copyWithZonein interfaceNSCopying
-
estimatedDataRate
public float estimatedDataRate()
indicates the estimated data rate of the media data referenced by the track, in units of bits per second
-
extendedLanguageTag
@Nullable public @Nullable java.lang.String extendedLanguageTag()
indicates the language tag associated with the track, as an IETF BCP 47 (RFC 4646) language identifier; may be nil if no language tag is indicated
-
formatDescriptions
@NotNull public @NotNull NSArray<?> formatDescriptions()
provides an array of CMFormatDescriptions each of which indicates the format of media samples referenced by the track; a track that presents uniform media, e.g. encoded according to the same encoding settings, will provide an array with a count of 1
-
hasMediaCharacteristic
public boolean hasMediaCharacteristic(@NotNull @NotNull java.lang.String mediaCharacteristic)hasMediaCharacteristic: Reports whether the track references media with the specified media characteristic.- 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.
-
init
public AVAssetTrack init()
-
isEnabled
public boolean isEnabled()
indicates whether the track is enabled according to state stored in its container or construct; note that its presentation state can be changed from this default via AVPlayerItemTrack
-
isPlayable
public boolean isPlayable()
Indicates whether the receiver is playable in the current environment; if YES, an AVPlayerItemTrack of an AVPlayerItem initialized with the receiver's asset can be enabled for playback. API-Since: 5.0
-
isSelfContained
public boolean isSelfContained()
indicates whether the track references sample data only within its storage container
-
languageCode
@Nullable public @Nullable java.lang.String languageCode()
indicates the language associated with the track, as an ISO 639-2/T language code; may be nil if no language is indicated
-
loadValuesAsynchronouslyForKeysCompletionHandler
public void loadValuesAsynchronouslyForKeysCompletionHandler(@NotNull @NotNull NSArray<java.lang.String> keys, @Nullable AVAsynchronousKeyValueLoading.Block_loadValuesAsynchronouslyForKeysCompletionHandler handler)Description copied from interface:AVAsynchronousKeyValueLoadingloadValuesAsynchronouslyForKeys:completionHandler: Directs the target to load the values of any of the specified keys that are not already loaded.- Specified by:
loadValuesAsynchronouslyForKeysCompletionHandlerin interfaceAVAsynchronousKeyValueLoading- Parameters:
keys- An instance of NSArray, containing NSStrings for the specified keys.handler- The block to be invoked when loading succeeds, fails, or is cancelled.
-
mediaType
@NotNull public @NotNull java.lang.String mediaType()
indicates the media type for this track, e.g. AVMediaTypeVideo, AVMediaTypeAudio, etc., as defined in AVMediaFormat.h.
-
metadata
@NotNull public @NotNull NSArray<? extends AVMetadataItem> metadata()
Provides access to an array of AVMetadataItems for all metadata identifiers for which a value is available; items can be filtered according to language via +[AVMetadataItem metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:] and according to identifier via +[AVMetadataItem metadataItemsFromArray:filteredByIdentifier:]. API-Since: 8.0
-
metadataForFormat
@NotNull @Deprecated public @NotNull NSArray<? extends AVMetadataItem> metadataForFormat(@NotNull @NotNull java.lang.String format)
Deprecated.metadataForFormat: 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- Parameters:
format- The metadata format for which items are requested.- Returns:
- An NSArray containing AVMetadataItems.
-
minFrameDuration
public CMTime minFrameDuration()
indicates the minimum duration of the track's frames; the value will be kCMTimeInvalid if the minimum frame duration is not known or cannot be calculated API-Since: 7.0
-
naturalSize
public CGSize naturalSize()
indicates the natural dimensions of the media data referenced by the track as a CGSize
-
naturalTimeScale
public int naturalTimeScale()
indicates a timescale in which time values for the track can be operated upon without extraneous numerical conversion
-
nominalFrameRate
public float nominalFrameRate()
[@property] nominalFrameRate For tracks that carry a full frame per media sample, indicates the frame rate of the track in units of frames per second. For field-based video tracks that carry one field per media sample, the value of this property is the field rate, not the frame rate.
-
preferredTransform
public CGAffineTransform preferredTransform()
indicates the transform specified in the track's storage container as the preferred transformation of the visual media data for display purposes; its value is often but not always CGAffineTransformIdentity
-
preferredVolume
public float preferredVolume()
indicates the volume specified in the track's storage container as the preferred volume of the audible media data
-
requiresFrameReordering
public boolean requiresFrameReordering()
[@property] requiresFrameReordering Indicates whether samples in the track may have different values for their presentation and decode timestamps. API-Since: 8.0
-
samplePresentationTimeForTrackTime
@Deprecated public CMTime samplePresentationTimeForTrackTime(CMTime trackTime)
Deprecated.samplePresentationTimeForTrackTime: Maps the specified trackTime through the appropriate time mapping and returns the resulting sample presentation time.- 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 @Deprecated public @Nullable AVAssetTrackSegment segmentForTrackTime(CMTime trackTime)
Deprecated.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. 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- Parameters:
trackTime- The trackTime for which an AVAssetTrackSegment is requested.- Returns:
- An AVAssetTrackSegment.
-
segments
@NotNull public @NotNull NSArray<? extends AVAssetTrackSegment> segments()
Provides an array of AVAssetTrackSegments with time mappings from the timeline of the track's media samples to the timeline of the track. Empty edits, i.e. timeRanges for which no media data is available to be presented, have a value of AVAssetTrackSegment.empty equal to YES.
-
statusOfValueForKeyError
public long statusOfValueForKeyError(@NotNull @NotNull java.lang.String key, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)Description copied from interface:AVAsynchronousKeyValueLoadingstatusOfValueForKey: Reports whether the value for a key is immediately available without blocking. Clients can use -statusOfValueForKey: to determine the availability of the value of any key of interest. However, this method alone does not prompt the receiver to load the value of a key that's not yet available. To request values for keys that may not already be loaded, without blocking, use -loadValuesAsynchronouslyForKeys:completionHandler:, await invocation of the completion handler, and test the availability of each key via -statusOfValueForKey: before invoking its getter. Even if access to values of some keys may be readily available, as can occur with receivers initialized with URLs for resources on local volumes, extensive I/O or parsing may be needed for these same receivers to provide values for other keys. A duration for a local MP3 file, for example, may be expensive to obtain, even if the values for other AVAsset properties may be trivial to obtain. Blocking that may occur when calling the getter for any key should therefore be avoided in the general case by loading values for all keys of interest via -loadValuesAsynchronouslyForKeys:completionHandler: and testing the availability of the requested values before fetching them by calling getters. The sole exception to this general rule is in usage on macOS on the desktop, where it may be acceptable to block in cases in which the client is preparing objects for use on background threads or in operation queues. On platforms other than macOS, values should always be loaded asynchronously prior to calling getters for the values, in any usage scenario.- Specified by:
statusOfValueForKeyErrorin interfaceAVAsynchronousKeyValueLoading- Parameters:
key- An instance of NSString containing the specified key.outError- If the status of the value for the key is AVKeyValueStatusFailed, *outError is set to a non-nil NSError that describes the failure that occurred.- Returns:
- The value's current loading status.
-
timeRange
public CMTimeRange timeRange()
Indicates the timeRange of the track within the overall timeline of the asset; a track with CMTIME_COMPARE_INLINE(timeRange.start, >, kCMTimeZero) will initially present an empty interval.
-
totalSampleDataLength
public long totalSampleDataLength()
indicates the total number of bytes of sample data required by the track
-
trackID
public int trackID()
indicates the persistent unique identifier for this track of the asset
-
isDecodable
public boolean isDecodable()
Indicates whether the receiver is decodable in the current environment; if YES, the track can be decoded even though decoding may be too slow for real time playback. API-Since: 11.0
-
hasAudioSampleDependencies
public boolean hasAudioSampleDependencies()
indicates whether this audio track has dependencies (e.g. kAudioFormatMPEGD_USAC) API-Since: 13.0
-
loadAssociatedTracksOfTypeCompletionHandler
public void loadAssociatedTracksOfTypeCompletionHandler(@NotNull @NotNull java.lang.String trackAssociationType, @NotNull @NotNull AVAssetTrack.Block_loadAssociatedTracksOfTypeCompletionHandler completionHandler)loadAssociatedTracksOfType:completionHandler: Provides an NSArray of AVAssetTracks, one for each track associated with the receiver with the specified type of track association.- Parameters:
trackAssociationType- The type of track association for which associated tracks are requested.completionHandler- A block that is invoked when loading is comlete, vending an array of tracks (which may be empty if there is no associated tracks of the specified type) or an error. ` API-Since: 15.0
-
loadMetadataForFormatCompletionHandler
public void loadMetadataForFormatCompletionHandler(@NotNull @NotNull java.lang.String format, @NotNull @NotNull AVAssetTrack.Block_loadMetadataForFormatCompletionHandler completionHandler)loadMetadataForFormat:completionHandler: Loads an NSArray of AVMetadataItems, one for each metadata item in the container of the specified format.- Parameters:
format- The metadata format for which items are requested.completionHandler- A block that is invoked when loading is complete, vending the array of metadata items (which may be empty if there is no metadata of the specified format) or an error. API-Since: 15.0
-
loadSamplePresentationTimeForTrackTimeCompletionHandler
public void loadSamplePresentationTimeForTrackTimeCompletionHandler(CMTime trackTime, @NotNull @NotNull AVAssetTrack.Block_loadSamplePresentationTimeForTrackTimeCompletionHandler completionHandler)
loadSamplePresentationTimeForTrackTime:completionHandler: Maps the specified trackTime through the appropriate time mapping and loads the resulting sample presentation time.- Parameters:
trackTime- The trackTime for which a sample presentation time is requested.completionHandler- A block that is invoked when loading is complete, vending a CMTime (which will be invalid if the trackTime is out of range) or an error. API-Since: 15.0
-
loadSegmentForTrackTimeCompletionHandler
public void loadSegmentForTrackTimeCompletionHandler(CMTime trackTime, @NotNull @NotNull AVAssetTrack.Block_loadSegmentForTrackTimeCompletionHandler completionHandler)
loadSegmentForTrackTime:completionHandler: Loads 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: 15.0- Parameters:
trackTime- The trackTime for which an AVAssetTrackSegment is requested.completionHandler- A block that is invoked when loading is complete, vending an AVAssetTrackSegment or an error.
-
canProvideSampleCursors
public boolean canProvideSampleCursors()
Indicates whether the receiver can provide instances of AVSampleCursor for traversing its media samples and discovering information about them. API-Since: 16.0
-
makeSampleCursorAtFirstSampleInDecodeOrder
@Nullable public @Nullable AVSampleCursor makeSampleCursorAtFirstSampleInDecodeOrder()
makeSampleCursorAtFirstSampleInDecodeOrder: Creates an instance of AVSampleCursor and positions it at the receiver's first media sample in decode order. This method will return nil if there are no samples in the track. API-Since: 16.0- Returns:
- An instance of AVSampleCursor.
-
makeSampleCursorAtLastSampleInDecodeOrder
@Nullable public @Nullable AVSampleCursor makeSampleCursorAtLastSampleInDecodeOrder()
makeSampleCursorAtLastSampleInDecodeOrder: Creates an instance of AVSampleCursor and positions it at the receiver's last media sample in decode order. This method will return nil if there are no samples in the track. API-Since: 16.0- Returns:
- An instance of AVSampleCursor.
-
makeSampleCursorWithPresentationTimeStamp
@Nullable public @Nullable AVSampleCursor makeSampleCursorWithPresentationTimeStamp(CMTime presentationTimeStamp)
makeSampleCursorWithPresentationTimeStamp: Creates an instance of AVSampleCursor and positions it at or near the specified presentation timestamp. If the receiver's asset has a value of YES for providesPreciseDurationAndTiming, the sample cursor will be accurately positioned at the receiver's last media sample with presentation timestamp less than or equal to the desired timestamp, or, if there are no such samples, the first sample in presentation order. If the receiver's asset has a value of NO for providesPreciseDurationAndTiming, and it is prohibitively expensive to locate the precise sample at the desired timestamp, the sample cursor may be approximately positioned. This method will return nil if there are no samples in the track. API-Since: 16.0- Parameters:
presentationTimeStamp- The desired initial presentation timestamp of the returned AVSampleCursor.- Returns:
- An instance of AVSampleCursor.
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-