Class AVURLAsset

    • Constructor Detail

      • AVURLAsset

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

      • URLAssetWithURLOptions

        public static AVURLAsset URLAssetWithURLOptions​(@NotNull
                                                        @NotNull NSURL URL,
                                                        @Nullable
                                                        @Nullable NSDictionary<java.lang.String,​?> options)
        URLAssetWithURL:options: Returns an instance of AVURLAsset for inspection of a media resource.
        Parameters:
        URL - An instance of NSURL that references a media resource.
        options - An instance of NSDictionary that contains keys for specifying options for the initialization of the AVURLAsset. See AVURLAssetPreferPreciseDurationAndTimingKey and AVURLAssetReferenceRestrictionsKey above.
        Returns:
        An instance of AVURLAsset.
      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

        public static AVURLAsset assetWithURL​(@NotNull
                                              @NotNull NSURL URL)
      • audiovisualMIMETypes

        @NotNull
        public static @NotNull NSArray<java.lang.String> audiovisualMIMETypes()
        audiovisualMIMETypes Provides the MIME types the AVURLAsset class understands.
        Returns:
        An NSArray of NSStrings containing MIME types the AVURLAsset class understands. API-Since: 5.0
      • audiovisualTypes

        @NotNull
        public static @NotNull NSArray<java.lang.String> audiovisualTypes()
        audiovisualTypes Provides the file types the AVURLAsset class understands.
        Returns:
        An NSArray of UTIs identifying the file types the AVURLAsset class understands. API-Since: 5.0
      • automaticallyNotifiesObserversForKey

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

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

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

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

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

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

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

        public static long hash_static()
      • instanceMethodSignatureForSelector

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

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

        public static boolean isPlayableExtendedMIMEType​(@NotNull
                                                         @NotNull java.lang.String extendedMIMEType)
        isPlayableExtendedMIMEType: Returns YES if asset is playable with the codec(s) and container type specified in extendedMIMEType. Returns NO otherwise. On releases prior to macOS 14, iOS 17, tvOS 17, and watchOS 10, regardless of the specified MIME type this method interprets all codecs parameters according to the ISO family syntax defined by RFC 6381 and evaluates playability according to whether the indicated codecs are supported when carried in container formats that conform to the ISO BMFF specification, such as the MPEG-4 file format. On releases starting with macOS 14, iOS 17, tvOS 17, and watchOS 10, this method interprets codecs parameters according to the syntax and namespace determined by the specified MIME type and evaluates playability according to whether the indicated codecs are supported when carried in the container format indicated by that MIME type. Codecs parameters for each of the following MIME types are supported: video/mp4 (per RFC 6381, ISO/IEC 14496-15 Annex E, et al), video/quicktime (RFC 6381 et al), video/mp2t (ISO/IEC 13818-1), audio/vnd.wave (RFC 2361), audio/aiff (using the CoreAudio AudioFormatID namespace), audio/x-caf (also using the CoreAudio AudioFormatID namespace), and audio/mpeg (e.g. codecs="mp3"). MIME types supported as alternatives for the same container formats, e.g audio/mp4, are equivalently treated. If the indicated MIME type defines no supported syntax and namespace for codecs parameters, when any codecs parameter is present this method returns NO. API-Since: 5.0
        Parameters:
        extendedMIMEType -
        Returns:
        YES or 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)
      • 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()
      • URL

        @NotNull
        public @NotNull NSURL URL()
        [@property] URL Indicates the URL with which the instance of AVURLAsset was initialized.
      • assetCache

        @Nullable
        public @Nullable AVAssetCache assetCache()
        [@property] assetCache Provides access to an instance of AVAssetCache to use for inspection of locally cached media data. Will be nil if an asset has not been configured to store or access media data from disk. API-Since: 10.0
      • compatibleTrackForCompositionTrack

        @Nullable
        @Deprecated
        public @Nullable AVAssetTrack compatibleTrackForCompositionTrack​(@NotNull
                                                                         @NotNull AVCompositionTrack compositionTrack)
        Deprecated.
        compatibleTrackForCompositionTrack: Provides a reference to an AVAssetTrack of the target from which any timeRange can be inserted into a mutable composition track (via -[AVMutableCompositionTrack insertTimeRange:ofTrack:atTime:error:]). Finds a track of the target with content that can be accommodated by the specified composition track. The logical complement of -[AVMutableComposition mutableTrackCompatibleWithTrack:]. API-Since: 4.0 Deprecated-Since: 100000.0
        Parameters:
        compositionTrack - The composition track for which a compatible AVAssetTrack is requested.
        Returns:
        an instance of AVAssetTrack
      • initWithURLOptions

        public AVURLAsset initWithURLOptions​(@NotNull
                                             @NotNull NSURL URL,
                                             @Nullable
                                             @Nullable NSDictionary<java.lang.String,​?> options)
        initWithURL:options: Initializes an instance of AVURLAsset for inspection of a media resource.
        Parameters:
        URL - An instance of NSURL that references a media resource.
        options - An instance of NSDictionary that contains keys for specifying options for the initialization of the AVURLAsset. See AVURLAssetPreferPreciseDurationAndTimingKey and AVURLAssetReferenceRestrictionsKey above.
        Returns:
        An instance of AVURLAsset.
      • resourceLoader

        @NotNull
        public @NotNull AVAssetResourceLoader resourceLoader()
        [@property] resourceLoader Provides access to an instance of AVAssetResourceLoader, which offers limited control over the handling of URLs that may be loaded in the course of performing operations on the asset, such as playback. The loading of file URLs cannot be mediated via use of AVAssetResourceLoader. Note that copies of an AVAsset will vend the same instance of AVAssetResourceLoader. API-Since: 6.0
      • mayRequireContentKeysForMediaDataProcessing

        public boolean mayRequireContentKeysForMediaDataProcessing()
        Description copied from interface: AVContentKeyRecipient
        [@property] mayRequireContentKeysForMediaDataProcessing Indicates whether the receiver may require decryption keys for media data in order to enable processing. When the value of mayRequireContentKeysForMediaDataProcessing is YES, adding the receiver to an AVContentKeySession allows it to employ the session's already existing keys and also enables the handling of new key requests by the AVContentKeySession's delegate.
        Specified by:
        mayRequireContentKeysForMediaDataProcessing in interface AVContentKeyRecipient
      • itemProviderVisibilityForRepresentationWithTypeIdentifier_static

        public static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static​(@NotNull
                                                                                            @NotNull java.lang.String typeIdentifier)
      • itemProviderVisibilityForRepresentationWithTypeIdentifier

        public long itemProviderVisibilityForRepresentationWithTypeIdentifier​(@NotNull
                                                                              @NotNull java.lang.String typeIdentifier)
      • objectWithItemProviderDataTypeIdentifierError

        @Nullable
        public static @Nullable AVURLAsset objectWithItemProviderDataTypeIdentifierError​(@NotNull
                                                                                         @NotNull NSData data,
                                                                                         @NotNull
                                                                                         @NotNull java.lang.String typeIdentifier,
                                                                                         @Nullable
                                                                                         @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
      • readableTypeIdentifiersForItemProvider

        @NotNull
        public static @NotNull NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
      • writableTypeIdentifiersForItemProvider_static

        @NotNull
        public static @NotNull NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
      • writableTypeIdentifiersForItemProvider

        @NotNull
        public @NotNull NSArray<java.lang.String> writableTypeIdentifiersForItemProvider()
      • contentKeySessionDidProvideContentKey

        public void contentKeySessionDidProvideContentKey​(@NotNull
                                                          @NotNull AVContentKeySession contentKeySession,
                                                          @NotNull
                                                          @NotNull AVContentKey contentKey)
        Description copied from interface: AVContentKeyRecipient
        contentKeySession:didProvideContentKey: Informs the receiver that an AVContentKey has been obtained as the result of an invocation of -[AVContentKeyRequest processContentKeyResponse:]. The recipient may employ the AVContentKey for use with objects that support manual attachment of keys, such as CMSampleBuffer via an invocation of AVSampleBufferAttachContentKey. API-Since: 14.5
        Specified by:
        contentKeySessionDidProvideContentKey in interface AVContentKeyRecipient
      • findCompatibleTrackForCompositionTrackCompletionHandler

        public void findCompatibleTrackForCompositionTrackCompletionHandler​(@NotNull
                                                                            @NotNull AVCompositionTrack compositionTrack,
                                                                            @NotNull
                                                                            @NotNull AVURLAsset.Block_findCompatibleTrackForCompositionTrackCompletionHandler completionHandler)
        findCompatibleTrackForCompositionTrack:completionHandler: Loads a reference to an AVAssetTrack of the target from which any timeRange can be inserted into a mutable composition track (via -[AVMutableCompositionTrack insertTimeRange:ofTrack:atTime:error:]). Finds a track of the target with content that can be accommodated by the specified composition track. The logical complement of -[AVMutableComposition mutableTrackCompatibleWithTrack:]. API-Since: 15.0
        Parameters:
        compositionTrack - The composition track for which a compatible AVAssetTrack is requested.
        completionHandler - A block that is invoked when loading is complete, vending an instance of AVAssetTrack or an error.
      • variants

        @NotNull
        public @NotNull NSArray<? extends AVAssetVariant> variants()
        [@property] variants Provides an array of AVAssetVariants contained in the asset Some variants may not be playable according to the current device configuration. API-Since: 15.0
      • httpSessionIdentifier

        @NotNull
        public @NotNull NSUUID httpSessionIdentifier()
        [@property] httpSessionIdentifier Provides the identifier that's automatically included in any HTTP request issued on behalf of this asset in the HTTP header field "X-Playback-Session-Id". The value is an NSUUID from which the UUID string can be obtained. Note that copies of an AVURLAsset vend an equivalent httpSessionIdentifier. API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.