From c718b05922c83c40b3146f8d027457f3f9a2b5f7 Mon Sep 17 00:00:00 2001 From: liujing Date: Sun, 25 Oct 2020 16:58:02 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E6=89=8B=E5=8A=BF=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mogo/module/v2x/view/SimpleCoverVideoPlayer.kt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/SimpleCoverVideoPlayer.kt b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/SimpleCoverVideoPlayer.kt index 9fbdfed968..81705ba966 100644 --- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/SimpleCoverVideoPlayer.kt +++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/SimpleCoverVideoPlayer.kt @@ -75,10 +75,11 @@ class SimpleCoverVideoPlayer : StandardGSYVideoPlayer { } /* - * 默认双击暂停 单击响应事件也=暂停 + * 默认双击暂停 单击响应事件也=暂停/继续播放 + * 因为相应区域的关系 改为onClick方法实现 * */ override fun onClickUiToggle() { - super.touchDoubleUp() +// super.touchDoubleUp() } override fun updateStartImage() { @@ -158,8 +159,10 @@ class SimpleCoverVideoPlayer : StandardGSYVideoPlayer { override fun onClick(v: View?) { super.onClick(v) Log.d("kl","onClick160"+mCurrentState) - if (mCurrentState == CURRENT_STATE_PAUSE || mCurrentState == CURRENT_STATE_PLAYING){ - touchDoubleUp() + if (mCurrentState == CURRENT_STATE_PAUSE){ + onVideoResume() + }else if (mCurrentState == CURRENT_STATE_PLAYING){ + onVideoPause() } v?.let { when (v) {