From c262c9fcfb2a8015b6632769e80fcd24d5793922 Mon Sep 17 00:00:00 2001 From: chenfufeng Date: Mon, 29 Nov 2021 18:50:51 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=E8=B7=AF=E4=BE=A7=E6=91=84=E5=83=8F?= =?UTF-8?q?=E5=A4=B4=E7=9B=B4=E6=92=AD=E8=BF=99=E4=B8=80=E5=A5=97=E6=96=B9?= =?UTF-8?q?=E6=A1=88=E4=B8=B4=E6=97=B6=E4=B8=AD=E6=96=AD=E5=86=8D=E6=81=A2?= =?UTF-8?q?=E5=A4=8D=E7=BD=91=E7=BB=9C=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/function/hmi/ui/camera/CameraListView.kt | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/camera/CameraListView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/camera/CameraListView.kt index fcc51df921..ccaf2b79c6 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/camera/CameraListView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/camera/CameraListView.kt @@ -148,13 +148,18 @@ class CameraListView : FrameLayout { Logger.d(TAG, "onPlayEvent: event is:$event") when (event) { SimpleVideoPlayer.PLAY_EVT_PLAY_LOADING -> { - + // 会出现临时中断后又可以继续播放,需要停掉倒计时 + if (valueAnimator.isStarted || valueAnimator.isRunning) { + valueAnimator.cancel() + } } SimpleVideoPlayer.PLAY_EVT_PLAY_BEGIN -> { - clickListener?.onShowLive(true) - progressBar.visibility = View.GONE - svpPlayer.visibility = View.VISIBLE - isPlaySuccess = true + if (!isFirstPage && !isCarLive()) { + clickListener?.onShowLive(true) + progressBar.visibility = View.GONE + svpPlayer.visibility = View.VISIBLE + isPlaySuccess = true + } } else -> { Logger.w(TAG, "播放视频异常,event is:$event")