Class AVPlayerVideoOutput

  • All Implemented Interfaces:
    NSObject

    public class AVPlayerVideoOutput
    extends NSObject
    AVPlayerVideoOutput AVPlayerVideoOutput offers a way to attach to an AVPlayer and receive video frames and video-related data vended through CMTaggedBufferGroups. AVPlayerVideoOutput can be attached to an AVPlayer using AVPlayer's method addVideoOutput: Note: An AVPlayerVideoOutput can only be attached to a single player at a time, attempting to attach to multiple player will result in an exception being thrown. API-Since: 17.2
    • Constructor Detail

      • AVPlayerVideoOutput

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static AVPlayerVideoOutput 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()
      • copyTaggedBufferGroupForHostTimePresentationTimeStampActiveConfiguration

        @Nullable
        public @Nullable CMTaggedBufferGroupRef copyTaggedBufferGroupForHostTimePresentationTimeStampActiveConfiguration​(CMTime hostTime,
                                                                                                                         @Nullable
                                                                                                                         @Nullable CMTime presentationTimeStampOut,
                                                                                                                         @Nullable
                                                                                                                         @Nullable org.moe.natj.general.ptr.Ptr<AVPlayerVideoOutputConfiguration> activeConfigurationOut)
        copyTaggedBufferGroupForHostTime:presentationTimeStamp:activeConfiguration Retrieves a tagged buffer group that is appropriate for display at the specified host time. The client is responsible for releasing the returned CMTaggedBufferGroup.
        Parameters:
        hostTime - A CMTime that expresses a desired host time.
        presentationTimeStamp - On return points to a CMTime whose value is the presentation time in terms of the corresponding AVPlayerItem's timebase for the copied tagged buffer group, or kCMTimeInvalid if no sample is available for the provided hostTime. Note: This timestamp is in terms of the timebase of the AVPlayerItem for which this sample is associated.
        activeConfiguration - On return points to the active configuration associated with the copied tagged buffer group, or nil, if no sample is available for the provided hostTime.
        Returns:
        A tagged buffer group for the specified host time if a sample is available, and NULL otherwise.
      • 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()
      • initWithSpecification

        public AVPlayerVideoOutput initWithSpecification​(@NotNull
                                                         @NotNull AVVideoOutputSpecification specification)
        initWithSpecification: Creates an instance of AVPlayerVideoOutput, initialized with the specified video output specification. Pixel buffer attributes will be selected from the input AVVideoOutputSpecification based on the data channels selected for an item. If no pixel buffer attributes were set for the selected tag collection, then the default pixel buffer attributes from the AVVideoOutputSpecification will be used if those were set.
        Parameters:
        specification - An instance of AVVideoOutputSpecification, used to recommend data channels to the AVPlayer associated with this AVPlayerVideoOutput. The tag collections owned by the AVVideoOutputSpecification will be given a priority based on their position in the array which they are held by AVVideoOutputSpecification, meaning position i takes priority over position i+1. This means that the player will first check if the tag collection at index 0 matches the shape of the current item's data channels. If the item's data channels would not be able satisfy the shape of the requested tag collection, it will fall back to the next collection and repeat this process. This continues until a tag collection or set of tag collection can be selected, otherwise if no collections match the shape of the item’s data channels then samples cannot be vended for that item.
        Returns:
        An instance of AVPlayerVideoOutput.
      • 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

        @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()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • version_static

        public static long version_static()