Class AVMutableMovieTrack

    • Constructor Detail

      • AVMutableMovieTrack

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • addTrackAssociationToTrackType

        public void addTrackAssociationToTrackType​(AVMovieTrack movieTrack,
                                                   java.lang.String trackAssociationType)
        addTrackAssociationToTrack:type: Establishes a track association of a specific type between two tracks.
        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).
      • allocWithZone

        public static java.lang.Object 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:
        alternateGroupID in class AVMovieTrack
      • appendSampleBufferDecodeTimePresentationTimeError

        public boolean appendSampleBufferDecodeTimePresentationTimeError​(CMSampleBufferRef sampleBuffer,
                                                                         CMTime outDecodeTime,
                                                                         CMTime outPresentationTime,
                                                                         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.
        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​(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()
      • 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

        public 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:
        extendedLanguageTag in class AVAssetTrack
      • 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()
      • 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.
        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,
                                                                       AVAssetTrack track,
                                                                       CMTime startTime,
                                                                       boolean copySampleData,
                                                                       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.
      • 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:
        isEnabled in class AVAssetTrack
      • 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

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

        public 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:
        languageCode in class AVAssetTrack
      • layer

        public long layer()
        [@property] layer The layer level of the visual media data of the track.
      • mediaDataStorage

        public 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:
        mediaDataStorage in class AVMovieTrack
      • metadata

        public 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:
        metadata in class AVAssetTrack
      • naturalSize

        public CGSize naturalSize()
        [@property] naturalSize A CGSize indicating the dimensions at which the visual media data of the track should be displayed.
        Overrides:
        naturalSize in class AVAssetTrack
      • new_objc

        public static java.lang.Object 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:
        preferredTransform in class AVAssetTrack
      • preferredVolume

        public float preferredVolume()
        [@property] preferredVolume The preferred volume of the audible media data of the track; often but not always 1.0.
        Overrides:
        preferredVolume in class AVAssetTrack
      • 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​(AVMovieTrack movieTrack,
                                                      java.lang.String trackAssociationType)
        removeTrackAssociationToTrack:type: Removes a track association of a specific type between two tracks.
        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​(CMFormatDescriptionRef formatDescription,
                                                                  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. An NSInvalidArgumentException will be thrown if the media type of the new format description does not match the media type of the receiver.
        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

        public 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​(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​(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​(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​(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​(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()