Class AVMutableCompositionTrack

    • Constructor Detail

      • AVMutableCompositionTrack

        protected AVMutableCompositionTrack​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • extendedLanguageTag

        public java.lang.String extendedLanguageTag()
        [@property] extendedLanguageTag Indicates the language tag associated with the track, as an IETF BCP 47 (RFC 4646) language identifier. The default value is nil.
        Overrides:
        extendedLanguageTag in class AVAssetTrack
      • insertEmptyTimeRange

        public void insertEmptyTimeRange​(CMTimeRange timeRange)
        insertEmptyTimeRange: Adds or extends an empty timeRange within the composition track. If you insert an empty timeRange into the track, any media that was presented during that interval prior to the insertion will be presented instead immediately afterward. The exact meaning of the term "empty timeRange" depends upon the mediaType of the track. For example, an empty timeRange in a sound track presents silence. Note that you cannot add empty time ranges to the end of a composition track.
        Parameters:
        timeRange - Specifies the empty timeRange to be inserted.
      • insertTimeRangeOfTrackAtTimeError

        public boolean insertTimeRangeOfTrackAtTimeError​(CMTimeRange timeRange,
                                                         AVAssetTrack track,
                                                         CMTime startTime,
                                                         org.moe.natj.general.ptr.Ptr<NSError> outError)
        insertTimeRange:ofTrack:atTime:error: Inserts a timeRange of a source track into a track of a composition. You provide a reference to an AVAssetTrack and the timeRange within it that you want to insert. You specify the start time in the target composition track at which the timeRange should be inserted. Note that the inserted track timeRange will be presented at its natural duration and rate. It can be scaled to a different duration (and presented at a different rate) via -scaleTimeRange:toDuration:.
        Parameters:
        timeRange - Specifies the timeRange of the track to be inserted.
        track - Specifies the source track to be inserted. Only AVAssetTracks of AVURLAssets and AVCompositions are supported (AVCompositions starting in MacOS X 10.10 and iOS 8.0).
        startTime - Specifies the time at which the inserted track is to be presented by the composition track. You may pass kCMTimeInvalid for startTime to indicate that the timeRange should be appended to the end of the track.
        error - Describes failures that may be reported to the user, e.g. the asset that was selected for insertion in the composition is restricted by copy-protection.
        Returns:
        A BOOL value indicating the success of the insertion.
      • insertTimeRangesOfTracksAtTimeError

        public boolean insertTimeRangesOfTracksAtTimeError​(NSArray<? extends NSValue> timeRanges,
                                                           NSArray<? extends AVAssetTrack> tracks,
                                                           CMTime startTime,
                                                           org.moe.natj.general.ptr.Ptr<NSError> outError)
        insertTimeRanges:ofTracks:atTime:error: Inserts the timeRanges of multiple source tracks into a track of a composition. This method is equivalent to (but more efficient than) calling -insertTimeRange:ofTrack:atTime:error: for each timeRange/track pair. If this method returns an error, none of the time ranges will be inserted into the composition track. To specify an empty time range, pass NSNull for the track and a time range of starting at kCMTimeInvalid with a duration of the desired empty edit.
        Parameters:
        timeRanges - Specifies the timeRanges to be inserted. An NSArray of NSValues containing CMTimeRange. (See +[NSValue valueWithCMTimeRange:] in AVTime.h.)
        tracks - Specifies the source tracks to be inserted. Only AVAssetTracks of AVURLAssets and AVCompositions are supported (AVCompositions starting in MacOS X 10.10 and iOS 8.0).
        startTime - Specifies the time at which the inserted tracks are to be presented by the composition track. You may pass kCMTimeInvalid for startTime to indicate that the timeRanges should be appended to the end of the track.
        error - Describes failures that may be reported to the user, e.g. the asset that was selected for insertion in the composition is restricted by copy-protection.
        Returns:
        A BOOL value indicating the success of the insertion.
      • languageCode

        public java.lang.String languageCode()
        [@property] languageCode Indicates the language associated with the track, as an ISO 639-2/T language code. The default value is nil.
        Overrides:
        languageCode in class AVAssetTrack
      • naturalTimeScale

        public int naturalTimeScale()
        [@property] naturalTimeScale Indicates a timescale in which time values for the track can be operated upon without extraneous numerical conversion. If not set, the value is the naturalTimeScale of the first non-empty edit, or 600 if there are no non-empty edits. Set to 0 to revert to default behavior.
        Overrides:
        naturalTimeScale in class AVAssetTrack
      • preferredTransform

        public CGAffineTransform preferredTransform()
        [@property] preferredTransform The preferred transformation of the visual media data for display purposes. The default value is CGAffineTransformIdentity.
        Overrides:
        preferredTransform in class AVAssetTrack
      • preferredVolume

        public float preferredVolume()
        [@property] preferredVolume The preferred volume of the audible media data. The default value is 1.0.
        Overrides:
        preferredVolume in class AVAssetTrack
      • removeTimeRange

        public void removeTimeRange​(CMTimeRange timeRange)
        removeTimeRange: Removes a specified timeRange from the track. Removal of a timeRange does not cause the track to be removed from the composition. Instead it removes or truncates track segments that intersect with the timeRange.
        Parameters:
        timeRange - Specifies the timeRange to be removed.
      • scaleTimeRangeToDuration

        public void scaleTimeRangeToDuration​(CMTimeRange timeRange,
                                             CMTime duration)
        scaleTimeRange:toDuration: Changes the duration of a timeRange of the track. Each trackSegment affected by the scaling operation will be presented at a rate equal to source.duration / target.duration of its resulting timeMapping.
        Parameters:
        timeRange - Specifies the timeRange of the track to be scaled.
        duration - Specifies the new duration of the timeRange.
      • segments

        public NSArray<? extends AVCompositionTrackSegment> segments()
        [@property] segments Provides read/write access to the array of track segments, each an instance of AVCompositionTrackSegment. Note that timeMapping.target.start of the first AVCompositionTrackSegment must be kCMTimeZero, and the timeMapping.target.start of each subsequent AVCompositionTrackSegment must equal CMTimeRangeGetEnd(the previous AVCompositionTrackSegment's timeMapping.target). Use -validateTrackSegments:error: to perform a test to ensure that an array of AVCompositionTrackSegments conforms to this rule.
        Overrides:
        segments in class AVCompositionTrack
      • setExtendedLanguageTag

        public void setExtendedLanguageTag​(java.lang.String value)
        [@property] extendedLanguageTag Indicates the language tag associated with the track, as an IETF BCP 47 (RFC 4646) language identifier. The default value is nil.
      • setLanguageCode

        public void setLanguageCode​(java.lang.String value)
        [@property] languageCode Indicates the language associated with the track, as an ISO 639-2/T language code. The default value is nil.
      • setNaturalTimeScale

        public void setNaturalTimeScale​(int value)
        [@property] naturalTimeScale Indicates a timescale in which time values for the track can be operated upon without extraneous numerical conversion. If not set, the value is the naturalTimeScale of the first non-empty edit, or 600 if there are no non-empty edits. Set to 0 to revert to default behavior.
      • setPreferredTransform

        public void setPreferredTransform​(CGAffineTransform value)
        [@property] preferredTransform The preferred transformation of the visual media data for display purposes. The default value is CGAffineTransformIdentity.
      • setPreferredVolume

        public void setPreferredVolume​(float value)
        [@property] preferredVolume The preferred volume of the audible media data. The default value is 1.0.
      • setSegments

        public void setSegments​(NSArray<? extends AVCompositionTrackSegment> value)
        [@property] segments Provides read/write access to the array of track segments, each an instance of AVCompositionTrackSegment. Note that timeMapping.target.start of the first AVCompositionTrackSegment must be kCMTimeZero, and the timeMapping.target.start of each subsequent AVCompositionTrackSegment must equal CMTimeRangeGetEnd(the previous AVCompositionTrackSegment's timeMapping.target). Use -validateTrackSegments:error: to perform a test to ensure that an array of AVCompositionTrackSegments conforms to this rule.
      • validateTrackSegmentsError

        public boolean validateTrackSegmentsError​(NSArray<? extends AVCompositionTrackSegment> trackSegments,
                                                  org.moe.natj.general.ptr.Ptr<NSError> outError)
        validateTrackSegments:error: Tests an array of AVCompositionTrackSegments to determine whether they conform to the timing rules noted above (see the property key @"trackSegments"). The array is tested for suitability for setting as the value of the trackSegments property. If a portion of an existing trackSegments array is to be modified, the modification can be made via an instance of NSMutableArray, and the resulting array can be tested via -validateTrackSegments:error:.
        Parameters:
        trackSegments - The array of AVCompositionTrackSegments to be validated.
        error - If validation fais, returns information about the failure.
        Returns:
        YES if validation suceeds, otherwise NO.
      • addTrackAssociationToTrackType

        public void addTrackAssociationToTrackType​(AVCompositionTrack compositionTrack,
                                                   java.lang.String trackAssociationType)
        addTrackAssociationToTrack:type: Establishes a track association of a specific type between two tracks.
        Parameters:
        compositionTrack - An AVCompositionTrack object that is to be associated with the receiver.
        trackAssociationType - The type of track association to add between the receiver and the specified compositionTrack (for instance, AVTrackAssociationTypeChapterList).
      • isEnabled

        public boolean isEnabled()
        [@property] enabled Specifies whether the track is enabled or disabled. Default is YES.
        Overrides:
        isEnabled in class AVAssetTrack
      • removeTrackAssociationToTrackType

        public void removeTrackAssociationToTrackType​(AVCompositionTrack compositionTrack,
                                                      java.lang.String trackAssociationType)
        removeTrackAssociationToTrack:type: Removes a track association of a specific type between two tracks.
        Parameters:
        compositionTrack - An AVCompositionTrack object that is associated with the receiver.
        trackAssociationType - The type of track association to remove between the receiver and the specified compositionTrack (for instance, AVTrackAssociationTypeChapterList).
      • replaceFormatDescriptionWithFormatDescription

        public void replaceFormatDescriptionWithFormatDescription​(CMFormatDescriptionRef originalFormatDescription,
                                                                  CMFormatDescriptionRef replacementFormatDescription)
        replaceFormatDescription:withFormatDescription: Replaces one of the receiver's format descriptions with another format description or cancels a previous replacement. You can use this method to make surgical changes to a track's format descriptions, such as adding format description extensions to a format description or changing the audio channel layout of an audio track. You should note that a format description can have extensions of type kCMFormatDescriptionExtension_VerbatimSampleDescription and kCMFormatDescriptionExtension_VerbatimISOSampleEntry; if you modify a copy of a format description, you should delete those extensions from the copy or your changes might be ignored. Also note that format description replacements are not transferred when performing editing operations on AVMutableCompositionTrack objects; for instance, inserting a range of a composition track into another composition track does not transfer any replacement format descriptions.
        Parameters:
        originalFormatDescription - A CMFormatDescription occurring in the underlying asset track.
        replacementFormatDescription - A CMFormatDescription to replace the specified format description or NULL to indicate that a previous replacement of originalFormatDescription should be cancelled.
      • setEnabled

        public void setEnabled​(boolean value)
        [@property] enabled Specifies whether the track is enabled or disabled. Default is YES.