Class AVMovie

    • Constructor Detail

      • AVMovie

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

      • URL

        @Nullable
        public @Nullable NSURL URL()
        [@property] URL The URL with which the instance of AVMovie was initialized; may be nil.
      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static AVMovie alloc()
      • allocWithZone

        public static AVMovie allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • assetWithURL

        public static AVMovie assetWithURL​(@NotNull
                                           @NotNull NSURL URL)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • canContainMovieFragments

        public boolean canContainMovieFragments()
        [@property] canContainMovieFragments Indicates whether the movie file is capable of being extended by fragments. The value of this property is YES if an 'mvex' box is present in the 'moov' box. The 'mvex' box is necessary in order to signal the possible presence of later 'moof' boxes.
      • 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()
      • containsMovieFragments

        public boolean containsMovieFragments()
        [@property] containsMovieFragments Indicates whether the movie file is extended by at least one movie fragment. The value of this property is YES if canContainMovieFragments is YES and at least one 'moof' box is present after the 'moov' box. API-Since: 13.0
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
        Overrides:
        copyWithZone in class AVAsset
      • data

        @Nullable
        public @Nullable NSData data()
        [@property] data The data block with which the instance of AVMovie was initialized; may be nil. API-Since: 13.0
      • 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 by default. API-Since: 13.0
      • description_static

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

        public static long hash_static()
      • initWithDataOptions

        public AVMovie initWithDataOptions​(@NotNull
                                           @NotNull NSData data,
                                           @Nullable
                                           @Nullable NSDictionary<java.lang.String,​?> options)
        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
        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
      • initWithURLOptions

        public AVMovie initWithURLOptions​(@NotNull
                                          @NotNull NSURL URL,
                                          @Nullable
                                          @Nullable NSDictionary<java.lang.String,​?> options)
        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.
        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
      • instanceMethodSignatureForSelector

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

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

        public boolean isCompatibleWithFileType​(@NotNull
                                                @NotNull java.lang.String fileType)
        isCompatibleWithFileType: Indicates whether a movie header for the AVMovie object can be created for the specified file type. This method returns a BOOL that indicates whether a movie header of the specified type can be created for the receiver. For example, this method returns NO if the movie contains tracks whose media types or media subtypes are not allowed by the specified file type. API-Since: 13.0
        Parameters:
        fileType - A UTI indicating a movie file format (e.g. AVFileTypeQuickTimeMovie for a QuickTime movie).
      • 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)
      • movieHeaderWithFileTypeError

        @Nullable
        public @Nullable NSData movieHeaderWithFileTypeError​(@NotNull
                                                             @NotNull java.lang.String fileType,
                                                             @Nullable
                                                             @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        movieHeaderWithFileType:error: Creates an NSData object containing the movie header of the AVMovie object. The movie header will be a pure reference movie, with no base URL, suitable for use on the pasteboard. API-Since: 13.0
        Parameters:
        fileType - A UTI indicating the specific file format of the movie header (e.g. AVFileTypeQuickTimeMovie for a QuickTime movie).
        outError - If an error occurs reading the movie header, describes the nature of the failure.
        Returns:
        An NSData object.
      • movieTypes

        @NotNull
        public static @NotNull NSArray<java.lang.String> movieTypes()
        movieTypes Provides the file types the AVMovie class understands.
        Returns:
        An NSArray of UTIs identifying the file types the AVMovie class understands.
      • movieWithDataOptions

        public static AVMovie movieWithDataOptions​(@NotNull
                                                   @NotNull NSData data,
                                                   @Nullable
                                                   @Nullable NSDictionary<java.lang.String,​?> options)
        movieWithData: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; this might include movie headers on the pasteboard (which do not contain media data). 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
        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
      • movieWithURLOptions

        public static AVMovie movieWithURLOptions​(@NotNull
                                                  @NotNull NSURL URL,
                                                  @Nullable
                                                  @Nullable NSDictionary<java.lang.String,​?> options)
        movieWithURL: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.
        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
      • mutableCopyWithZone

        @NotNull
        public @NotNull java.lang.Object mutableCopyWithZone​(@Nullable
                                                             @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        mutableCopyWithZone in interface NSMutableCopying
      • new_objc

        public static AVMovie 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()
      • trackWithTrackID

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

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

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

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

        public static long version_static()
      • writeMovieHeaderToURLFileTypeOptionsError

        public boolean writeMovieHeaderToURLFileTypeOptionsError​(@NotNull
                                                                 @NotNull NSURL URL,
                                                                 @NotNull
                                                                 @NotNull java.lang.String fileType,
                                                                 long options,
                                                                 @Nullable
                                                                 @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        writeMovieHeaderToURL:fileType:options:error: Writes the movie header to a destination URL. Note that modifications to instances of AVMutableMovie, to their constituent AVMutableMovieTracks, or to their collections of metadata are committed to storage when their movie headers are written. API-Since: 13.0
        Parameters:
        URL - An NSURL object indicating where to write the movie header.
        fileType - A UTI indicating the specific file format (e.g. AVFileTypeQuickTimeMovie for a QuickTime movie).
        options - An NSUInteger whose bits specify options for the writing of the movie header. See AVMovieWritingOptions above.
        outError - If an error occurs writing the movie header, describes the nature of the failure.
      • loadTrackWithTrackIDCompletionHandler

        public void loadTrackWithTrackIDCompletionHandler​(int trackID,
                                                          @NotNull
                                                          @NotNull AVMovie.Block_loadTrackWithTrackIDCompletionHandler completionHandler)
        loadTrackWithTrackID:completionHandler: Loads an instance of AVMovieTrack that represents the track of the specified trackID.
        Parameters:
        trackID - The trackID of the requested AVMovieTrack.
        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 AVMovie.Block_loadTracksWithMediaCharacteristicCompletionHandler completionHandler)
        loadTracksWithMediaCharacteristic:completionHandler: Loads an array of AVMovieTracks of the asset that present media with the specified characteristic.
        Parameters:
        mediaCharacteristic - The media characteristic according to which AVAsset filters its AVMovieTracks. (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 AVMovie.Block_loadTracksWithMediaTypeCompletionHandler completionHandler)
        loadTracksWithMediaType:completionHandler: Loads an array of AVMovieTracks of the asset that present media of the specified media type.
        Parameters:
        mediaType - The media type according to which AVAsset filters its AVMovieTracks. (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
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.