Class AVPlayerViewController

All Implemented Interfaces:
NSCoding, NSExtensionRequestHandling, NSObjectProtocol, UIActivityItemsConfigurationProviding, UIAppearanceContainer, UIContentContainer, UIFocusEnvironment, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UIStateRestoring, UITraitEnvironment, UIUserActivityRestoring, ObjCProtocol

public class AVPlayerViewController
extends UIViewController
  • Constructor Details

    • AVPlayerViewController

      public AVPlayerViewController()
    • AVPlayerViewController

      protected AVPlayerViewController​(NSObject.Handle h, long handle)
    • AVPlayerViewController

      protected AVPlayerViewController​(NSObject.SkipInit skipInit)
    • AVPlayerViewController

      public AVPlayerViewController​(String nibNameOrNil, NSBundle nibBundleOrNil)
    • AVPlayerViewController

      public AVPlayerViewController​(NSCoder coder)
  • Method Details

    • getPlayer

      public AVPlayer getPlayer()
    • setPlayer

      public void setPlayer​(AVPlayer v)
    • showsPlaybackControls

      public boolean showsPlaybackControls()
    • setShowsPlaybackControls

      public void setShowsPlaybackControls​(boolean v)
    • showsTimecodes

      public boolean showsTimecodes()
      Since:
      Available in iOS 13.0 and later.
    • setShowsTimecodes

      public void setShowsTimecodes​(boolean v)
      Since:
      Available in iOS 13.0 and later.
    • getVideoGravity

      public AVLayerVideoGravity getVideoGravity()
    • setVideoGravity

      public void setVideoGravity​(AVLayerVideoGravity v)
    • isReadyForDisplay

      public boolean isReadyForDisplay()
    • getVideoBounds

      public CGRect getVideoBounds()
    • getContentOverlayView

      public UIView getContentOverlayView()
    • allowsPictureInPicturePlayback

      public boolean allowsPictureInPicturePlayback()
      Since:
      Available in iOS 9.0 and later.
    • setAllowsPictureInPicturePlayback

      public void setAllowsPictureInPicturePlayback​(boolean v)
      Since:
      Available in iOS 9.0 and later.
    • canStartPictureInPictureAutomaticallyFromInline

      public boolean canStartPictureInPictureAutomaticallyFromInline()
      Since:
      Available in iOS 14.2 and later.
    • setCanStartPictureInPictureAutomaticallyFromInline

      public void setCanStartPictureInPictureAutomaticallyFromInline​(boolean v)
      Since:
      Available in iOS 14.2 and later.
    • isUpdatesNowPlayingInfoCenter

      public boolean isUpdatesNowPlayingInfoCenter()
      Since:
      Available in iOS 10.0 and later.
    • setUpdatesNowPlayingInfoCenter

      public void setUpdatesNowPlayingInfoCenter​(boolean v)
      Since:
      Available in iOS 10.0 and later.
    • isEntersFullScreenWhenPlaybackBegins

      public boolean isEntersFullScreenWhenPlaybackBegins()
      Since:
      Available in iOS 11.0 and later.
    • setEntersFullScreenWhenPlaybackBegins

      public void setEntersFullScreenWhenPlaybackBegins​(boolean v)
      Since:
      Available in iOS 11.0 and later.
    • isExitsFullScreenWhenPlaybackEnds

      public boolean isExitsFullScreenWhenPlaybackEnds()
      Since:
      Available in iOS 11.0 and later.
    • setExitsFullScreenWhenPlaybackEnds

      public void setExitsFullScreenWhenPlaybackEnds​(boolean v)
      Since:
      Available in iOS 11.0 and later.
    • requiresLinearPlayback

      public boolean requiresLinearPlayback()
      Since:
      Available in iOS 11.0 and later.
    • setRequiresLinearPlayback

      public void setRequiresLinearPlayback​(boolean v)
      Since:
      Available in iOS 11.0 and later.
    • getPixelBufferAttributes

      public NSDictionary<NSString,​?> getPixelBufferAttributes()
      Since:
      Available in iOS 9.0 and later.
    • setPixelBufferAttributes

      public void setPixelBufferAttributes​(NSDictionary<NSString,​?> v)
      Since:
      Available in iOS 9.0 and later.
    • getDelegate

      public AVPlayerViewControllerDelegate getDelegate()
      Since:
      Available in iOS 9.0 and later.
    • setDelegate

      public void setDelegate​(AVPlayerViewControllerDelegate v)
      Since:
      Available in iOS 9.0 and later.
    • playPrerollAd

      public void playPrerollAd​(VoidBlock1<NSError> completionHandler)
      Since:
      Available in iOS 8.0 and later.
    • cancelPreroll

      public void cancelPreroll()
      Since:
      Available in iOS 8.0 and later.
    • preparePrerollAds

      public static void preparePrerollAds()
      Since:
      Available in iOS 8.0 and later.