Class AVMediaSelectionOption

    • Constructor Detail

      • AVMediaSelectionOption

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

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

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

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

        public static long hash_static()
      • instanceMethodSignatureForSelector

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

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

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

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

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

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

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

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static long version_static()
      • associatedMediaSelectionOptionInMediaSelectionGroup

        public AVMediaSelectionOption associatedMediaSelectionOptionInMediaSelectionGroup​(AVMediaSelectionGroup mediaSelectionGroup)
        associatedMediaSelectionOptionInMediaSelectionGroup If a media selection option in another group is associated with the specified option, returns a reference to the associated option. Audible media selection options often have associated legible media selection options; in particular, audible options are typically associated with forced-only subtitle options with the same locale. See AVMediaCharacteristicContainsOnlyForcedSubtitles in AVMediaFormat.h for a discussion of forced-only subtitles.
        Parameters:
        mediaSelectionGroup - A media selection group in which an associated option is to be sought.
        Returns:
        An instance of AVMediaSelectionOption.
      • availableMetadataFormats

        public NSArray<java.lang.String> availableMetadataFormats()
        [@property] availableMetadataFormats Provides an NSArray of NSStrings, each representing a metadata format that contains metadata associated with the option (e.g. ID3, iTunes metadata, etc.). Metadata formats are defined in AVMetadataFormat.h.
      • commonMetadata

        public NSArray<? extends AVMetadataItem> commonMetadata()
        [@property] commonMetadata Provides an array of AVMetadataItems for each common metadata key for which a value is available. The array of AVMetadataItems can 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:]. Example: to obtain the name (or title) of a media selection option in any of the user's preferred languages. NSString *title = nil; NSArray *titles = [AVMetadataItem metadataItemsFromArray:[mediaSelectionOption commonMetadata] withKey:AVMetadataCommonKeyTitle keySpace:AVMetadataKeySpaceCommon]; if ([titles count] > 0) { // Try to get a title that matches one of the user's preferred languages. NSArray *titlesForPreferredLanguages = [AVMetadataItem metadataItemsFromArray:titles filteredAndSortedAccordingToPreferredLanguages:[NSLocale preferredLanguages]]; if ([titlesForPreferredLanguages count] > 0) { title = [[titlesForPreferredLanguages objectAtIndex:0] stringValue]; } // No matches in any of the preferred languages. Just use the primary title metadata we find. if (title == nil) { title = [[titles objectAtIndex:0] stringValue]; } }
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • displayName

        public java.lang.String displayName()
        [@property] displayName Provides an NSString suitable for display using the current system locale. May use this option's common metadata, media characteristics and locale properties in addition to the current system locale to formulate an NSString intended for display. In the event that common metadata is not available in the specified locale, displayName will fall back to considering locales with the multilingual ("mul") then undetermined ("und") locale identifiers. For a display name strictly with the specified locale use displayNameWithLocale: instead.
      • displayNameWithLocale

        public java.lang.String displayNameWithLocale​(NSLocale locale)
        displayNameWithLocale Provides an NSString suitable for display. May use this option's common metadata, media characteristics and locale properties in addition to the provided locale to formulate an NSString intended for display. Will only consider common metadata with the specified locale.
        Parameters:
        locale - Localize manufactured portions of the string using the specificed locale.
      • extendedLanguageTag

        public java.lang.String extendedLanguageTag()
        [@property] extendedLanguageTag Indicates the RFC 4646 language tag associated with the option. May be nil.
      • hasMediaCharacteristic

        public boolean hasMediaCharacteristic​(java.lang.String mediaCharacteristic)
        hasMediaCharacteristic: Reports whether the media selection option includes media with the specified media characteristic.
        Parameters:
        mediaCharacteristic - The media characteristic of interest, e.g. AVMediaCharacteristicVisual, AVMediaCharacteristicAudible, AVMediaCharacteristicLegible, etc.
        Returns:
        YES if the media selection option includes media with the specified characteristic, otherwise NO.
      • isPlayable

        public boolean isPlayable()
        [@property] playable Indicates whether a media selection option is playable. If the media data associated with the option cannot be decoded or otherwise rendered, playable is NO.
      • locale

        public NSLocale locale()
        [@property] locale Indicates the locale for which the media option was authored. Use -[NSLocale objectForKey:NSLocaleLanguageCode] to obtain the language code of the locale. See NSLocale.h for additional information.
      • makeNowPlayingInfoLanguageOption

        public MPNowPlayingInfoLanguageOption makeNowPlayingInfoLanguageOption()
        Will create a language option from the AVMediaSelectionOption Returns nil if the AVMediaSelectionOption does not represent an Audible or Legible selection option.
      • mediaSubTypes

        public NSArray<? extends NSNumber> mediaSubTypes()
        [@property] mediaSubTypes The mediaSubTypes of the media data associated with the option. An NSArray of NSNumbers carrying four character codes (of type FourCharCode) as defined in CoreAudioTypes.h for audio media and in CMFormatDescription.h for video media. Also see CMFormatDescriptionGetMediaSubType in CMFormatDescription.h for more information about media subtypes. Note that if no information is available about the encoding of the media presented when a media option is selected, the value of mediaSubTypes will be an empty array. This can occur, for example, with streaming media. In these cases the value of mediaSubTypes should simply not be used as a criteria for selection.
      • mediaType

        public java.lang.String mediaType()
        [@property] mediaType The media type of the media data, e.g. AVMediaTypeAudio, AVMediaTypeSubtitle, etc.
      • metadataForFormat

        public NSArray<? extends AVMetadataItem> metadataForFormat​(java.lang.String format)
        metadataForFormat: Provides an NSArray of AVMetadataItems, one for each metadata item in the container of the specified format.
        Parameters:
        format - The metadata format for which items are requested.
        Returns:
        An NSArray containing AVMetadataItems.
      • propertyList

        public java.lang.Object propertyList()
        propertyList Returns a serializable property list that can be used to obtain an instance of AVMediaSelectionOption representing the same option as the receiver via -[AVMediaSelectionGroup mediaSelectionOptionWithPropertyList:].
        Returns:
        A serializable property list that's sufficient to identify the option within its group. For serialization utilities, see NSPropertyList.h.