public static interface IMediaController.MediaPlayerControl
Modifier and Type | Method and Description |
---|---|
boolean |
canPause()
Can pause.
|
boolean |
canSeekBackward()
Can seek backward.
|
boolean |
canSeekForward()
Can seek forward.
|
int |
getBufferPercentage()
Gets buffer percentage.
|
long |
getCurrentPosition()
Gets current position.
|
long |
getDuration()
Gets the duration of the file or stream.
|
boolean |
isPlaying()
Checks whether the MediaPlayer is playing.
|
void |
pause()
Pause play.
|
void |
seekTo(long pos)
Seeks to specified time position.
|
void |
start()
Start play.
|
void start()
void pause()
long getDuration()
long getCurrentPosition()
void seekTo(long pos)
pos
- the posboolean isPlaying()
int getBufferPercentage()
boolean canPause()
boolean canSeekBackward()
boolean canSeekForward()