[fix] 手势冲突
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user