public interface IPolyvMediaPlayerControl
extends android.widget.MediaController.MediaPlayerControl
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canPause()
返回true
|
boolean |
canSeekBackward()
返回true
|
boolean |
canSeekForward()
返回true
|
int |
getBufferPercentage()
取得视频缓存百分比
|
int |
getCurrentPosition()
取得视频播放进度当前位置
|
int |
getDuration()
取得总时长
|
boolean |
isPlaying()
是否播放中,包括暂停,缓冲
|
void |
pause()
暂停
|
void |
seekTo(int pos)
跳转到
|
void |
start()
开始
|
void start()
start 在接口中 android.widget.MediaController.MediaPlayerControlvoid pause()
pause 在接口中 android.widget.MediaController.MediaPlayerControlint getDuration()
getDuration 在接口中 android.widget.MediaController.MediaPlayerControlint getCurrentPosition()
getCurrentPosition 在接口中 android.widget.MediaController.MediaPlayerControlvoid seekTo(int pos)
seekTo 在接口中 android.widget.MediaController.MediaPlayerControlpos - 毫秒boolean isPlaying()
isPlaying 在接口中 android.widget.MediaController.MediaPlayerControlint getBufferPercentage()
getBufferPercentage 在接口中 android.widget.MediaController.MediaPlayerControlboolean canPause()
canPause 在接口中 android.widget.MediaController.MediaPlayerControlboolean canSeekBackward()
canSeekBackward 在接口中 android.widget.MediaController.MediaPlayerControlboolean canSeekForward()
canSeekForward 在接口中 android.widget.MediaController.MediaPlayerControl