Skip to content

Commit

Permalink
Merge pull request CarGuo#2531 from equationl/master
Browse files Browse the repository at this point in the history
拖动底部进度条时实时显示时间
  • Loading branch information
CarGuo authored Jan 17, 2020
2 parents 921dd2f + 8398c2c commit 93bb8bc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,10 @@ public boolean setUp(String url, boolean cacheWithPlay, File cachePath, String t

@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
if (fromUser) {
int duration = getDuration();
mCurrentTimeTextView.setText(CommonUtil.stringForTime(progress * duration / 100));
}
}

@Override
Expand Down

0 comments on commit 93bb8bc

Please sign in to comment.