Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Error on VideoRecorder sample

$
0
0

I'm testing around the video recorder sample from xamarin knowledge base: http://docs.xamarin.com/recipes/android/media/video/record_video

the variable Path = /mnt/sdcard/test.mp4

Debugger:

[MediaRecorderJNI] prepare: surface=0x4b10eb40 (identity=163) [MediaRecorder] start failed: -19 Java.Lang.RuntimeException: Exception of type 'Java.Lang.RuntimeException' was thrown. at Android.Runtime.JNIEnv.CallVoidMethod (IntPtr jobject, IntPtr jmethod) [0x00022] in /Users/builder/data/lanes/monodroid-lion-monodroid-4.6.6-branch/6d7480e9/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:356 at Android.Media.MediaRecorder.Start () [0x0003e] in /Users/builder/data/lanes/monodroid-lion-monodroid-4.6.6-branch/6d7480e9/source/monodroid/src/Mono.Android/platforms/android-12/src/generated/Android.Media.MediaRecorder.cs:1192 at chatterbox.mRecorder+c__AnonStorey2.<>m__8 (System.Object , System.EventArgs ) [0x000b6] in /Users/utente/Xamarin-Projects/Doxa/chatterbox/Recorder.cs:48 --- End of managed exception stack trace --- java.lang.RuntimeException: start failed. at android.media.MediaRecorder.start(Native Method) at mono.android.view.View_OnClickListenerImplementor.n_onClick(Native Method) at mono.android.view.View_OnClickListenerImplementor.onClick(View_OnClickListenerImplementor.java:29) at android.view.View.performClick(View.java:4202) at android.view.View$PerformClick.run(View.java:17340) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5039) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method)

Can't understand where is the issue. Please help. Thanks, Max.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>