From 8398c2c751c016f14bb69ddf259349ab4c6079cb Mon Sep 17 00:00:00 2001 From: equationl <1335778502@qq.com> Date: Thu, 16 Jan 2020 23:05:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=96=E5=8A=A8=E5=BA=95=E9=83=A8=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6=E6=9D=A1=E6=97=B6=E5=AE=9E=E6=97=B6=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shuyu/gsyvideoplayer/video/base/GSYVideoControlView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYVideoControlView.java b/gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYVideoControlView.java index 658177b13..6f0bf2325 100644 --- a/gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYVideoControlView.java +++ b/gsyVideoPlayer-java/src/main/java/com/shuyu/gsyvideoplayer/video/base/GSYVideoControlView.java @@ -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