Package apple.mediaplayer.protocol
Interface MPMediaPlayback
-
- All Known Implementing Classes:
MPMoviePlayerController,MPMusicPlayerApplicationController,MPMusicPlayerController
public interface MPMediaPlayback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbeginSeekingBackward()voidbeginSeekingForward()The seeking rate will increase the longer scanning is active.floatcurrentPlaybackRate()The current playback rate of the now playing item.doublecurrentPlaybackTime()The current playback time of the now playing item in seconds.voidendSeeking()booleanisPreparedToPlay()Returns YES if prepared for playback.voidpause()Pauses playback if playing.voidplay()Plays items from the current queue, resuming paused playback if possible.voidprepareToPlay()Prepares the current queue for playback, interrupting any active (non-mixible) audio sessions.voidsetCurrentPlaybackRate(float value)The current playback rate of the now playing item.voidsetCurrentPlaybackTime(double value)The current playback time of the now playing item in seconds.voidstop()Ends playback.
-
-
-
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.
-
-