Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

点击按住拍,进度条没有往前进,卡住。没有任何反应,再点,出现“准备中”,然后就不能再点了 #375

Open
liuyi opened this issue Mar 16, 2019 · 1 comment

Comments

@liuyi
Copy link

liuyi commented Mar 16, 2019

按module导入到工程,接入,运行。点击:
点击按住拍,进度条没有往前进,卡住。没有任何反应,再点,出现“准备中”,然后就不能再点了。
但是镜头还是可以动

@liuyi
Copy link
Author

liuyi commented Mar 16, 2019

已经修改源代码 解决了以上问题:
在MediaRecorderActivity.java line320行以后 增加:
在小米上面 长按后松手 返回的是cancel动作

case MotionEvent.ACTION_CANCEL:
// startState = false;//added by liuyi
mMediaRecorder.setRecordState(false);
if (mMediaObject.getDuration() >= RECORD_TIME_MAX) {
mTitleNext.performClick();
} else {
mMediaRecorder.setStopDate();
setStopUI();
}

                break;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant