Class MPMoviePlayerController

  • All Implemented Interfaces:
    MPMediaPlayback, NSObject

    @Deprecated
    public class MPMoviePlayerController
    extends NSObject
    implements MPMediaPlayback
    Deprecated.
    ----------------------------------------------------------------------------- Movie Player See MPMediaPlayback.h for the playback methods. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
    • Constructor Detail

      • MPMoviePlayerController

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
        Deprecated.
      • allocWithZone

        public static MPMoviePlayerController allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Deprecated.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
        Deprecated.
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
        Deprecated.
      • 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)
        Deprecated.
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
        Deprecated.
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
        Deprecated.
      • debugDescription_static

        public static java.lang.String debugDescription_static()
        Deprecated.
      • description_static

        public static java.lang.String description_static()
        Deprecated.
      • hash_static

        public static long hash_static()
        Deprecated.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
        Deprecated.
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
        Deprecated.
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
        Deprecated.
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
        Deprecated.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
        Deprecated.
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
        Deprecated.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
        Deprecated.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
        Deprecated.
      • version_static

        public static long version_static()
        Deprecated.
      • accessLog

        @Deprecated
        public MPMovieAccessLog accessLog()
        Deprecated.
        Returns an object that represents a snapshot of the network access log. Can be nil. API-Since: 4.3 Deprecated-Since: 9.0 Deprecated-Message: Use AVFoundation.
      • allowsAirPlay

        @Deprecated
        public boolean allowsAirPlay()
        Deprecated.
        Indicates whether the movie player allows AirPlay video playback. Defaults to YES on iOS 5.0 and later. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • backgroundView

        @Deprecated
        public UIView backgroundView()
        Deprecated.
        A view for customization which is always displayed behind movie content. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • beginSeekingForward

        public void beginSeekingForward()
        Deprecated.
        Description copied from interface: MPMediaPlayback
        The seeking rate will increase the longer scanning is active.
        Specified by:
        beginSeekingForward in interface MPMediaPlayback
      • cancelAllThumbnailImageRequests

        @Deprecated
        public void cancelAllThumbnailImageRequests()
        Deprecated.
        Cancels all pending asynchronous thumbnail requests. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • contentURL

        @Deprecated
        public NSURL contentURL()
        Deprecated.
        API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • controlStyle

        @Deprecated
        public long controlStyle()
        Deprecated.
        The style of the playback controls. Defaults to MPMovieControlStyleDefault. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • currentPlaybackRate

        public float currentPlaybackRate()
        Deprecated.
        Description copied from interface: MPMediaPlayback
        The current playback rate of the now playing item. Default is 1.0 (normal speed). Pausing will set the rate to 0.0. Setting the rate to non-zero implies playing.
        Specified by:
        currentPlaybackRate in interface MPMediaPlayback
      • currentPlaybackTime

        public double currentPlaybackTime()
        Deprecated.
        Description copied from interface: MPMediaPlayback
        The current playback time of the now playing item in seconds.
        Specified by:
        currentPlaybackTime in interface MPMediaPlayback
      • duration

        @Deprecated
        public double duration()
        Deprecated.
        The duration of the movie, or 0.0 if not known. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • endPlaybackTime

        @Deprecated
        public double endPlaybackTime()
        Deprecated.
        The end time of movie playback. Defaults to NaN, which indicates natural end time of the movie. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • errorLog

        @Deprecated
        public MPMovieErrorLog errorLog()
        Deprecated.
        Returns an object that represents a snapshot of the error log. Can be nil. API-Since: 4.3 Deprecated-Since: 9.0 Deprecated-Message: Use AVFoundation.
      • initWithContentURL

        @Deprecated
        public MPMoviePlayerController initWithContentURL​(NSURL url)
        Deprecated.
        API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • initialPlaybackTime

        @Deprecated
        public double initialPlaybackTime()
        Deprecated.
        The start time of movie playback. Defaults to NaN, indicating the natural start time of the movie. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • isAirPlayVideoActive

        @Deprecated
        public boolean isAirPlayVideoActive()
        Deprecated.
        Indicates whether the movie player is currently playing video via AirPlay. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • isFullscreen

        @Deprecated
        public boolean isFullscreen()
        Deprecated.
        Determines if the movie is presented in the entire screen (obscuring all other application content). Default is NO. Setting this property to YES before the movie player's view is visible will have no effect. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • setFullscreen

        @Deprecated
        public void setFullscreen​(boolean value)
        Deprecated.
        Determines if the movie is presented in the entire screen (obscuring all other application content). Default is NO. Setting this property to YES before the movie player's view is visible will have no effect. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • loadState

        @Deprecated
        public long loadState()
        Deprecated.
        Returns the network load state of the movie player. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • movieMediaTypes

        @Deprecated
        public long movieMediaTypes()
        Deprecated.
        The types of media in the movie, or MPMovieMediaTypeNone if not known. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • movieSourceType

        @Deprecated
        public long movieSourceType()
        Deprecated.
        The playback type of the movie. Defaults to MPMovieSourceTypeUnknown. Specifying a playback type before playing the movie can result in faster load times. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • naturalSize

        @Deprecated
        public CGSize naturalSize()
        Deprecated.
        The natural size of the movie, or CGSizeZero if not known/applicable. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • play

        public void play()
        Deprecated.
        Description copied from interface: MPMediaPlayback
        Plays items from the current queue, resuming paused playback if possible.
        Specified by:
        play in interface MPMediaPlayback
      • playableDuration

        @Deprecated
        public double playableDuration()
        Deprecated.
        The currently playable duration of the movie, for progressively downloaded network content. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • playbackState

        @Deprecated
        public long playbackState()
        Deprecated.
        Returns the current playback state of the movie player. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • prepareToPlay

        public void prepareToPlay()
        Deprecated.
        Description copied from interface: MPMediaPlayback
        Prepares the current queue for playback, interrupting any active (non-mixible) audio sessions. Automatically invoked when -play is called if the player is not already prepared.
        Specified by:
        prepareToPlay in interface MPMediaPlayback
      • readyForDisplay

        public boolean readyForDisplay()
        Deprecated.
        Returns YES if the first video frame has been made ready for display for the current item. Will remain NO for items that do not have video tracks associated. API-Since: 6.0
      • repeatMode

        @Deprecated
        public long repeatMode()
        Deprecated.
        Determines how the movie player repeats when reaching the end of playback. Defaults to MPMovieRepeatModeNone. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • requestThumbnailImagesAtTimesTimeOption

        @Deprecated
        public void requestThumbnailImagesAtTimesTimeOption​(NSArray<?> playbackTimes,
                                                            long option)
        Deprecated.
        Asynchronously request thumbnails for one or more times, provided as an array of NSNumbers (double). Posts MPMoviePlayerThumbnailImageRequestDidFinishNotification on completion. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • scalingMode

        @Deprecated
        public long scalingMode()
        Deprecated.
        Determines how the content scales to fit the view. Defaults to MPMovieScalingModeAspectFit. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • setAllowsAirPlay

        @Deprecated
        public void setAllowsAirPlay​(boolean value)
        Deprecated.
        Indicates whether the movie player allows AirPlay video playback. Defaults to YES on iOS 5.0 and later. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • setContentURL

        @Deprecated
        public void setContentURL​(NSURL value)
        Deprecated.
        API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • setControlStyle

        @Deprecated
        public void setControlStyle​(long value)
        Deprecated.
        The style of the playback controls. Defaults to MPMovieControlStyleDefault. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • setCurrentPlaybackRate

        public void setCurrentPlaybackRate​(float value)
        Deprecated.
        Description copied from interface: MPMediaPlayback
        The current playback rate of the now playing item. Default is 1.0 (normal speed). Pausing will set the rate to 0.0. Setting the rate to non-zero implies playing.
        Specified by:
        setCurrentPlaybackRate in interface MPMediaPlayback
      • setCurrentPlaybackTime

        public void setCurrentPlaybackTime​(double value)
        Deprecated.
        Description copied from interface: MPMediaPlayback
        The current playback time of the now playing item in seconds.
        Specified by:
        setCurrentPlaybackTime in interface MPMediaPlayback
      • setEndPlaybackTime

        @Deprecated
        public void setEndPlaybackTime​(double value)
        Deprecated.
        The end time of movie playback. Defaults to NaN, which indicates natural end time of the movie. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • setFullscreenAnimated

        @Deprecated
        public void setFullscreenAnimated​(boolean fullscreen,
                                          boolean animated)
        Deprecated.
        API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • setInitialPlaybackTime

        @Deprecated
        public void setInitialPlaybackTime​(double value)
        Deprecated.
        The start time of movie playback. Defaults to NaN, indicating the natural start time of the movie. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • setMovieSourceType

        @Deprecated
        public void setMovieSourceType​(long value)
        Deprecated.
        The playback type of the movie. Defaults to MPMovieSourceTypeUnknown. Specifying a playback type before playing the movie can result in faster load times. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • setRepeatMode

        @Deprecated
        public void setRepeatMode​(long value)
        Deprecated.
        Determines how the movie player repeats when reaching the end of playback. Defaults to MPMovieRepeatModeNone. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • setScalingMode

        @Deprecated
        public void setScalingMode​(long value)
        Deprecated.
        Determines how the content scales to fit the view. Defaults to MPMovieScalingModeAspectFit. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • setShouldAutoplay

        @Deprecated
        public void setShouldAutoplay​(boolean value)
        Deprecated.
        Indicates if a movie should automatically start playback when it is likely to finish uninterrupted based on e.g. network conditions. Defaults to YES. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • setUseApplicationAudioSession

        @Deprecated
        public void setUseApplicationAudioSession​(boolean value)
        Deprecated.
        Indicates if the movie player should inherit the application's audio session instead of creating a new session (which would interrupt the application's session). Defaults to YES. Setting this property during playback will not take effect until playback is stopped and started again. API-Since: 6.0 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit.
      • shouldAutoplay

        @Deprecated
        public boolean shouldAutoplay()
        Deprecated.
        Indicates if a movie should automatically start playback when it is likely to finish uninterrupted based on e.g. network conditions. Defaults to YES. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • stop

        public void stop()
        Deprecated.
        Description copied from interface: MPMediaPlayback
        Ends playback. Calling -play again will start from the beginnning of the queue.
        Specified by:
        stop in interface MPMediaPlayback
      • thumbnailImageAtTimeTimeOption

        @Deprecated
        public UIImage thumbnailImageAtTimeTimeOption​(double playbackTime,
                                                      long option)
        Deprecated.
        Returns a thumbnail at the given time. Deprecated. Use -requestThumbnailImagesAtTimes:timeOption: / MPMoviePlayerThumbnailImageRequestDidFinishNotification instead. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • timedMetadata

        @Deprecated
        public NSArray<?> timedMetadata()
        Deprecated.
        Returns an array of the most recent MPTimedMetadata objects provided by the media stream. API-Since: 4.0 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit.
      • useApplicationAudioSession

        @Deprecated
        public boolean useApplicationAudioSession()
        Deprecated.
        Indicates if the movie player should inherit the application's audio session instead of creating a new session (which would interrupt the application's session). Defaults to YES. Setting this property during playback will not take effect until playback is stopped and started again. API-Since: 6.0 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit.
      • view

        @Deprecated
        public UIView view()
        Deprecated.
        The view in which the media and playback controls are displayed. API-Since: 3.2 Deprecated-Since: 9.0 Deprecated-Message: Use AVPlayerViewController in AVKit
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.