提交 b70506ee 编写于 作者: S shuyu

1.3.8 修改了进度条buffer进度条不出现的问题

上级 375e1875
......@@ -47,7 +47,7 @@ compile 'com.shuyu:gsyVideoPlayer:1.3.7'
* <h4>3、详情模式</h4>
<img src="https://github.com/CarGuo/GSYVideoPlayer/blob/master/04.gif" width="240px" height="426px"/>
### 1.3.8 添加了lib封面对复用封面的支持和demo
### 1.3.8 添加了lib封面对复用封面的支持和demo,修复了缓冲进度条
### 1.3.7 优化了弹出框;优化了暂停的时候(全屏/恢复全屏/退到)会是黑色的问题;解决了暂停的时候拖动进度条问题
......
......@@ -1004,7 +1004,9 @@ public abstract class GSYVideoPlayer extends GSYBaseVideoPlayer implements View.
if (progress != 0) mProgressBar.setProgress(progress);
}
if (secProgress > 95) secProgress = 100;
if (secProgress != 0) mProgressBar.setSecondaryProgress(secProgress);
if (secProgress != 0 && !mCacheFile) {
mProgressBar.setSecondaryProgress(secProgress);
}
mTotalTimeTextView.setText(CommonUtil.stringForTime(totalTime));
if (currentTime > 0)
mCurrentTimeTextView.setText(CommonUtil.stringForTime(currentTime));
......
......@@ -339,7 +339,7 @@ public class StandardGSYVideoPlayer extends GSYVideoPlayer {
protected void setProgressAndTime(int progress, int secProgress, int currentTime, int totalTime) {
super.setProgressAndTime(progress, secProgress, currentTime, totalTime);
if (progress != 0) mBottomProgressBar.setProgress(progress);
if (secProgress != 0) mBottomProgressBar.setSecondaryProgress(secProgress);
if (secProgress != 0 && !mCacheFile) mBottomProgressBar.setSecondaryProgress(secProgress);
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册