android videoView 加载等待

得意犹堪夸世俗,诏黄新湿字如鸦。这篇文章主要讲述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 加载等待】 

    推荐阅读