added in API level 1

MediaController.MediaPlayerControl

public static interface MediaController.MediaPlayerControl

android.widget.MediaController.MediaPlayerControl


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

canPause

added in API level 5
boolean canPause ()

Returns
boolean

canSeekBackward

added in API level 5
boolean canSeekBackward ()

Returns
boolean

canSeekForward

added in API level 5
boolean canSeekForward ()

Returns
boolean

getAudioSessionId

added in API level 18
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
int The audio session, or 0 if there was an error.

getBufferPercentage

added in API level 1
int getBufferPercentage ()

Returns
int

getCurrentPosition

added in API level 1
int getCurrentPosition ()

Returns
int

getDuration

added in API level 1
int getDuration ()

Returns
int

isPlaying

added in API level 1
boolean isPlaying ()

Returns
boolean

pause

added in API level 1
void pause ()

seekTo

added in API level 1
void seekTo (int pos)

Parameters
pos int

start

added in API level 1
void start ()