MediaRecorder: 启动失败 -1 是什么意思?

发布于 2024-12-17 02:39:01 字数 2660 浏览 2 评论 0原文

找不到 MediaRecorder: start failed -1 错误消息的含义。

当我调用 MediaRecorder.start(); 时我得到了它

谢谢您的宝贵时间。

11-17 20:01:49.726: E/MediaRecorder(20600): start failed: -1
11-17 20:01:49.726: W/dalvikvm(20600): threadid=1: thread exiting with uncaught exception (group=0x400207d8)
11-17 20:01:49.726: E/AndroidRuntime(20600): FATAL EXCEPTION: main
11-17 20:01:49.726: E/AndroidRuntime(20600): java.lang.IllegalStateException: Could not execute method of the activity
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.view.View$1.onClick(View.java:2072)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.view.View.performClick(View.java:2408)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.view.View$PerformClick.run(View.java:8816)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.os.Handler.handleCallback(Handler.java:587)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.os.Handler.dispatchMessage(Handler.java:92)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.os.Looper.loop(Looper.java:123)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.app.ActivityThread.main(ActivityThread.java:4633)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at java.lang.reflect.Method.invokeNative(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at java.lang.reflect.Method.invoke(Method.java:521)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at dalvik.system.NativeStart.main(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600): Caused by: java.lang.reflect.InvocationTargetException
11-17 20:01:49.726: E/AndroidRuntime(20600):    at com.cording.RecordTab.onMyButtonClick(RecordTab.java:64)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at java.lang.reflect.Method.invokeNative(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at java.lang.reflect.Method.invoke(Method.java:521)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.view.View$1.onClick(View.java:2067)
11-17 20:01:49.726: E/AndroidRuntime(20600):    ... 11 more
11-17 20:01:49.726: E/AndroidRuntime(20600): Caused by: java.lang.RuntimeException: start failed.
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.media.MediaRecorder.start(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at com.cording.Recorder.start(Recorder.java:130)
11-17 20:01:49.726: E/AndroidRuntime(20600):    ... 15 more

Couldn't find what the MediaRecorder: start failed -1 error message means.

I'm getting it when I call MediaRecorder.start();

Thankyou for your time.

11-17 20:01:49.726: E/MediaRecorder(20600): start failed: -1
11-17 20:01:49.726: W/dalvikvm(20600): threadid=1: thread exiting with uncaught exception (group=0x400207d8)
11-17 20:01:49.726: E/AndroidRuntime(20600): FATAL EXCEPTION: main
11-17 20:01:49.726: E/AndroidRuntime(20600): java.lang.IllegalStateException: Could not execute method of the activity
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.view.View$1.onClick(View.java:2072)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.view.View.performClick(View.java:2408)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.view.View$PerformClick.run(View.java:8816)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.os.Handler.handleCallback(Handler.java:587)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.os.Handler.dispatchMessage(Handler.java:92)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.os.Looper.loop(Looper.java:123)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.app.ActivityThread.main(ActivityThread.java:4633)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at java.lang.reflect.Method.invokeNative(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at java.lang.reflect.Method.invoke(Method.java:521)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at dalvik.system.NativeStart.main(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600): Caused by: java.lang.reflect.InvocationTargetException
11-17 20:01:49.726: E/AndroidRuntime(20600):    at com.cording.RecordTab.onMyButtonClick(RecordTab.java:64)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at java.lang.reflect.Method.invokeNative(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at java.lang.reflect.Method.invoke(Method.java:521)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.view.View$1.onClick(View.java:2067)
11-17 20:01:49.726: E/AndroidRuntime(20600):    ... 11 more
11-17 20:01:49.726: E/AndroidRuntime(20600): Caused by: java.lang.RuntimeException: start failed.
11-17 20:01:49.726: E/AndroidRuntime(20600):    at android.media.MediaRecorder.start(Native Method)
11-17 20:01:49.726: E/AndroidRuntime(20600):    at com.cording.Recorder.start(Recorder.java:130)
11-17 20:01:49.726: E/AndroidRuntime(20600):    ... 15 more

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酷遇一生 2024-12-24 02:39:01

您是否尝试过:

  1. 首先准备剪辑
  2. 以确保没有活动录制

Did you try:

  1. preparing the clip first
  2. ensure there's no active recording
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文