API Diff Specification
To Version: Android SDK 0.9_r1
From Version: Android SDK m5-rc14
Generated 2008.08.14 15:44

Class android.media.MediaPlayer

Removed Methods
void setDataSource(FileDescriptor, String) Sets the data source (FileDescriptor) to use.
void setDataSource(String) Sets the data source (file-path or URL) to use.
 

Added Methods
int getVideoHeight() Returns the height of the video.
int getVideoWidth() Returns the width of the video.
void setDataSource(FileDescriptor) Sets the data source (FileDescriptor) to use.
void setDataSource(FileDescriptor, long, long) Sets the data source (FileDescriptor) to use.
void setDataSource(String) Sets the data source (file-path or http/rtsp URL) to use.
void setDataSource(Context, Uri) Sets the data source as a content Uri.
void setOnSeekCompleteListener(OnSeekCompleteListener) Register a callback to be invoked when a seek operation has been completed.
void setScreenOnWhilePlaying(boolean) Control whether we should use the attached SurfaceHolder to keep the screen on while video playback is occurring.
void setVolume(float, float) Sets the volume on this player.
 

Changed Methods
Bitmap getFrameAt(int) Change in exceptions thrown from no exceptions to java.lang.IllegalStateException.
Returns a Bitmap containing the video frame at the specified time.
void pause() Change in exceptions thrown from no exceptions to java.lang.IllegalStateException.
Pauses playback.
void prepare() Change in exceptions thrown from java.io.IOException to (java.io.IOException, java.lang.IllegalStateException).
Prepares the player for playback, synchronously.
void prepareAsync() Change in exceptions thrown from no exceptions to java.lang.IllegalStateException.
Prepares the player for playback, asynchronously.
void seekTo(int) Change in exceptions thrown from no exceptions to java.lang.IllegalStateException.
Seeks to specified time position.
void setDisplay(SurfaceHolder) Change in signature from Surface to SurfaceHolder.
Sets the SurfaceHolder to use for displaying the video portion of the media.
void setLooping(boolean) Change in signature from int to boolean.
Sets the player to be looping or non-looping.
void start() Change in exceptions thrown from no exceptions to java.lang.IllegalStateException.
Starts or resumes playback.
void stop() Change in exceptions thrown from no exceptions to java.lang.IllegalStateException.
Stops playback after playback has been stopped or paused.
MediaPlayer create(Context, Uri, SurfaceHolder) Change in signature from (Context, Uri, Surface) to (Context, Uri, SurfaceHolder).
Convenience method to create a MediaPlayer for a given Uri.
 

Added Fields
int MEDIA_ERROR_SERVER_DIED Media server died.
int MEDIA_ERROR_UNKNOWN Unspecified media player error.
 

©2008 Google - Code Home - Site Terms of Service - Privacy Policy
Generated by JDiff