android videoView 加载等待
Posted 荣超
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了android videoView 加载等待相关的知识,希望对你有一定的参考价值。
final Handler handler = new Handler(); Runnable runnable = new Runnable() { public void run() { int duration = mVideoView.getCurrentPosition(); if(mVideoView.isPlaying()){ if (old_duration == duration) { mProgressBar.setVisibility(View.VISIBLE); } else { mProgressBar.setVisibility(View.GONE); } } old_duration = duration; handler.postDelayed(runnable, 500); } };
handler.postDelayed(runnable, 0);
以上是关于android videoView 加载等待的主要内容,如果未能解决你的问题,请参考以下文章