Class AVMutableMovie

  • All Implemented Interfaces:
    AVAsynchronousKeyValueLoading, NSCopying, NSMutableCopying, NSObject

    public class AVMutableMovie
    extends AVMovie
    AVMutableMovie AVMutableMovie adds to its immutable superclass, AVMovie, several categories of methods for editing QuickTime movie files, e.g. inserting and removing time ranges of media, adding and removing tracks, and modifying the metadata collections stored therein. By default, after creating an AVMutableMovie the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from a file and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written. API-Since: 13.0
    • Constructor Detail

      • AVMutableMovie

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • addMutableTrackWithMediaTypeCopySettingsFromTrackOptions

        @Nullable
        public @Nullable AVMutableMovieTrack addMutableTrackWithMediaTypeCopySettingsFromTrackOptions​(@NotNull
                                                                                                      @NotNull java.lang.String mediaType,
                                                                                                      @Nullable
                                                                                                      @Nullable AVAssetTrack track,
                                                                                                      @Nullable
                                                                                                      @Nullable NSDictionary<java.lang.String,​?> options)
        addMutableTrackWithMediaType:copySettingsFromTrack:options: Adds an empty track to the target movie. The trackID of the newly added track is a property of the returned instance of AVMutableMovieTrack. This method throws an exception if media type is not equal to the track's media type, or if any option is invalid. Note that metadata will not be automatically copied.
        Parameters:
        mediaType - The media type of the new track (e.g. AVMediaTypeVideo for a video track).
        track - If you wish to transfer settings from an existing track, including width, height, preferred volume, etc., pass a reference to an AVAssetTrack representing that track. Otherwise pass nil.
        options - An NSDictionary object that contains keys for specifying options for the initialization of the new AVMutableMovieTrack object. Pass nil for default initialization behavior.
        Returns:
        An AVMutableMovieTrack object
      • addMutableTracksCopyingSettingsFromTracksOptions

        @NotNull
        public @NotNull NSArray<? extends AVMutableMovieTrack> addMutableTracksCopyingSettingsFromTracksOptions​(@NotNull
                                                                                                                @NotNull NSArray<? extends AVAssetTrack> existingTracks,
                                                                                                                @Nullable
                                                                                                                @Nullable NSDictionary<java.lang.String,​?> options)
        addMutableTracksCopyingSettingsFromTracks:options: Adds one or more empty tracks to the target movie, copying track settings from the source tracks. This method creates one or more empty tracks in the target movie and configures those tracks with settings (such as track userdata and metadata, width, height, and preferred volume) copied from the source tracks in the existingTracks array. Also, properties involving pairs of tracks (such as track references) are copied from the source tracks to the target tracks. This method throws an exception if any option is invalid.
        Parameters:
        existingTracks - An array of AVAssetTrack objects.
        options - An NSDictionary object that contains keys for specifying options for the initialization of the new AVMutableMovieTrack objects. Pass nil for default initialization behavior.
        Returns:
        An array of AVMutableMovieTrack objects; the index of a track in this array is the same as the index of its source track in the existingTracks array.
      • allocWithZone

        public static AVMutableMovie 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()
      • defaultMediaDataStorage

        @Nullable
        public @Nullable AVMediaDataStorage defaultMediaDataStorage()
        [@property] defaultMediaDataStorage The default storage container for media data added to a movie. The value of this property is an AVMediaDataStorage object that indicates where sample data that is added to a movie should be written, for any track for whose mediaDataStorage property is nil.
        Overrides:
        defaultMediaDataStorage in class AVMovie
      • description_static

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

        public static long hash_static()
      • initWithDataOptions

        public AVMutableMovie initWithDataOptions​(@NotNull
                                                  @NotNull NSData data,
                                                  @Nullable
                                                  @Nullable NSDictionary<java.lang.String,​?> options)
        Description copied from class: AVMovie
        initWithData:options: Creates an AVMovie object from a movie header stored in an NSData object. You can use this method to operate on movie headers that are not stored in files. In general you should avoid loading an entire movie file with its media data into an instance of NSData! By default, the defaultMediaDataStorage property will be nil and each associated AVMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an NSData object and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written. API-Since: 13.0
        Overrides:
        initWithDataOptions in class AVMovie
        Parameters:
        data - An NSData object containing a movie header.
        options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMovie object.
        Returns:
        An AVMovie object
      • initWithDataOptionsError

        public AVMutableMovie initWithDataOptionsError​(@NotNull
                                                       @NotNull NSData data,
                                                       @Nullable
                                                       @Nullable NSDictionary<java.lang.String,​?> options,
                                                       @Nullable
                                                       @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        initWithData:options:error: Creates an AVMutableMovie object from a movie header stored in an NSData object. You can use this method to operate on movie headers that are not stored in files. In general you should avoid loading an entire movie file with its media data into an instance of NSData! By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an NSData object and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.
        Parameters:
        data - An NSData object containing a movie header.
        options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object.
        outError - If an error occurs creating a movie, describes the nature of the failure.
        Returns:
        An AVMutableMovie object
      • initWithSettingsFromMovieOptionsError

        public AVMutableMovie initWithSettingsFromMovieOptionsError​(@Nullable
                                                                    @Nullable AVMovie movie,
                                                                    @Nullable
                                                                    @Nullable NSDictionary<java.lang.String,​?> options,
                                                                    @Nullable
                                                                    @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        initWithSettingsFromMovie:options:error: Creates an AVMutableMovie object without tracks (and therefore without media). By default, the defaultMediaDataStorage property will be nil and each associated AVMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an NSData object and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.
        Parameters:
        movie - If you wish to transfer settings from an existing movie (including movie userdata and metadata, preferred rate, preferred volume, etc.), pass a reference to an AVMovie object representing that movie. Otherwise pass nil. The userdata and metadata from the source movie may need to be converted if the format of that movie differs from fileType; you may wish to inspect the userdata or metadata of the receiver to ensure that important data was copied.
        options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object. Pass nil for default initialization behavior.
        outError - If an error occurs creating a movie, describes the nature of the failure.
        Returns:
        An AVMutableMovie object
      • initWithURLOptions

        public AVMutableMovie initWithURLOptions​(@NotNull
                                                 @NotNull NSURL URL,
                                                 @Nullable
                                                 @Nullable NSDictionary<java.lang.String,​?> options)
        Description copied from class: AVMovie
        initWithURL:options: Creates an AVMovie object from a movie header stored in a QuickTime movie file or ISO base media file. By default, the defaultMediaDataStorage property will be nil and each associated AVMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from a file and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.
        Overrides:
        initWithURLOptions in class AVMovie
        Parameters:
        URL - An NSURL object that specifies a file containing a movie header.
        options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMovie object.
        Returns:
        An AVMovie object
      • initWithURLOptionsError

        public AVMutableMovie initWithURLOptionsError​(@NotNull
                                                      @NotNull NSURL URL,
                                                      @Nullable
                                                      @Nullable NSDictionary<java.lang.String,​?> options,
                                                      @Nullable
                                                      @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        initWithURL:options:error: Creates an AVMutableMovie object from a movie header stored in a QuickTime movie file or ISO base media file. By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from a file and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.
        Parameters:
        URL - An NSURL object that specifies a file containing a movie header.
        options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object.
        outError - If an error occurs creating a movie, describes the nature of the failure.
        Returns:
        An AVMutableMovie object
      • insertEmptyTimeRange

        public void insertEmptyTimeRange​(CMTimeRange timeRange)
        insertEmptyTimeRange: Adds an empty time range to the target movie.
        Parameters:
        timeRange - The time range to be made empty. Note that you cannot add empty time ranges to the end of a movie.
      • insertTimeRangeOfAssetAtTimeCopySampleDataError

        public boolean insertTimeRangeOfAssetAtTimeCopySampleDataError​(CMTimeRange timeRange,
                                                                       @NotNull
                                                                       @NotNull AVAsset asset,
                                                                       CMTime startTime,
                                                                       boolean copySampleData,
                                                                       @Nullable
                                                                       @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        insertTimeRange:ofAsset:atTime:copySampleData:error: Inserts all the tracks of a timeRange of an asset into a movie. This method may add new tracks to the target movie to ensure that all tracks of the asset are represented in the inserted timeRange. Existing content at the specified startTime will be pushed out by the duration of timeRange. Note that metadata will not be automatically copied.
        Parameters:
        timeRange - The time range of the asset to be inserted.
        asset - An AVAsset object indicating the source of the inserted media. Only instances of AVURLAsset and AVComposition are supported. Must not be nil.
        startTime - The time in the target movie 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 location 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 source AVAsset is not able to provide sample reference information for the original container.
        outError - If the insertion fails, an NSError object that 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)
      • interleavingPeriod

        public CMTime interleavingPeriod()
        [@property] interleavingPeriod A CMTime that indicates the duration for interleaving runs of samples of each track. The default interleaving period is 0.5 seconds.
      • isModified

        public boolean isModified()
        [@property] modified Whether a movie has been modified. The value of this property is a BOOL that indicates whether the AVMutableMovie 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)
      • metadata

        @NotNull
        public @NotNull NSArray<? extends AVMetadataItem> metadata()
        [@property] metadata A collection of metadata stored by the movie. The value of this property is an array of AVMetadataItem objects representing the collection of metadata stored by the movie.
        Overrides:
        metadata in class AVAsset
      • movieTypes

        @NotNull
        public static @NotNull NSArray<java.lang.String> movieTypes()
      • movieWithDataOptions

        public static AVMutableMovie movieWithDataOptions​(@NotNull
                                                          @NotNull NSData data,
                                                          @Nullable
                                                          @Nullable NSDictionary<java.lang.String,​?> options)
      • movieWithDataOptionsError

        public static AVMutableMovie movieWithDataOptionsError​(@NotNull
                                                               @NotNull NSData data,
                                                               @Nullable
                                                               @Nullable NSDictionary<java.lang.String,​?> options,
                                                               @Nullable
                                                               @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        movieWithData:options:error: Creates an AVMutableMovie object from a movie header stored in an NSData object. You can use this method to operate on movie headers that are not stored in files. In general you should avoid loading an entire movie file with its media data into an instance of NSData! By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an NSData object and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written. API-Since: 13.0
        Parameters:
        data - An NSData object containing a movie header.
        options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object.
        outError - If an error occurs creating a movie, describes the nature of the failure.
        Returns:
        An AVMutableMovie object
      • movieWithSettingsFromMovieOptionsError

        public static AVMutableMovie movieWithSettingsFromMovieOptionsError​(@Nullable
                                                                            @Nullable AVMovie movie,
                                                                            @Nullable
                                                                            @Nullable NSDictionary<java.lang.String,​?> options,
                                                                            @Nullable
                                                                            @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        movieWithSettingsFromMovie:options:error: Creates an AVMutableMovie object without tracks (and therefore without media). By default, the defaultMediaDataStorage property will be nil and each associated AVMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from an NSData object and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.
        Parameters:
        movie - If you wish to transfer settings from an existing movie (including movie userdata and metadata, preferred rate, preferred volume, etc.), pass a reference to an AVMovie object representing that movie. Otherwise pass nil. The userdata and metadata from the source movie may need to be converted if the format of that movie differs from fileType; you may wish to inspect the userdata or metadata of the receiver to ensure that important data was copied.
        options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object. Pass nil for default initialization behavior.
        outError - If an error occurs creating a movie, describes the nature of the failure.
        Returns:
        An AVMutableMovie object
      • movieWithURLOptions

        public static AVMutableMovie movieWithURLOptions​(@NotNull
                                                         @NotNull NSURL URL,
                                                         @Nullable
                                                         @Nullable NSDictionary<java.lang.String,​?> options)
      • movieWithURLOptionsError

        public static AVMutableMovie movieWithURLOptionsError​(@NotNull
                                                              @NotNull NSURL URL,
                                                              @Nullable
                                                              @Nullable NSDictionary<java.lang.String,​?> options,
                                                              @Nullable
                                                              @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        movieWithURL:options:error: Creates an AVMutableMovie object from a movie header stored in a QuickTime movie file or ISO base media file. By default, the defaultMediaDataStorage property will be nil and each associated AVMutableMovieTrack's mediaDataStorage property will be nil. If you want to create an AVMutableMovie from a file and then append sample buffers to any of its tracks, you must first set one of these properties to indicate where the sample data should be written.
        Parameters:
        URL - An NSURL object that specifies a file containing a movie header.
        options - An NSDictionary object that contains keys for specifying options for the initialization of the AVMutableMovie object.
        outError - If an error occurs creating a movie, describes the nature of the failure.
        Returns:
        An AVMutableMovie object
      • mutableTrackCompatibleWithTrack

        @Nullable
        public @Nullable AVMutableMovieTrack mutableTrackCompatibleWithTrack​(@NotNull
                                                                             @NotNull AVAssetTrack track)
        mutableTrackCompatibleWithTrack: Provides a reference to a track of a mutable movie into which any time range of an AVAssetTrack can be inserted (via -[AVMutableMovieTrack insertTimeRange:ofTrack:atTime:copySampleData:error:]). For best performance, the number of tracks in a movie should be kept to a minimum, corresponding to the number for which media data must be presented in parallel. If media data of the same type is to be presented serially, even from multiple assets, a single track of that media type should be used. This method, -mutableTrackCompatibleWithTrack:, can help the client to identify an existing target track for an insertion.
        Parameters:
        track - A reference to the AVAssetTrack from which a time range may be inserted.
        Returns:
        An AVMutableMovieTrack that can accommodate the insertion. If no such track is available, the result is nil. A new track of the same media type as the AVAssetTrack can be created via -addMutableTrackWithMediaType:copySettingsFromTrack:options:, and this new track will be compatible.
      • preferredRate

        public float preferredRate()
        [@property] preferredRate The natural rate at which the movie is to be played; often but not always 1.0.
        Overrides:
        preferredRate in class AVAsset
      • preferredTransform

        public CGAffineTransform preferredTransform()
        [@property] preferredTransform A CGAffineTransform indicating the transform specified in the movie'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 AVAsset
      • preferredVolume

        public float preferredVolume()
        [@property] preferredVolume The preferred volume of the audible media data of the movie; often but not always 1.0.
        Overrides:
        preferredVolume in class AVAsset
      • removeTimeRange

        public void removeTimeRange​(CMTimeRange timeRange)
        removeTimeRange: Removes a specified time range from a movie.
        Parameters:
        timeRange - The time range to be removed.
      • removeTrack

        public void removeTrack​(@NotNull
                                @NotNull AVMovieTrack track)
        removeTrack: Removes a track from the target movie.
        Parameters:
        track - The track to be removed.
      • resolveClassMethod

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

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

        public void scaleTimeRangeToDuration​(CMTimeRange timeRange,
                                             CMTime duration)
        scaleTimeRange:toDuration: Changes the duration of a time range of a movie.
        Parameters:
        timeRange - The time range to be scaled.
        duration - The new duration of the time range.
      • setDefaultMediaDataStorage

        public void setDefaultMediaDataStorage​(@Nullable
                                               @Nullable AVMediaDataStorage value)
        [@property] defaultMediaDataStorage The default storage container for media data added to a movie. The value of this property is an AVMediaDataStorage object that indicates where sample data that is added to a movie should be written, for any track for whose mediaDataStorage property is nil.
      • setInterleavingPeriod

        public void setInterleavingPeriod​(CMTime value)
        [@property] interleavingPeriod A CMTime that indicates the duration for interleaving runs of samples of each track. The default interleaving period is 0.5 seconds.
      • setMetadata

        public void setMetadata​(@NotNull
                                @NotNull NSArray<? extends AVMetadataItem> value)
        [@property] metadata A collection of metadata stored by the movie. The value of this property is an array of AVMetadataItem objects representing the collection of metadata stored by the movie.
      • setModified

        public void setModified​(boolean value)
        [@property] modified Whether a movie has been modified. The value of this property is a BOOL that indicates whether the AVMutableMovie object has been modified since it was created, was last written, or had its modified state cleared via a call to setModified:NO.
      • setPreferredRate

        public void setPreferredRate​(float value)
        [@property] preferredRate The natural rate at which the movie is to be played; often but not always 1.0.
      • setPreferredTransform

        public void setPreferredTransform​(CGAffineTransform value)
        [@property] preferredTransform A CGAffineTransform indicating the transform specified in the movie'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 movie; often but not always 1.0.
      • 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 movie. The default movie time scale is 600. In certain cases, you may want to set this to a different value. For instance, a movie that contains a single audio track should typically have the movie time scale set to the media time scale of that track. This property should be set on a new empty movie before any edits are performed on the movie.
      • 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 movie. The default movie time scale is 600. In certain cases, you may want to set this to a different value. For instance, a movie that contains a single audio track should typically have the movie time scale set to the media time scale of that track. This property should be set on a new empty movie before any edits are performed on the movie.
      • trackWithTrackID

        @Nullable
        public @Nullable AVMutableMovieTrack trackWithTrackID​(int trackID)
        trackWithTrackID: Provides an instance of AVMutableMovieTrack that represents the track of the specified trackID. Becomes callable without blocking when the key @"tracks" has been loaded
        Overrides:
        trackWithTrackID in class AVMovie
        Parameters:
        trackID - The trackID of the requested AVMutableMovieTrack.
        Returns:
        An instance of AVMutableMovieTrack; may be nil if no track of the specified trackID is available.
      • tracks

        @NotNull
        public @NotNull NSArray<? extends AVMutableMovieTrack> tracks()
        [@property] tracks The tracks in a mutable movie. The value of this property is an array of tracks the mutable movie contains; the tracks are of type AVMutableMovieTrack.
        Overrides:
        tracks in class AVMovie
      • tracksWithMediaCharacteristic

        @NotNull
        public @NotNull NSArray<? extends AVMutableMovieTrack> tracksWithMediaCharacteristic​(@NotNull
                                                                                             @NotNull java.lang.String mediaCharacteristic)
        tracksWithMediaCharacteristic: Provides an array of AVMutableMovieTracks of the asset that present media with the specified characteristic. Becomes callable without blocking when the key @"tracks" has been loaded
        Overrides:
        tracksWithMediaCharacteristic in class AVMovie
        Parameters:
        mediaCharacteristic - The media characteristic according to which the receiver filters its AVMutableMovieTracks. (Media characteristics are defined in AVMediaFormat.h)
        Returns:
        An NSArray of AVMutableMovieTracks; may be empty if no tracks with the specified characteristic are available.
      • tracksWithMediaType

        @NotNull
        public @NotNull NSArray<? extends AVMutableMovieTrack> tracksWithMediaType​(@NotNull
                                                                                   @NotNull java.lang.String mediaType)
        tracksWithMediaType: Provides an array of AVMutableMovieTracks of the asset that present media of the specified media type. Becomes callable without blocking when the key @"tracks" has been loaded
        Overrides:
        tracksWithMediaType in class AVMovie
        Parameters:
        mediaType - The media type according to which the receiver filters its AVMutableMovieTracks. (Media types are defined in AVMediaFormat.h)
        Returns:
        An NSArray of AVMutableMovieTracks; may be empty if no tracks of the specified media type are available.
      • version_static

        public static long version_static()
      • loadTrackWithTrackIDCompletionHandler

        public void loadTrackWithTrackIDCompletionHandler​(int trackID,
                                                          @NotNull
                                                          @NotNull AVMutableMovie.Block_loadTrackWithTrackIDCompletionHandler completionHandler)
        loadTrackWithTrackID:completionHandler: Loads an instance of AVMutableMovieTrack that represents the track of the specified trackID.
        Parameters:
        trackID - The trackID of the requested AVMutableMovieTrack.
        completionHandler - A block that is called when the loading is finished, with either the loaded track (which may be nil if no track of the specified trackID is available) or an error. API-Since: 15.0
      • loadTracksWithMediaCharacteristicCompletionHandler

        public void loadTracksWithMediaCharacteristicCompletionHandler​(@NotNull
                                                                       @NotNull java.lang.String mediaCharacteristic,
                                                                       @NotNull
                                                                       @NotNull AVMutableMovie.Block_loadTracksWithMediaCharacteristicCompletionHandler completionHandler)
        loadTracksWithMediaCharacteristic:completionHandler: Loads an array of AVMutableMovieTracks of the asset that present media with the specified characteristic.
        Parameters:
        mediaCharacteristic - The media characteristic according to which AVAsset filters its AVMutableMovieTracks. (Media characteristics are defined in AVMediaFormat.h.)
        completionHandler - A block that is called when the loading is finished, with either the loaded tracks (which may be empty if no tracks with the specified characteristic are available) or an error. API-Since: 15.0
      • loadTracksWithMediaTypeCompletionHandler

        public void loadTracksWithMediaTypeCompletionHandler​(@NotNull
                                                             @NotNull java.lang.String mediaType,
                                                             @NotNull
                                                             @NotNull AVMutableMovie.Block_loadTracksWithMediaTypeCompletionHandler completionHandler)
        loadTracksWithMediaType:completionHandler: Loads an array of AVMutableMovieTracks of the asset that present media of the specified media type.
        Parameters:
        mediaType - The media type according to which AVAsset filters its AVMutableMovieTracks. (Media types are defined in AVMediaFormat.h.)
        completionHandler - A block that is called when the loading is finished, with either the loaded tracks (which may be empty if no tracks of the specified media type are available) or an error. API-Since: 15.0
      • chapterMetadataGroupsBestMatchingPreferredLanguages

        @NotNull
        public @NotNull NSArray<? extends AVTimedMetadataGroup> chapterMetadataGroupsBestMatchingPreferredLanguages​(@NotNull
                                                                                                                    @NotNull NSArray<java.lang.String> preferredLanguages)
        Description copied from class: AVAsset
        chapterMetadataGroupsBestMatchingPreferredLanguages: Tests, in order of preference, for a match between language identifiers in the specified array of preferred languages and the available chapter locales, and returns the array of chapters corresponding to the first match that's found. Safe to call without blocking when the AVAsset key availableChapterLocales has status AVKeyValueStatusLoaded. Returns an array of AVTimedMetadataGroup objects. Each object in the array always contains an AVMetadataItem representing the chapter title; the timeRange property of the AVTimedMetadataGroup object is equal to the time range of the chapter title item. All of the available chapter metadata is included in the metadata groups, including items with the common key AVMetadataCommonKeyArtwork, if such items are present. Items not carrying chapter titles will be added to an existing AVTimedMetadataGroup object if the time range (timestamp and duration) of the metadata item and that of the metadata group overlaps. The locale of such items need not match the locale of the chapter titles. Further filtering of the metadata items in AVTimedMetadataGroups according to language can be accomplished using +[AVMetadataItem metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:]; filtering of the metadata items according to locale can be accomplished using +[AVMetadataItem metadataItemsFromArray:withLocale:]. . API-Since: 6.0 Deprecated-Since: 100000.0
        Overrides:
        chapterMetadataGroupsBestMatchingPreferredLanguages in class AVAsset
        Parameters:
        preferredLanguages - An array of language identifiers in order of preference, each of which is an IETF BCP 47 (RFC 4646) language identifier. Use +[NSLocale preferredLanguages] to obtain the user's list of preferred languages.
        Returns:
        An NSArray of AVTimedMetadataGroup.
      • chapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeys

        @NotNull
        public @NotNull NSArray<? extends AVTimedMetadataGroup> chapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeys​(@NotNull
                                                                                                                                  @NotNull NSLocale locale,
                                                                                                                                  @Nullable
                                                                                                                                  @Nullable NSArray<java.lang.String> commonKeys)
        Description copied from class: AVAsset
        chapterMetadataGroupsWithTitleLocale:containingItemsWithCommonKeys: Provides an array of chapters. This method returns an array of AVTimedMetadataGroup objects. Each object in the array always contains an AVMetadataItem representing the chapter title; the timeRange property of the AVTimedMetadataGroup object is equal to the time range of the chapter title item. An AVMetadataItem with the specified common key will be added to an existing AVTimedMetadataGroup object if the time range (timestamp and duration) of the metadata item and the metadata group overlaps. The locale of items not carrying chapter titles need not match the specified locale parameter. Further filtering of the metadata items in AVTimedMetadataGroups according to language can be accomplished using +[AVMetadataItem metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:]; filtering of the metadata items according to locale can be accomplished using +[AVMetadataItem metadataItemsFromArray:withLocale:]. API-Since: 4.3 Deprecated-Since: 100000.0
        Overrides:
        chapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeys in class AVAsset
        Parameters:
        locale - Locale of the metadata items carrying chapter titles to be returned (supports the IETF BCP 47 specification).
        commonKeys - Array of common keys of AVMetadataItem to be included; can be nil. AVMetadataCommonKeyArtwork is the only supported key for now.
        Returns:
        An NSArray of AVTimedMetadataGroup.
      • mediaSelectionGroupForMediaCharacteristic

        @Nullable
        public @Nullable AVMediaSelectionGroup mediaSelectionGroupForMediaCharacteristic​(@NotNull
                                                                                         @NotNull java.lang.String mediaCharacteristic)
        Description copied from class: AVAsset
        mediaSelectionGroupForMediaCharacteristic: Provides an instance of AVMediaSelectionGroup that contains one or more options with the specified media characteristic. Becomes callable without blocking when the key @"availableMediaCharacteristicsWithMediaSelectionOptions" has been loaded. If the asset has no AVMediaSelectionGroup containing options with the specified media characteristic, the return value will be nil. Filtering of the options in the returned AVMediaSelectionGroup according to playability, locale, and additional media characteristics can be accomplished using the category AVMediaSelectionOptionFiltering defined on AVMediaSelectionGroup. API-Since: 5.0 Deprecated-Since: 100000.0
        Overrides:
        mediaSelectionGroupForMediaCharacteristic in class AVAsset
        Parameters:
        mediaCharacteristic - A media characteristic for which you wish to obtain the available media selection options. AVMediaCharacteristicAudible, AVMediaCharacteristicLegible, and AVMediaCharacteristicVisual are currently supported. Pass AVMediaCharacteristicAudible to obtain the group of available options for audio media in various languages and for various purposes, such as descriptive audio. Pass AVMediaCharacteristicLegible to obtain the group of available options for subtitles in various languages and for various purposes. Pass AVMediaCharacteristicVisual to obtain the group of available options for video media.
        Returns:
        An instance of AVMediaSelectionGroup. May be nil.
      • metadataForFormat

        @NotNull
        public @NotNull NSArray<? extends AVMetadataItem> metadataForFormat​(@NotNull
                                                                            @NotNull java.lang.String format)
        Description copied from class: AVAsset
        metadataForFormat: Provides an NSArray of AVMetadataItems, one for each metadata item in the container of the specified format; can subsequently be filtered according to language via +[AVMetadataItem metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:], according to locale via +[AVMetadataItem metadataItemsFromArray:withLocale:], or according to key via +[AVMetadataItem metadataItemsFromArray:withKey:keySpace:]. Becomes callable without blocking when the key @"availableMetadataFormats" has been loaded API-Since: 4.0 Deprecated-Since: 100000.0
        Overrides:
        metadataForFormat in class AVAsset
        Parameters:
        format - The metadata format for which items are requested.
        Returns:
        An NSArray containing AVMetadataItems; may be empty if there is no metadata of the specified format.
      • unusedTrackID

        public int unusedTrackID()
        Description copied from class: AVAsset
        API-Since: 4.0 Deprecated-Since: 100000.0
        Overrides:
        unusedTrackID in class AVAsset
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.