本文整理汇总了Java中android.widget.MediaController.MediaPlayerControl方法的典型用法代码示例。如果您正苦于以下问题:Java MediaController.MediaPlayerControl方法的具体用法?Java MediaController.MediaPlayerControl怎么用?Java MediaController.MediaPlayerControl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.widget.MediaController
的用法示例。
在下文中一共展示了MediaController.MediaPlayerControl方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: seekTo
import android.widget.MediaController; //导入方法依赖的package包/类
@Override
public void seekTo(int pos) {
mSeekTarget = pos;
mSeekingViewsCount = mControls.size();
setProgressBarIndeterminateVisibility(true);
for(MediaController.MediaPlayerControl mpc : mControls) {
mpc.seekTo(pos);
}
}
示例2: setMediaPlayer
import android.widget.MediaController; //导入方法依赖的package包/类
@Override
public void setMediaPlayer(MediaController.MediaPlayerControl player) {
mPlayer = player;
}
示例3: seekTo
import android.widget.MediaController; //导入方法依赖的package包/类
@Override
public void seekTo(int pos) {
for(MediaController.MediaPlayerControl mpc : mControls) {
mpc.seekTo(pos);
}
}
示例4: start
import android.widget.MediaController; //导入方法依赖的package包/类
@Override
public void start() {
for(MediaController.MediaPlayerControl mpc : mControls) {
mpc.start();
}
}
示例5: pause
import android.widget.MediaController; //导入方法依赖的package包/类
@Override
public void pause() {
for(MediaController.MediaPlayerControl mpc : mControls) {
mpc.pause();
}
}
示例6: MediaPlayerMultiControl
import android.widget.MediaController; //导入方法依赖的package包/类
public MediaPlayerMultiControl(MediaController.MediaPlayerControl... controls) {
mControls = new ArrayList<MediaController.MediaPlayerControl>();
for(MediaController.MediaPlayerControl mpc : controls) {
mControls.add(mpc);
}
}
示例7: setMediaPlayer
import android.widget.MediaController; //导入方法依赖的package包/类
@Override
public void setMediaPlayer(MediaController.MediaPlayerControl playerControl) {
super.setMediaPlayer(playerControl);
this.playerControl = playerControl;
}
示例8: getPlayerControl
import android.widget.MediaController; //导入方法依赖的package包/类
public MediaController.MediaPlayerControl getPlayerControl(){
return playerControl;
}
示例9: setObserveVideoPlayerCotrol
import android.widget.MediaController; //导入方法依赖的package包/类
public void setObserveVideoPlayerCotrol(MediaController.MediaPlayerControl playerCotrol){
this.playerControl = playerCotrol;
}
示例10: setMediaPlayer
import android.widget.MediaController; //导入方法依赖的package包/类
@Override
public void setMediaPlayer(MediaController.MediaPlayerControl player) {
}
示例11: setMediaPlayer
import android.widget.MediaController; //导入方法依赖的package包/类
public void setMediaPlayer (MediaController.MediaPlayerControl p) {
player = p;
updatePausePlay();
}
示例12: setMediaPlayer
import android.widget.MediaController; //导入方法依赖的package包/类
public void setMediaPlayer(MediaController.MediaPlayerControl player) {
mPlayer = player;
}
示例13: setMediaPlayer
import android.widget.MediaController; //导入方法依赖的package包/类
@Override
public void setMediaPlayer(MediaController.MediaPlayerControl playerControl) {
super.setMediaPlayer(playerControl);
this.playerControl = playerControl;
}
示例14: setController
import android.widget.MediaController; //导入方法依赖的package包/类
public void setController(MediaController.MediaPlayerControl controller) {
this.controller = controller;
postInvalidate();
}
示例15: MediaPlayerMultiControl
import android.widget.MediaController; //导入方法依赖的package包/类
public MediaPlayerMultiControl(MediaController.MediaPlayerControl... controls) {
mControls = new ArrayList<>();
for(MediaController.MediaPlayerControl mpc : controls) {
mControls.add(mpc);
}
}