Class AVQueuePlayer

  • All Implemented Interfaces:
    NSObject

    public class AVQueuePlayer
    extends AVPlayer
    • Constructor Detail

      • AVQueuePlayer

        protected AVQueuePlayer​(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()
      • queuePlayerWithItems

        public static AVQueuePlayer queuePlayerWithItems​(NSArray<? extends AVPlayerItem> items)
        queuePlayerWithItems: Creates an instance of AVQueuePlayer and enqueues the AVPlayerItems from the specified array.
        Parameters:
        items - An NSArray of AVPlayerItems with which to populate the player's queue initially.
        Returns:
        An instance of AVQueuePlayer.
      • 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()
      • advanceToNextItem

        public void advanceToNextItem()
        advanceToNextItem Ends playback of the current item and initiates playback of the next item in the player's queue. Removes the current item from the play queue.
      • canInsertItemAfterItem

        public boolean canInsertItemAfterItem​(AVPlayerItem item,
                                              AVPlayerItem afterItem)
        canInsertItem:afterItem: Tests whether an AVPlayerItem can be inserted into the player's queue. Note that adding the same AVPlayerItem to an AVQueuePlayer at more than one position in the queue is not supported.
        Parameters:
        item - The AVPlayerItem to be tested.
        afterItem - The item that the item to be tested is to follow in the queue. Pass nil to test whether the item can be appended to the queue.
        Returns:
        An indication of whether the item can be inserted into the queue after the specified item.
      • initWithItems

        public AVQueuePlayer initWithItems​(NSArray<? extends AVPlayerItem> items)
        initWithItems: Initializes an instance of AVQueuePlayer by enqueueing the AVPlayerItems from the specified array.
        Parameters:
        items - An NSArray of AVPlayerItems with which to populate the player's queue initially.
        Returns:
        An instance of AVQueuePlayer.
      • initWithPlayerItem

        public AVQueuePlayer initWithPlayerItem​(AVPlayerItem item)
        Description copied from class: AVPlayer
        initWithPlayerItem: Create an AVPlayer that plays a single audiovisual item. Useful in order to play items for which an AVAsset has previously been created. See -[AVPlayerItem initWithAsset:].
        Overrides:
        initWithPlayerItem in class AVPlayer
        Returns:
        An instance of AVPlayer
      • initWithURL

        public AVQueuePlayer initWithURL​(NSURL URL)
        Description copied from class: AVPlayer
        initWithURL: Initializes an AVPlayer that plays a single audiovisual resource referenced by URL. Implicitly creates an AVPlayerItem. Clients can obtain the AVPlayerItem as it becomes the player's currentItem.
        Overrides:
        initWithURL in class AVPlayer
        Returns:
        An instance of AVPlayer
      • insertItemAfterItem

        public void insertItemAfterItem​(AVPlayerItem item,
                                        AVPlayerItem afterItem)
        insertItem:afterItem: Places an AVPlayerItem after the specified item in the queue.
        Parameters:
        item - The item to be inserted.
        afterItem - The item that the newly inserted item should follow in the queue. Pass nil to append the item to the queue.
      • items

        public NSArray<? extends AVPlayerItem> items()
        items Provides an array of the currently enqueued items.
        Returns:
        An NSArray containing the enqueued AVPlayerItems.
      • removeAllItems

        public void removeAllItems()
        removeAllItems Removes all items from the queue. Stops playback by the target.
      • removeItem

        public void removeItem​(AVPlayerItem item)
        removeItem: Removes an AVPlayerItem from the queue. If the item to be removed is currently playing, has the same effect as -advanceToNextItem.
        Parameters:
        item - The item to be removed.
      • availableHDRModes

        public static long availableHDRModes()
      • eligibleForHDRPlayback

        public static boolean eligibleForHDRPlayback()