提交 59e6253f 编写于 作者: G guoshuyu

fix #2010

上级 33993818
...@@ -124,6 +124,9 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O ...@@ -124,6 +124,9 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O
//lazy的setup //lazy的setup
protected boolean mSetUpLazy = false; protected boolean mSetUpLazy = false;
//seek touch
protected boolean mHadSeekTouch = false;
//播放按键 //播放按键
protected View mStartButton; protected View mStartButton;
...@@ -576,6 +579,7 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O ...@@ -576,6 +579,7 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O
@Override @Override
public void onStartTrackingTouch(SeekBar seekBar) { public void onStartTrackingTouch(SeekBar seekBar) {
mHadSeekTouch = true;
} }
/*** /***
...@@ -600,6 +604,7 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O ...@@ -600,6 +604,7 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O
Debuger.printfWarning(e.toString()); Debuger.printfWarning(e.toString());
} }
} }
mHadSeekTouch = false;
} }
@Override @Override
...@@ -920,7 +925,9 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O ...@@ -920,7 +925,9 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O
if (mProgressBar == null || mTotalTimeTextView == null || mCurrentTimeTextView == null) { if (mProgressBar == null || mTotalTimeTextView == null || mCurrentTimeTextView == null) {
return; return;
} }
if(mHadSeekTouch) {
return;
}
if (!mTouchingProgressBar) { if (!mTouchingProgressBar) {
if (progress != 0) mProgressBar.setProgress(progress); if (progress != 0) mProgressBar.setProgress(progress);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册