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")