public static interface UniversalMediaController.MediaPlayerControl
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canPause() |
boolean |
canSeekBackward() |
boolean |
canSeekForward() |
void |
closePlayer() |
int |
getBufferPercentage() |
int |
getCurrentPosition() |
int |
getDuration() |
boolean |
isPlaying() |
void |
pause() |
void |
seekTo(int pos) |
void |
setFullscreen(boolean fullscreen) |
void |
setFullscreen(boolean fullscreen,
int screenOrientation) |
void |
start() |
void start()
void pause()
int getDuration()
int getCurrentPosition()
void seekTo(int pos)
boolean isPlaying()
int getBufferPercentage()
boolean canPause()
boolean canSeekBackward()
boolean canSeekForward()
void closePlayer()
void setFullscreen(boolean fullscreen)
void setFullscreen(boolean fullscreen,
int screenOrientation)
fullscreen - screenOrientation - valid only fullscreen=true.values should be one of
ActivityInfo.SCREEN_ORIENTATION_PORTRAIT,
ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE,
ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT,
ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE