码迷,mamicode.com
首页 > 移动开发 > 详细

android videoView 加载等待

时间:2017-09-06 13:02:16      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:hand   handle   new   col   div   current   isp   style   roi   

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 加载等待

标签:hand   handle   new   col   div   current   isp   style   roi   

原文地址:http://www.cnblogs.com/rchao/p/7483930.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!