FileDocCategorySizeDatePackage
MediaPlayerProxy.javaAPI DocAndroid 5.1 API1851Thu Mar 12 22:22:48 GMT 2015com.android.ex.variablespeed

MediaPlayerProxy

public interface MediaPlayerProxy
Interface that supports a subset of the operations on {@link android.media.MediaPlayer}.

This subset is arbitrarily defined - at the moment it is the subset that the voicemail playback requires.

This interface exists to make alternate implementations to the standard media player swappable, as well as making it much easier to test code that directly uses a media player.

Fields Summary
Constructors Summary
Methods Summary
public intgetCurrentPosition()

public intgetDuration()

public booleanisPlaying()

public booleanisReadyToPlay()

public voidpause()

public voidprepare()

public voidrelease()

public voidreset()

public voidseekTo(int startPosition)

public voidsetAudioStreamType(int streamType)

public voidsetDataSource(java.lang.String path)

public voidsetDataSource(android.content.Context context, android.net.Uri intentUri)

public voidsetOnCompletionListener(MediaPlayer.OnCompletionListener listener)

public voidsetOnErrorListener(MediaPlayer.OnErrorListener listener)

public voidstart()