Package apple.avkit
Class AVPlayerViewController
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIResponder
-
- apple.uikit.UIViewController
-
- apple.avkit.AVPlayerViewController
-
- All Implemented Interfaces:
NSCoding,NSExtensionRequestHandling,NSObject,UIAppearanceContainer,UIContentContainer,UIFocusEnvironment,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UIStateRestoring,UITraitEnvironment,UIUserActivityRestoring
public class AVPlayerViewController extends UIViewController
AVPlayerViewController AVPlayerViewController is a subclass of UIViewController that can be used to display the visual content of an AVPlayer object and the standard playback controls.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAVPlayerViewController.Block_playPrerollAdWithCompletionHandler-
Nested classes/interfaces inherited from class apple.uikit.UIViewController
UIViewController.Block_dismissViewControllerAnimatedCompletion, UIViewController.Block_presentViewControllerAnimatedCompletion, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_4, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_5
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAVPlayerViewController(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static AVPlayerViewControlleralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)booleanallowsPictureInPicturePlayback()[@property] allowsPictureInPicturePlayback Whether or not the receiver allows Picture in Picture playback.static voidattemptRotationToDeviceOrientation()static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)voidcancelPreroll()-cancelPreroll Cancel pre-roll video ad playback.static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)booleancanStartPictureInPictureAutomaticallyFromInline()[@property] canStartPictureInPictureAutomaticallyFromInline Indicates whether Picture in Picture should be allowed to start automatically when transitioning to background when the receiver’s content is embedded inline.static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static voidclearTextInputContextIdentifier(java.lang.String identifier)UIViewcontentOverlayView()[@property] contentOverlayView Use the content overlay view to add additional custom views between the video content and the controls.static java.lang.StringdebugDescription_static()AVPlayerViewControllerDelegatedelegate()[@property] delegate The receiver's delegate.static java.lang.Stringdescription_static()booleanentersFullScreenWhenPlaybackBegins()[@property] entersFullScreenWhenPlaybackBegins Whether or not the receiver automatically enters full screen when the play button is tapped.booleanexitsFullScreenWhenPlaybackEnds()[@property] exitsFullScreenWhenPlaybackEnds Whether or not the receiver automatically exits full screen when playback ends.static longhash_static()AVPlayerViewControllerinit()AVPlayerViewControllerinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERAVPlayerViewControllerinitWithNibNameBundle(java.lang.String nibNameOrNil, NSBundle nibBundleOrNil)The designated initializer.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisReadyForDisplay()[@property] readyForDisplay Boolean indicating that the first video frame has been made ready for display for the current item of the associated AVPlayer.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()NSDictionary<java.lang.String,?>pixelBufferAttributes()[@property] pixelBufferAttributes The client requirements for the visual output during playback.AVPlayerplayer()[@property] player The player from which to source the media content for the view controller.voidplayPrerollAdWithCompletionHandler(AVPlayerViewController.Block_playPrerollAdWithCompletionHandler completionHandler)-playPrerollAdWithCompletionHandler: Request playback of a pre-roll video iAd.static voidprepareInterstitialAds()static voidpreparePrerollAds()+preparePrerollAds Inform iAd that the application intends to use AVPlayerViewController's -playPrerollAdWithCompletionHandler: API.booleanrequiresLinearPlayback()[@property] requiresLinearPlayback Disables certain user operations (fast forward, forward skip, and scrubbing).static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAllowsPictureInPicturePlayback(boolean value)[@property] allowsPictureInPicturePlayback Whether or not the receiver allows Picture in Picture playback.voidsetCanStartPictureInPictureAutomaticallyFromInline(boolean value)[@property] canStartPictureInPictureAutomaticallyFromInline Indicates whether Picture in Picture should be allowed to start automatically when transitioning to background when the receiver’s content is embedded inline.voidsetDelegate(AVPlayerViewControllerDelegate value)[@property] delegate The receiver's delegate.voidsetDelegate_unsafe(AVPlayerViewControllerDelegate value)[@property] delegate The receiver's delegate.voidsetEntersFullScreenWhenPlaybackBegins(boolean value)[@property] entersFullScreenWhenPlaybackBegins Whether or not the receiver automatically enters full screen when the play button is tapped.voidsetExitsFullScreenWhenPlaybackEnds(boolean value)[@property] exitsFullScreenWhenPlaybackEnds Whether or not the receiver automatically exits full screen when playback ends.voidsetPixelBufferAttributes(NSDictionary<java.lang.String,?> value)[@property] pixelBufferAttributes The client requirements for the visual output during playback.voidsetPlayer(AVPlayer value)[@property] player The player from which to source the media content for the view controller.voidsetRequiresLinearPlayback(boolean value)[@property] requiresLinearPlayback Disables certain user operations (fast forward, forward skip, and scrubbing).voidsetShowsPlaybackControls(boolean value)[@property] showsPlaybackControls Whether or not the receiver shows playback controls.voidsetShowsTimecodes(boolean value)[@property] showsTimecodes Controls whether timecodes can be displayed in the playback UI when playing media with embedded timecodes.voidsetUpdatesNowPlayingInfoCenter(boolean value)[@property] updatesNowPlayingInfoCenter Whether or not the now playing info center should be updated.static voidsetVersion_static(long aVersion)voidsetVideoGravity(java.lang.String value)[@property] videoGravity A string defining how the video is displayed within an AVPlayerLayer bounds rect.booleanshowsPlaybackControls()[@property] showsPlaybackControls Whether or not the receiver shows playback controls.booleanshowsTimecodes()[@property] showsTimecodes Controls whether timecodes can be displayed in the playback UI when playing media with embedded timecodes.static org.moe.natj.objc.Classsuperclass_static()booleanupdatesNowPlayingInfoCenter()[@property] updatesNowPlayingInfoCenter Whether or not the now playing info center should be updated.static longversion_static()CGRectvideoBounds()[@property] videoBounds The current size and position of the video image as displayed within the receiver's view's bounds.java.lang.StringvideoGravity()[@property] videoGravity A string defining how the video is displayed within an AVPlayerLayer bounds rect.-
Methods inherited from class apple.uikit.UIViewController
addChildViewController, additionalSafeAreaInsets, addKeyCommand, allowedChildViewControllersForUnwindingFromSource, applicationFinishedRestoringState, automaticallyAdjustsScrollViewInsets, automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers, beginAppearanceTransitionAnimated, beginRequestWithExtensionContext, bottomLayoutGuide, canDisplayBannerAds, canPerformUnwindSegueActionFromViewControllerSender, canPerformUnwindSegueActionFromViewControllerWithSender, childViewControllerContainingSegueSource, childViewControllerForHomeIndicatorAutoHidden, childViewControllerForPointerLock, childViewControllerForScreenEdgesDeferringSystemGestures, childViewControllerForStatusBarHidden, childViewControllerForStatusBarStyle, childViewControllers, collapseSecondaryViewControllerForSplitViewController, contentSizeForViewInPopover, decodeRestorableStateWithCoder, definesPresentationContext, didAnimateFirstHalfOfRotationToInterfaceOrientation, didMoveToParentViewController, didReceiveMemoryWarning, didRotateFromInterfaceOrientation, didUpdateFocusInContextWithAnimationCoordinator, disablesAutomaticKeyboardDismissal, dismissModalViewControllerAnimated, dismissMoviePlayerViewControllerAnimated, dismissViewControllerAnimatedCompletion, edgesForExtendedLayout, editButtonItem, encodeRestorableStateWithCoder, encodeWithCoder, endAppearanceTransition, extendedLayoutIncludesOpaqueBars, extensionContext, focusGroupIdentifier, focusItemContainer, hidesBottomBarWhenPushed, interfaceOrientation, interstitialPresentationPolicy, isBeingDismissed, isBeingPresented, isDisplayingBannerAd, isEditing, isModalInPopover, isModalInPresentation, isMovingFromParentViewController, isMovingToParentViewController, isPresentingFullScreenAd, isViewLoaded, loadView, loadViewIfNeeded, modalPresentationCapturesStatusBarAppearance, modalPresentationStyle, modalTransitionStyle, modalViewController, navigationController, navigationItem, nibBundle, nibName, objectRestorationClass, originalContentView, overrideTraitCollectionForChildViewController, overrideUserInterfaceStyle, parentFocusEnvironment, parentViewController, performsActionsWhilePresentingModally, performSegueWithIdentifierSender, popoverPresentationController, preferredContentSize, preferredContentSizeDidChangeForChildContentContainer, preferredFocusedView, preferredFocusEnvironments, preferredInterfaceOrientationForPresentation, preferredScreenEdgesDeferringSystemGestures, preferredStatusBarStyle, preferredStatusBarUpdateAnimation, prefersHomeIndicatorAutoHidden, prefersPointerLocked, prefersStatusBarHidden, prepareForSegueSender, presentationController, presentedViewController, presentingViewController, presentModalViewControllerAnimated, presentMoviePlayerViewControllerAnimated, presentViewControllerAnimatedCompletion, previewActionItems, providesPresentationContextTransitionStyle, registerForPreviewingWithDelegateSourceView, removeFromParentViewController, removeKeyCommand, requestInterstitialAdPresentation, restorationClass, restorationIdentifier, restorationParent, restoresFocusAfterTransition, rotatingFooterView, rotatingHeaderView, searchDisplayController, segueForUnwindingToViewControllerFromViewControllerIdentifier, separateSecondaryViewControllerForSplitViewController, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setCanDisplayBannerAds, setContentSizeForViewInPopover, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditingAnimated, setExtendedLayoutIncludesOpaqueBars, setHidesBottomBarWhenPushed, setInterstitialPresentationPolicy, setModalInPopover, setModalInPresentation, setModalPresentationCapturesStatusBarAppearance, setModalPresentationStyle, setModalTransitionStyle, setNeedsFocusUpdate, setNeedsStatusBarAppearanceUpdate, setNeedsUpdateOfHomeIndicatorAutoHidden, setNeedsUpdateOfPrefersPointerLocked, setNeedsUpdateOfScreenEdgesDeferringSystemGestures, setOverrideTraitCollectionForChildViewController, setOverrideUserInterfaceStyle, setPreferredContentSize, setProvidesPresentationContextTransitionStyle, setRestorationClass, setRestorationClass_unsafe, setRestorationIdentifier, setRestoresFocusAfterTransition, setTabBarItem, setTitle, setToolbarItems, setToolbarItemsAnimated, setTransitioningDelegate, setTransitioningDelegate_unsafe, setView, setViewRespectsSystemMinimumLayoutMargins, setWantsFullScreenLayout, shouldAutomaticallyForwardAppearanceMethods, shouldAutomaticallyForwardRotationMethods, shouldAutorotate, shouldAutorotateToInterfaceOrientation, shouldPerformSegueWithIdentifierSender, shouldPresentInterstitialAd, shouldUpdateFocusInContext, showDetailViewControllerSender, showViewControllerSender, sizeForChildContentContainerWithParentContainerSize, splitViewController, storyboard, supportedInterfaceOrientations, systemLayoutFittingSizeDidChangeForChildContentContainer, systemMinimumLayoutMargins, tabBarController, tabBarItem, targetViewControllerForActionSender, title, toolbarItems, topLayoutGuide, traitCollection, traitCollectionDidChange, transitionCoordinator, transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion, transitioningDelegate, unregisterForPreviewingWithContext, unwindForSegueTowardsViewController, updateFocusIfNeeded, updateViewConstraints, view, viewControllerForUnwindSegueActionFromViewControllerWithSender, viewDidAppear, viewDidDisappear, viewDidLayoutSubviews, viewDidLoad, viewDidUnload, viewIfLoaded, viewLayoutMarginsDidChange, viewRespectsSystemMinimumLayoutMargins, viewSafeAreaInsetsDidChange, viewWillAppear, viewWillDisappear, viewWillLayoutSubviews, viewWillTransitionToSizeWithTransitionCoordinator, viewWillUnload, wantsFullScreenLayout, willAnimateFirstHalfOfRotationToInterfaceOrientationDuration, willAnimateRotationToInterfaceOrientationDuration, willAnimateSecondHalfOfRotationFromInterfaceOrientationDuration, willMoveToParentViewController, willRotateToInterfaceOrientationDuration, willTransitionToTraitCollectionWithTransitionCoordinator
-
Methods inherited from class apple.uikit.UIResponder
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommand
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static AVPlayerViewController alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
attemptRotationToDeviceOrientation
public static void attemptRotationToDeviceOrientation()
-
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()
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(java.lang.String identifier)
-
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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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()
-
prepareInterstitialAds
public static void prepareInterstitialAds()
-
preparePrerollAds
public static void preparePrerollAds()
+preparePrerollAds Inform iAd that the application intends to use AVPlayerViewController's -playPrerollAdWithCompletionHandler: API. Ad metadata will be fetched eagerly, increasing the likelihood of an ad being available when first requested.
-
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()
-
allowsPictureInPicturePlayback
public boolean allowsPictureInPicturePlayback()
[@property] allowsPictureInPicturePlayback Whether or not the receiver allows Picture in Picture playback. Default is YES.
-
cancelPreroll
public void cancelPreroll()
-cancelPreroll Cancel pre-roll video ad playback.
-
contentOverlayView
public UIView contentOverlayView()
[@property] contentOverlayView Use the content overlay view to add additional custom views between the video content and the controls.
-
delegate
public AVPlayerViewControllerDelegate delegate()
[@property] delegate The receiver's delegate.
-
init
public AVPlayerViewController init()
- Overrides:
initin classUIViewController
-
initWithCoder
public AVPlayerViewController initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classUIViewController
-
initWithNibNameBundle
public AVPlayerViewController initWithNibNameBundle(java.lang.String nibNameOrNil, NSBundle nibBundleOrNil)
Description copied from class:UIViewControllerThe designated initializer. If you subclass UIViewController, you must call the super implementation of this method, even if you aren't using a NIB. (As a convenience, the default init method will do this for you, and specify nil for both of this methods arguments.) In the specified NIB, the File's Owner proxy should have its class set to your view controller subclass, with the view outlet connected to the main view. If you invoke this method with a nil nib name, then this class' -loadView method will attempt to load a NIB whose name is the same as your view controller's class. If no such NIB in fact exists then you must either call -setView: before -view is invoked, or override the -loadView method to set up your views programatically.- Overrides:
initWithNibNameBundlein classUIViewController
-
isReadyForDisplay
public boolean isReadyForDisplay()
[@property] readyForDisplay Boolean indicating that the first video frame has been made ready for display for the current item of the associated AVPlayer.
-
playPrerollAdWithCompletionHandler
public void playPrerollAdWithCompletionHandler(AVPlayerViewController.Block_playPrerollAdWithCompletionHandler completionHandler)
-playPrerollAdWithCompletionHandler: Request playback of a pre-roll video iAd. If -[AVPlayerViewController player] begins playing during a pre-roll ad, the video ad will stop immediately. The completion handler's error argument will be non-nil if the pre-roll ad could not be played. Errors can occur for a number of reasons, such as lack of ad inventory, exceeding the maximum pre-roll ad playback frequency, iAd account configuration issues, and media playback issues. See ADError for an exhaustive list of possible errors. Passing nil as the completion handler is an error and will throw an exception.
-
player
public AVPlayer player()
[@property] player The player from which to source the media content for the view controller.
-
setAllowsPictureInPicturePlayback
public void setAllowsPictureInPicturePlayback(boolean value)
[@property] allowsPictureInPicturePlayback Whether or not the receiver allows Picture in Picture playback. Default is YES.
-
setDelegate_unsafe
public void setDelegate_unsafe(AVPlayerViewControllerDelegate value)
[@property] delegate The receiver's delegate.
-
setDelegate
public void setDelegate(AVPlayerViewControllerDelegate value)
[@property] delegate The receiver's delegate.
-
setPlayer
public void setPlayer(AVPlayer value)
[@property] player The player from which to source the media content for the view controller.
-
setShowsPlaybackControls
public void setShowsPlaybackControls(boolean value)
[@property] showsPlaybackControls Whether or not the receiver shows playback controls. Default is YES. Clients can set this property to NO when they don't want to have any playback controls on top of the visual content (e.g. for a game splash screen).
-
setUpdatesNowPlayingInfoCenter
public void setUpdatesNowPlayingInfoCenter(boolean value)
[@property] updatesNowPlayingInfoCenter Whether or not the now playing info center should be updated. Default is YES.
-
setVideoGravity
public void setVideoGravity(java.lang.String value)
[@property] videoGravity A string defining how the video is displayed within an AVPlayerLayer bounds rect. Options are AVLayerVideoGravityResizeAspect, AVLayerVideoGravityResizeAspectFill and AVLayerVideoGravityResize. AVLayerVideoGravityResizeAspect is default.
-
showsPlaybackControls
public boolean showsPlaybackControls()
[@property] showsPlaybackControls Whether or not the receiver shows playback controls. Default is YES. Clients can set this property to NO when they don't want to have any playback controls on top of the visual content (e.g. for a game splash screen).
-
updatesNowPlayingInfoCenter
public boolean updatesNowPlayingInfoCenter()
[@property] updatesNowPlayingInfoCenter Whether or not the now playing info center should be updated. Default is YES.
-
videoBounds
public CGRect videoBounds()
[@property] videoBounds The current size and position of the video image as displayed within the receiver's view's bounds.
-
videoGravity
public java.lang.String videoGravity()
[@property] videoGravity A string defining how the video is displayed within an AVPlayerLayer bounds rect. Options are AVLayerVideoGravityResizeAspect, AVLayerVideoGravityResizeAspectFill and AVLayerVideoGravityResize. AVLayerVideoGravityResizeAspect is default.
-
entersFullScreenWhenPlaybackBegins
public boolean entersFullScreenWhenPlaybackBegins()
[@property] entersFullScreenWhenPlaybackBegins Whether or not the receiver automatically enters full screen when the play button is tapped. Default is NO. If YES, the receiver will show a user interface tailored to this behavior.
-
exitsFullScreenWhenPlaybackEnds
public boolean exitsFullScreenWhenPlaybackEnds()
[@property] exitsFullScreenWhenPlaybackEnds Whether or not the receiver automatically exits full screen when playback ends. Default is NO. If multiple player items have been enqueued, the receiver exits fullscreen once no more items are remaining in the queue.
-
setEntersFullScreenWhenPlaybackBegins
public void setEntersFullScreenWhenPlaybackBegins(boolean value)
[@property] entersFullScreenWhenPlaybackBegins Whether or not the receiver automatically enters full screen when the play button is tapped. Default is NO. If YES, the receiver will show a user interface tailored to this behavior.
-
setExitsFullScreenWhenPlaybackEnds
public void setExitsFullScreenWhenPlaybackEnds(boolean value)
[@property] exitsFullScreenWhenPlaybackEnds Whether or not the receiver automatically exits full screen when playback ends. Default is NO. If multiple player items have been enqueued, the receiver exits fullscreen once no more items are remaining in the queue.
-
pixelBufferAttributes
public NSDictionary<java.lang.String,?> pixelBufferAttributes()
[@property] pixelBufferAttributes The client requirements for the visual output during playback. Pixel buffer attribute keys are defined in
-
setPixelBufferAttributes
public void setPixelBufferAttributes(NSDictionary<java.lang.String,?> value)
[@property] pixelBufferAttributes The client requirements for the visual output during playback. Pixel buffer attribute keys are defined in
-
requiresLinearPlayback
public boolean requiresLinearPlayback()
[@property] requiresLinearPlayback Disables certain user operations (fast forward, forward skip, and scrubbing). This can be used to enforce playback of mandatory content (such as legalese or advertisements).
-
setRequiresLinearPlayback
public void setRequiresLinearPlayback(boolean value)
[@property] requiresLinearPlayback Disables certain user operations (fast forward, forward skip, and scrubbing). This can be used to enforce playback of mandatory content (such as legalese or advertisements).
-
setShowsTimecodes
public void setShowsTimecodes(boolean value)
[@property] showsTimecodes Controls whether timecodes can be displayed in the playback UI when playing media with embedded timecodes. Default NO.
-
showsTimecodes
public boolean showsTimecodes()
[@property] showsTimecodes Controls whether timecodes can be displayed in the playback UI when playing media with embedded timecodes. Default NO.
-
canStartPictureInPictureAutomaticallyFromInline
public boolean canStartPictureInPictureAutomaticallyFromInline()
[@property] canStartPictureInPictureAutomaticallyFromInline Indicates whether Picture in Picture should be allowed to start automatically when transitioning to background when the receiver’s content is embedded inline. Default is NO. This property must only be set to YES for content intended to be the user's primary focus.
-
setCanStartPictureInPictureAutomaticallyFromInline
public void setCanStartPictureInPictureAutomaticallyFromInline(boolean value)
[@property] canStartPictureInPictureAutomaticallyFromInline Indicates whether Picture in Picture should be allowed to start automatically when transitioning to background when the receiver’s content is embedded inline. Default is NO. This property must only be set to YES for content intended to be the user's primary focus.
-
-