0
如何添加滾動條視頻?如何在video上添加滾動條查看
private VideoView vv;
vv = (VideoView) findViewById(R.id.videoView);
vv.isHorizontalScrollBarEnabled();
vv.canSeekForward();
vv.canSeekBackward();
我做錯了什麼?
如何添加滾動條視頻?如何在video上添加滾動條查看
private VideoView vv;
vv = (VideoView) findViewById(R.id.videoView);
vv.isHorizontalScrollBarEnabled();
vv.canSeekForward();
vv.canSeekBackward();
我做錯了什麼?
嗯,我想這就是所謂的MediaController沒有滾動條:)所以,如果你周圍的Googling的MediaController也許你會找到答案。
private MediaController mController;
mController = new MediaController(this) {
@Override
public void show(int timeout) {
super.show(0);
}
@Override
public void setMediaPlayer(MediaPlayerControl player) {
super.setMediaPlayer(player);
this.show();
}
@Override
public boolean dispatchKeyEvent(KeyEvent event) {
if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) {
((Activity) mContext).finish();
}
return true;
}
};
並在onDestory()上調用mController.hide()或停止視頻播放時。我希望它有幫助!
檢查:https://code.google.com/p/android/issues/detail?id=37229 – Lokesh
我不需要ScrollViews。我需要一個樂隊倒帶視頻。 – IP696
你的意思是你想要像時間軸,向後,向前,播放等媒體控制與視頻相關? – Badrul