FileDocCategorySizeDatePackage
MediaPlayer.javaAPI DocAndroid 5.1 API10026Sat Mar 14 14:09:34 GMT 2015android.media

MediaPlayer

public class MediaPlayer extends Object

Fields Summary
public static final int
MEDIA_ERROR_IO
public static final int
MEDIA_ERROR_MALFORMED
public static final int
MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK
public static final int
MEDIA_ERROR_SERVER_DIED
public static final int
MEDIA_ERROR_TIMED_OUT
public static final int
MEDIA_ERROR_UNKNOWN
public static final int
MEDIA_ERROR_UNSUPPORTED
public static final int
MEDIA_INFO_BAD_INTERLEAVING
public static final int
MEDIA_INFO_BUFFERING_END
public static final int
MEDIA_INFO_BUFFERING_START
public static final int
MEDIA_INFO_METADATA_UPDATE
public static final int
MEDIA_INFO_NOT_SEEKABLE
public static final int
MEDIA_INFO_SUBTITLE_TIMED_OUT
public static final int
MEDIA_INFO_UNKNOWN
public static final int
MEDIA_INFO_UNSUPPORTED_SUBTITLE
public static final int
MEDIA_INFO_VIDEO_RENDERING_START
public static final int
MEDIA_INFO_VIDEO_TRACK_LAGGING
public static final String
MEDIA_MIMETYPE_TEXT_SUBRIP
public static final int
VIDEO_SCALING_MODE_SCALE_TO_FIT
public static final int
VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING
Constructors Summary
public MediaPlayer()


   

     

   

     

   

       

   

     

   

         

   

       

   

         

   

         

    throw new RuntimeException("Stub!"); 
Methods Summary
public voidaddTimedTextSource(java.lang.String path, java.lang.String mimeType)

 throw new RuntimeException("Stub!"); 
public voidaddTimedTextSource(android.content.Context context, android.net.Uri uri, java.lang.String mimeType)

 throw new RuntimeException("Stub!"); 
public voidaddTimedTextSource(java.io.FileDescriptor fd, java.lang.String mimeType)

 throw new RuntimeException("Stub!"); 
public voidaddTimedTextSource(java.io.FileDescriptor fd, long offset, long length, java.lang.String mime)

 throw new RuntimeException("Stub!"); 
public native voidattachAuxEffect(int effectId)

public static android.media.MediaPlayercreate(android.content.Context context, android.net.Uri uri)

 throw new RuntimeException("Stub!"); 
public static android.media.MediaPlayercreate(android.content.Context context, android.net.Uri uri, android.view.SurfaceHolder holder)

 throw new RuntimeException("Stub!"); 
public static android.media.MediaPlayercreate(android.content.Context context, android.net.Uri uri, android.view.SurfaceHolder holder, android.media.AudioAttributes audioAttributes, int audioSessionId)

 throw new RuntimeException("Stub!"); 
public static android.media.MediaPlayercreate(android.content.Context context, int resid)

 throw new RuntimeException("Stub!"); 
public static android.media.MediaPlayercreate(android.content.Context context, int resid, android.media.AudioAttributes audioAttributes, int audioSessionId)

 throw new RuntimeException("Stub!"); 
public voiddeselectTrack(int index)

 throw new RuntimeException("Stub!"); 
protected voidfinalize()

 throw new RuntimeException("Stub!"); 
public native intgetAudioSessionId()

public native intgetCurrentPosition()

public native intgetDuration()

public intgetSelectedTrack(int trackType)

 throw new RuntimeException("Stub!"); 
public android.media.MediaPlayer$TrackInfo[]getTrackInfo()

 throw new RuntimeException("Stub!"); 
public native intgetVideoHeight()

public native intgetVideoWidth()

public native booleanisLooping()

public native booleanisPlaying()

public voidpause()

 throw new RuntimeException("Stub!"); 
public voidprepare()

 throw new RuntimeException("Stub!"); 
public native voidprepareAsync()

public voidrelease()

 throw new RuntimeException("Stub!"); 
public voidreset()

 throw new RuntimeException("Stub!"); 
public native voidseekTo(int msec)

public voidselectTrack(int index)

 throw new RuntimeException("Stub!"); 
public voidsetAudioAttributes(android.media.AudioAttributes attributes)

 throw new RuntimeException("Stub!"); 
public native voidsetAudioSessionId(int sessionId)

public voidsetAudioStreamType(int streamtype)

 throw new RuntimeException("Stub!"); 
public voidsetAuxEffectSendLevel(float level)

 throw new RuntimeException("Stub!"); 
public voidsetDataSource(android.content.Context context, android.net.Uri uri)

 throw new RuntimeException("Stub!"); 
public voidsetDataSource(android.content.Context context, android.net.Uri uri, java.util.Map headers)

 throw new RuntimeException("Stub!"); 
public voidsetDataSource(java.lang.String path)

 throw new RuntimeException("Stub!"); 
public voidsetDataSource(java.io.FileDescriptor fd)

 throw new RuntimeException("Stub!"); 
public voidsetDataSource(java.io.FileDescriptor fd, long offset, long length)

 throw new RuntimeException("Stub!"); 
public voidsetDisplay(android.view.SurfaceHolder sh)

 throw new RuntimeException("Stub!"); 
public native voidsetLooping(boolean looping)

public native voidsetNextMediaPlayer(android.media.MediaPlayer next)

public voidsetOnBufferingUpdateListener(android.media.MediaPlayer$OnBufferingUpdateListener listener)

 throw new RuntimeException("Stub!"); 
public voidsetOnCompletionListener(android.media.MediaPlayer$OnCompletionListener listener)

 throw new RuntimeException("Stub!"); 
public voidsetOnErrorListener(android.media.MediaPlayer$OnErrorListener listener)

 throw new RuntimeException("Stub!"); 
public voidsetOnInfoListener(android.media.MediaPlayer$OnInfoListener listener)

 throw new RuntimeException("Stub!"); 
public voidsetOnPreparedListener(android.media.MediaPlayer$OnPreparedListener listener)

 throw new RuntimeException("Stub!"); 
public voidsetOnSeekCompleteListener(android.media.MediaPlayer$OnSeekCompleteListener listener)

 throw new RuntimeException("Stub!"); 
public voidsetOnTimedTextListener(android.media.MediaPlayer$OnTimedTextListener listener)

 throw new RuntimeException("Stub!"); 
public voidsetOnVideoSizeChangedListener(android.media.MediaPlayer$OnVideoSizeChangedListener listener)

 throw new RuntimeException("Stub!"); 
public voidsetScreenOnWhilePlaying(boolean screenOn)

 throw new RuntimeException("Stub!"); 
public voidsetSurface(android.view.Surface surface)

 throw new RuntimeException("Stub!"); 
public voidsetVideoScalingMode(int mode)

 throw new RuntimeException("Stub!"); 
public voidsetVolume(float leftVolume, float rightVolume)

 throw new RuntimeException("Stub!"); 
public voidsetWakeMode(android.content.Context context, int mode)

 throw new RuntimeException("Stub!"); 
public voidstart()

 throw new RuntimeException("Stub!"); 
public voidstop()

 throw new RuntimeException("Stub!");