未验证 提交 93bb8bc7 编写于 作者: S Shuyu Guo 提交者: GitHub

Merge pull request #2531 from equationl/master

拖动底部进度条时实时显示时间
......@@ -570,6 +570,10 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O
@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
if (fromUser) {
int duration = getDuration();
mCurrentTimeTextView.setText(CommonUtil.stringForTime(progress * duration / 100));
}
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册