public class AVPlayerViewController extends UIViewController
AVPlayerViewController is a subclass of UIViewController that can be used to display the visual content of an AVPlayer object and the standard playback controls.
UIViewController.Block_dismissViewControllerAnimatedCompletion, UIViewController.Block_presentViewControllerAnimatedCompletion, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_4, UIViewController.Block_transitionFromViewControllerToViewControllerDurationOptionsAnimationsCompletion_5NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retUIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler| Modifier | Constructor and Description |
|---|---|
protected |
AVPlayerViewController(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static AVPlayerViewController |
alloc() |
static AVPlayerViewController |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
allowsPictureInPicturePlayback()
[@property] allowsPictureInPicturePlayback
|
static void |
attemptRotationToDeviceOrientation() |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
boolean |
canStartPictureInPictureAutomaticallyFromInline()
[@property] canStartPictureInPictureAutomaticallyFromInline
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static void |
clearTextInputContextIdentifier(java.lang.String identifier) |
UIView |
contentOverlayView()
[@property] contentOverlayView
|
static java.lang.String |
debugDescription_static() |
AVPlayerViewControllerDelegate |
delegate()
[@property] delegate
|
static java.lang.String |
description_static() |
boolean |
entersFullScreenWhenPlaybackBegins()
[@property] entersFullScreenWhenPlaybackBegins
|
boolean |
exitsFullScreenWhenPlaybackEnds()
[@property] exitsFullScreenWhenPlaybackEnds
|
static long |
hash_static() |
AVPlayerViewController |
init() |
AVPlayerViewController |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
AVPlayerViewController |
initWithNibNameBundle(java.lang.String nibNameOrNil,
NSBundle nibBundleOrNil)
The designated initializer.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isReadyForDisplay()
[@property] readyForDisplay
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static AVPlayerViewController |
new_objc() |
NSDictionary<java.lang.String,?> |
pixelBufferAttributes()
[@property] pixelBufferAttributes
|
AVPlayer |
player()
[@property] player
|
boolean |
requiresLinearPlayback()
[@property] requiresLinearPlayback
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAllowsPictureInPicturePlayback(boolean value)
[@property] allowsPictureInPicturePlayback
|
void |
setCanStartPictureInPictureAutomaticallyFromInline(boolean value)
[@property] canStartPictureInPictureAutomaticallyFromInline
|
void |
setDelegate_unsafe(AVPlayerViewControllerDelegate value)
[@property] delegate
|
void |
setDelegate(AVPlayerViewControllerDelegate value)
[@property] delegate
|
void |
setEntersFullScreenWhenPlaybackBegins(boolean value)
[@property] entersFullScreenWhenPlaybackBegins
|
void |
setExitsFullScreenWhenPlaybackEnds(boolean value)
[@property] exitsFullScreenWhenPlaybackEnds
|
void |
setPixelBufferAttributes(NSDictionary<java.lang.String,?> value)
[@property] pixelBufferAttributes
|
void |
setPlayer(AVPlayer value)
[@property] player
|
void |
setRequiresLinearPlayback(boolean value)
[@property] requiresLinearPlayback
|
void |
setShowsPlaybackControls(boolean value)
[@property] showsPlaybackControls
|
void |
setShowsTimecodes(boolean value)
[@property] showsTimecodes
|
void |
setUpdatesNowPlayingInfoCenter(boolean value)
[@property] updatesNowPlayingInfoCenter
|
static void |
setVersion_static(long aVersion) |
void |
setVideoGravity(java.lang.String value)
[@property] videoGravity
|
boolean |
showsPlaybackControls()
[@property] showsPlaybackControls
|
boolean |
showsTimecodes()
[@property] showsTimecodes
|
static org.moe.natj.objc.Class |
superclass_static() |
boolean |
updatesNowPlayingInfoCenter()
[@property] updatesNowPlayingInfoCenter
|
static long |
version_static() |
CGRect |
videoBounds()
[@property] videoBounds
|
java.lang.String |
videoGravity()
[@property] videoGravity
|
addChildViewController, additionalSafeAreaInsets, addKeyCommand, allowedChildViewControllersForUnwindingFromSource, applicationFinishedRestoringState, automaticallyAdjustsScrollViewInsets, automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers, beginAppearanceTransitionAnimated, beginRequestWithExtensionContext, bottomLayoutGuide, canPerformUnwindSegueActionFromViewControllerSender, canPerformUnwindSegueActionFromViewControllerWithSender, childViewControllerContainingSegueSource, childViewControllerForHomeIndicatorAutoHidden, childViewControllerForPointerLock, childViewControllerForScreenEdgesDeferringSystemGestures, childViewControllerForStatusBarHidden, childViewControllerForStatusBarStyle, childViewControllers, collapseSecondaryViewControllerForSplitViewController, contentScrollViewForEdge, contentSizeForViewInPopover, decodeRestorableStateWithCoder, definesPresentationContext, didAnimateFirstHalfOfRotationToInterfaceOrientation, didMoveToParentViewController, didReceiveMemoryWarning, didRotateFromInterfaceOrientation, didUpdateFocusInContextWithAnimationCoordinator, disablesAutomaticKeyboardDismissal, dismissModalViewControllerAnimated, dismissMoviePlayerViewControllerAnimated, dismissViewControllerAnimatedCompletion, edgesForExtendedLayout, editButtonItem, encodeRestorableStateWithCoder, encodeWithCoder, endAppearanceTransition, extendedLayoutIncludesOpaqueBars, extensionContext, focusGroupIdentifier, focusItemContainer, hidesBottomBarWhenPushed, interfaceOrientation, isBeingDismissed, isBeingPresented, isEditing, isModalInPopover, isModalInPresentation, isMovingFromParentViewController, isMovingToParentViewController, isViewLoaded, loadView, loadViewIfNeeded, modalPresentationCapturesStatusBarAppearance, modalPresentationStyle, modalTransitionStyle, modalViewController, navigationController, navigationItem, nibBundle, nibName, objectRestorationClass, 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, restorationClass, restorationIdentifier, restorationParent, restoresFocusAfterTransition, rotatingFooterView, rotatingHeaderView, searchDisplayController, segueForUnwindingToViewControllerFromViewControllerIdentifier, separateSecondaryViewControllerForSplitViewController, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setContentScrollViewForEdge, setContentSizeForViewInPopover, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditingAnimated, setExtendedLayoutIncludesOpaqueBars, setFocusGroupIdentifier, setHidesBottomBarWhenPushed, setModalInPopover, setModalInPresentation, setModalPresentationCapturesStatusBarAppearance, setModalPresentationStyle, setModalTransitionStyle, setNeedsFocusUpdate, setNeedsStatusBarAppearanceUpdate, setNeedsUpdateOfHomeIndicatorAutoHidden, setNeedsUpdateOfPrefersPointerLocked, setNeedsUpdateOfScreenEdgesDeferringSystemGestures, setOverrideTraitCollectionForChildViewController, setOverrideUserInterfaceStyle, setPreferredContentSize, setProvidesPresentationContextTransitionStyle, setRestorationClass_unsafe, setRestorationClass, setRestorationIdentifier, setRestoresFocusAfterTransition, setTabBarItem, setTitle, setToolbarItems, setToolbarItemsAnimated, setTransitioningDelegate_unsafe, setTransitioningDelegate, setView, setViewRespectsSystemMinimumLayoutMargins, setWantsFullScreenLayout, sheetPresentationController, shouldAutomaticallyForwardAppearanceMethods, shouldAutomaticallyForwardRotationMethods, shouldAutorotate, shouldAutorotateToInterfaceOrientation, shouldPerformSegueWithIdentifierSender, 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, willTransitionToTraitCollectionWithTransitionCoordinatoractivityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommandaccessibilityActivate, 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, willChangeValuesAtIndexesForKeyprotected AVPlayerViewController(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static AVPlayerViewController alloc()
public static AVPlayerViewController allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static void attemptRotationToDeviceOrientation()
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static void clearTextInputContextIdentifier(java.lang.String identifier)
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static AVPlayerViewController new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public boolean allowsPictureInPicturePlayback()
Whether or not the receiver allows Picture in Picture playback. Default is YES.
public UIView contentOverlayView()
Use the content overlay view to add additional custom views between the video content and the controls.
public AVPlayerViewControllerDelegate delegate()
The receiver's delegate.
public AVPlayerViewController init()
init in class UIViewControllerpublic AVPlayerViewController initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class UIViewControllerpublic AVPlayerViewController initWithNibNameBundle(java.lang.String nibNameOrNil, NSBundle nibBundleOrNil)
UIViewControllerinitWithNibNameBundle in class UIViewControllerpublic boolean isReadyForDisplay()
Boolean indicating that the first video frame has been made ready for display for the current item of the associated AVPlayer.
public AVPlayer player()
The player from which to source the media content for the view controller.
public void setAllowsPictureInPicturePlayback(boolean value)
Whether or not the receiver allows Picture in Picture playback. Default is YES.
public void setDelegate_unsafe(AVPlayerViewControllerDelegate value)
The receiver's delegate.
public void setDelegate(AVPlayerViewControllerDelegate value)
The receiver's delegate.
public void setPlayer(AVPlayer value)
The player from which to source the media content for the view controller.
public void setShowsPlaybackControls(boolean value)
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).
public void setUpdatesNowPlayingInfoCenter(boolean value)
Whether or not the now playing info center should be updated. Default is YES.
public void setVideoGravity(java.lang.String value)
A string defining how the video is displayed within an AVPlayerLayer bounds rect.
Options are AVLayerVideoGravityResizeAspect, AVLayerVideoGravityResizeAspectFill and AVLayerVideoGravityResize. AVLayerVideoGravityResizeAspect is default.
public boolean 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).
public boolean updatesNowPlayingInfoCenter()
Whether or not the now playing info center should be updated. Default is YES.
public CGRect videoBounds()
The current size and position of the video image as displayed within the receiver's view's bounds.
public java.lang.String videoGravity()
A string defining how the video is displayed within an AVPlayerLayer bounds rect.
Options are AVLayerVideoGravityResizeAspect, AVLayerVideoGravityResizeAspectFill and AVLayerVideoGravityResize. AVLayerVideoGravityResizeAspect is default.
public boolean 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.
public boolean 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.
public void setEntersFullScreenWhenPlaybackBegins(boolean value)
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.
public void setExitsFullScreenWhenPlaybackEnds(boolean value)
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.
public NSDictionary<java.lang.String,?> pixelBufferAttributes()
The client requirements for the visual output during playback.
Pixel buffer attribute keys are defined in
public void setPixelBufferAttributes(NSDictionary<java.lang.String,?> value)
The client requirements for the visual output during playback.
Pixel buffer attribute keys are defined in
public boolean 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).
public void setRequiresLinearPlayback(boolean value)
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).
public void setShowsTimecodes(boolean value)
Controls whether timecodes can be displayed in the playback UI when playing media with embedded timecodes. Default NO.
public boolean showsTimecodes()
Controls whether timecodes can be displayed in the playback UI when playing media with embedded timecodes. Default NO.
public boolean 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.
public void setCanStartPictureInPictureAutomaticallyFromInline(boolean value)
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.