|
|
|
|
@ -183,6 +183,7 @@ public class LiveActivity extends BaseActivity implements CustomKeyDownLive.List |
|
|
|
|
mBinding.control.action.change.setOnClickListener(view -> onChange()); |
|
|
|
|
mBinding.control.action.player.setOnClickListener(view -> onChoose()); |
|
|
|
|
mBinding.control.action.decode.setOnClickListener(view -> onDecode()); |
|
|
|
|
mBinding.control.action.text.setOnLongClickListener(view -> onTextLong()); |
|
|
|
|
mBinding.control.action.speed.setOnLongClickListener(view -> onSpeedLong()); |
|
|
|
|
mBinding.control.action.getRoot().setOnTouchListener(this::onActionTouch); |
|
|
|
|
mBinding.video.setOnTouchListener((view, event) -> mKeyDown.onTouchEvent(event)); |
|
|
|
|
@ -407,6 +408,11 @@ public class LiveActivity extends BaseActivity implements CustomKeyDownLive.List |
|
|
|
|
setRedirect(true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private boolean onTextLong() { |
|
|
|
|
onSubtitleClick(); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private boolean onActionTouch(View v, MotionEvent e) { |
|
|
|
|
if (e.getAction() == MotionEvent.ACTION_UP) setR1Callback(); |
|
|
|
|
return false; |
|
|
|
|
@ -682,6 +688,7 @@ public class LiveActivity extends BaseActivity implements CustomKeyDownLive.List |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void onSubtitleClick() { |
|
|
|
|
App.post(this::hideControl, 200); |
|
|
|
|
App.post(() -> SubtitleDialog.create().view(mBinding.exo.getSubtitleView()).show(this), 200); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|