Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
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 ()

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