Android APIs
Added in API level 1
public static interface

MediaController.MediaPlayerControl

android.widget.MediaController.MediaPlayerControl
Known Indirect Subclasses

Summary

Public Methods
abstract boolean canPause()
abstract boolean canSeekBackward()
abstract boolean canSeekForward()
abstract int getAudioSessionId()
Get the audio session id for the player used by this VideoView.
abstract int getBufferPercentage()
abstract int getCurrentPosition()
abstract int getDuration()
abstract boolean isPlaying()
abstract void pause()
abstract void seekTo(int pos)
abstract void start()

Public Methods

public abstract boolean canPause ()

Added in API level 5

public abstract boolean canSeekBackward ()

Added in API level 5

public abstract boolean canSeekForward ()

Added in API level 5

public abstract int getAudioSessionId ()

Added in API level 18

Get the audio session id for the player used by this VideoView. This can be used to apply audio effects to the audio track of a video.

Returns
  • The audio session, or 0 if there was an error.

public abstract int getBufferPercentage ()

Added in API level 1

public abstract int getCurrentPosition ()

Added in API level 1

public abstract int getDuration ()

Added in API level 1

public abstract boolean isPlaying ()

Added in API level 1

public abstract void pause ()

Added in API level 1

public abstract void seekTo (int pos)

Added in API level 1

public abstract void start ()

Added in API level 1