Interface MPMediaPlayback

    • Method Detail

      • beginSeekingBackward

        void beginSeekingBackward()
      • beginSeekingForward

        void beginSeekingForward()
        The seeking rate will increase the longer scanning is active.
      • currentPlaybackRate

        float currentPlaybackRate()
        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.
      • currentPlaybackTime

        double currentPlaybackTime()
        The current playback time of the now playing item in seconds.
      • endSeeking

        void endSeeking()
      • isPreparedToPlay

        boolean isPreparedToPlay()
        Returns YES if prepared for playback.
      • pause

        void pause()
        Pauses playback if playing.
      • play

        void play()
        Plays items from the current queue, resuming paused playback if possible.
      • prepareToPlay

        void prepareToPlay()
        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.
      • setCurrentPlaybackRate

        void setCurrentPlaybackRate​(float value)
        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.
      • setCurrentPlaybackTime

        void setCurrentPlaybackTime​(double value)
        The current playback time of the now playing item in seconds.
      • stop

        void stop()
        Ends playback. Calling -play again will start from the beginnning of the queue.