我自定义Sipdroid代码。我在进行语音通话时应用程序正常运行,但是当我进行视频通话时,应用程序停止运行。 我正在使用Asterisk服务器上运行的免费PBX。 我喜欢视频编解码器:
当应用程序停止时,我收到以下错误消息:
02-19 12:53:57.815: V/videocamera(12876): initializeVideo
02-19 12:53:57.815: V/videocamera(12876): SurfaceHolder is null
02-19 12:53:57.815: V/videocamera(12876): startVideoRecording
02-19 12:53:57.865: I/VideoPreview(12876): ar 1.2222222 setting size: 176x144
02-19 12:53:57.865: I/VideoPreview(12876): ar 1.2222222 setting size: 176x144
02-19 12:53:57.885: V/videocamera(12876): initializeVideo
02-19 12:53:59.315: I/MediaRecorderJNI(12876): prepare: surface=0x77e37460
02-19 12:53:59.665: E/MediaRecorder(12876): start failed: -19
02-19 12:53:59.675: D/AndroidRuntime(12876): Shutting down VM
02-19 12:53:59.675: W/dalvikvm(12876): threadid=1: thread exiting with uncaught exception (group=0x417aada0)
02-19 12:53:59.675: E/AndroidRuntime(12876): FATAL EXCEPTION: main
02-19 12:53:59.675: E/AndroidRuntime(12876): Process: org.sipdroid.sipua, PID: 12876
02-19 12:53:59.675: E/AndroidRuntime(12876): java.lang.RuntimeException: start failed.
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.media.MediaRecorder.start(Native Method)
02-19 12:53:59.675: E/AndroidRuntime(12876): at org.sipdroid.sipua.ui.VideoCamera.initializeVideo(VideoCamera.java:409)
02-19 12:53:59.675: E/AndroidRuntime(12876): at org.sipdroid.sipua.ui.VideoCamera.surfaceChanged(VideoCamera.java:313)
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.view.SurfaceView.updateWindow(SurfaceView.java:613)
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.view.SurfaceView.access$000(SurfaceView.java:94)
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:183)
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:888)
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2180)
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1253)
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6596)
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:803)
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.view.Choreographer.doCallbacks(Choreographer.java:603)
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.view.Choreographer.doFrame(Choreographer.java:573)
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:789)
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.os.Handler.handleCallback(Handler.java:733)
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.os.Handler.dispatchMessage(Handler.java:95)
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.os.Looper.loop(Looper.java:136)
02-19 12:53:59.675: E/AndroidRuntime(12876): at android.app.ActivityThread.main(ActivityThread.java:5476)
02-19 12:53:59.675: E/AndroidRuntime(12876): at java.lang.reflect.Method.invokeNative(Native Method)
02-19 12:53:59.675: E/AndroidRuntime(12876): at java.lang.reflect.Method.invoke(Method.java:515)
02-19 12:53:59.675: E/AndroidRuntime(12876): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
02-19 12:53:59.675: E/AndroidRuntime(12876): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
02-19 12:53:59.675: E/AndroidRuntime(12876): at dalvik.system.NativeStart.main(Native Method)
02-19 12:54:01.825: I/Process(12876): Sending signal. PID: 12876 SIG: 9
有没有人遇到过这个问题?我怎么能克服这个? 提前致谢, 路易斯佩雷拉