本文整理了Java中com.devlin_n.yinyangplayer.player.YinYangPlayer.setVideoController()
方法的一些代码示例,展示了YinYangPlayer.setVideoController()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YinYangPlayer.setVideoController()
方法的具体详情如下:
包路径:com.devlin_n.yinyangplayer.player.YinYangPlayer
类名称:YinYangPlayer
方法名:setVideoController
[英]设置控制器
[中]设置控制器
代码示例来源:origin: yuger/TVLive
/**
* 播放下一条视频
*/
private void playNext() {
VideoModel videoModel = mVideoModels.get(mCurrentVideoPosition);
if (videoModel != null) {
mCurrentUrl = videoModel.url;
mCurrentTitle = videoModel.title;
mCurrentPosition = 0;
setVideoController(videoModel.controller);
}
}
代码示例来源:origin: yuger/TVLive
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_tv);
yinYangPlayer = (YinYangPlayer) findViewById(R.id.player);
String url = getIntent().getStringExtra("url");
String name = getIntent().getStringExtra("name");
ActionBar actionBar = getSupportActionBar();
if (actionBar != null) {
actionBar.setTitle(name);
actionBar.setDisplayHomeAsUpEnabled(true);
}
StandardVideoController controller = new StandardVideoController(this);
controller.setLive(true);
Glide.with(this).load("http://7xqblc.com1.z0.glb.clouddn.com/tvlive.jpg").asBitmap()
.animate(R.anim.anim_alpha_in).placeholder(android.R.color.black).into(controller.getThumb());
yinYangPlayer.autoRotate()
// .useAndroidMediaPlayer()
.setUrl(url)
.setVideoController(controller);
}
代码示例来源:origin: yuger/TVLive
private void startPlay() {
if (isCache) videoView.enableCache();
videoView.skipPositionWhenPlay(url, position).setVideoController(new FloatController(getApplicationContext())).start();
wm.addView(floatView, wmParams);
}
内容来源于网络,如有侵权,请联系作者删除!