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

点击录像的时候报错了 #1

Open
liugt34 opened this issue Apr 10, 2018 · 0 comments
Open

点击录像的时候报错了 #1

liugt34 opened this issue Apr 10, 2018 · 0 comments

Comments

@liugt34
Copy link

liugt34 commented Apr 10, 2018

OS:Android 7.1.1

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.yph.camerasurfaceview, PID: 8969
java.lang.RuntimeException: start failed.
at android.media.MediaRecorder.start(Native Method)
at com.yph.camerasurfaceview.CameraSurfaceView.startRecord(CameraSurfaceView.java:455)
at com.yph.camerasurfaceview.CameraSurfaceView.startRecord(CameraSurfaceView.java:417)
at com.yph.camerasurfaceview.MainActivity$2.onCheckedChanged(MainActivity.java:33)
at android.widget.CompoundButton.setChecked(CompoundButton.java:156)
at android.widget.ToggleButton.setChecked(ToggleButton.java:71)
at android.widget.CompoundButton.toggle(CompoundButton.java:115)
at android.widget.CompoundButton.performClick(CompoundButton.java:120)
at android.view.View$PerformClick.run(View.java:22429)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Application terminated.

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