{"action":"created","issue":{"url":"https://api.github.com/repos/commonsguy/cwac-cam2/issues/239","repository_url":"https://api.github.com/repos/commonsguy/cwac-cam2","labels_url":"https://api.github.com/repos/commonsguy/cwac-cam2/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/commonsguy/cwac-cam2/issues/239/comments","events_url":"https://api.github.com/repos/commonsguy/cwac-cam2/issues/239/events","html_url":"https://github.com/commonsguy/cwac-cam2/issues/239","id":164493949,"number":239,"title":"E/MediaRecorder: start failed: -38","user":{"login":"Ponsen","id":6484343,"avatar_url":"https://avatars.githubusercontent.com/u/6484343?v=3","gravatar_id":"","url":"https://api.github.com/users/Ponsen","html_url":"https://github.com/Ponsen","followers_url":"https://api.github.com/users/Ponsen/followers","following_url":"https://api.github.com/users/Ponsen/following{/other_user}","gists_url":"https://api.github.com/users/Ponsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Ponsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ponsen/subscriptions","organizations_url":"https://api.github.com/users/Ponsen/orgs","repos_url":"https://api.github.com/users/Ponsen/repos","events_url":"https://api.github.com/users/Ponsen/events{/privacy}","received_events_url":"https://api.github.com/users/Ponsen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-08T09:35:46Z","updated_at":"2016-07-08T10:13:34Z","closed_at":"2016-07-08T10:13:34Z","body":"Hi,\r\n\r\nI'n having an issue where I want to record a video coming from an activity which uses the camara, too.\r\n\r\nIn detail I have a WebRTC (Voip) actitivy where you can take pictures or record videos during a call. When I'm in a call I want to record a video, but this results in the following error:\r\n \r\n`07-08 11:19:04.044 9841-9841/com.company.product E/MediaRecorder: start failed: -38\r\n07-08 11:19:04.044 9841-9841/com.company.product E/CameraFragment: Exception recording video\r\n                                                                       java.lang.IllegalStateException\r\n                                                                           at android.media.MediaRecorder._start(Native Method)\r\n                                                                           at android.media.MediaRecorder.start(MediaRecorder.java:946)\r\n                                                                           at com.commonsware.cwac.cam2.ClassicCameraEngine.recordVideo(ClassicCameraEngine.java:289)\r\n                                                                           at com.commonsware.cwac.cam2.CameraController.recordVideo(CameraController.java:215)\r\n                                                                           at com.commonsware.cwac.cam2.CameraFragment.recordVideo(CameraFragment.java:457)\r\n                                                                           at com.commonsware.cwac.cam2.CameraFragment.performCameraAction(CameraFragment.java:418)\r\n                                                                           at com.commonsware.cwac.cam2.CameraFragment$1.onClick(CameraFragment.java:243)\r\n                                                                           at android.view.View.performClick(View.java:5698)\r\n                                                                           at android.view.View$PerformClick.run(View.java:22565)\r\n                                                                           at android.os.Handler.handleCallback(Handler.java:739)\r\n                                                                           at android.os.Handler.dispatchMessage(Handler.java:95)\r\n                                                                           at android.os.Looper.loop(Looper.java:158)\r\n                                                                           at android.app.ActivityThread.main(ActivityThread.java:7231)\r\n                                                                           at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)\r\n                                                                           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)`\r\n\r\nRecording a video and not beeing in a call works just fine.\r\nTaking a Picture during a call works fine, too.\r\n\r\nI've tried adding a delay (3 seks) in AbstractCameraActivity when calling init(), to see if it was a race condition where the camera was not released in time, but I can see the preview and as I said: taking pictures works.\r\n\r\nAny Ideas?"},"comment":{"url":"https://api.github.com/repos/commonsguy/cwac-cam2/issues/comments/231324923","html_url":"https://github.com/commonsguy/cwac-cam2/issues/239#issuecomment-231324923","issue_url":"https://api.github.com/repos/commonsguy/cwac-cam2/issues/239","id":231324923,"user":{"login":"Ponsen","id":6484343,"avatar_url":"https://avatars.githubusercontent.com/u/6484343?v=3","gravatar_id":"","url":"https://api.github.com/users/Ponsen","html_url":"https://github.com/Ponsen","followers_url":"https://api.github.com/users/Ponsen/followers","following_url":"https://api.github.com/users/Ponsen/following{/other_user}","gists_url":"https://api.github.com/users/Ponsen/gists{/gist_id}","starred_url":"https://api.github.com/users/Ponsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ponsen/subscriptions","organizations_url":"https://api.github.com/users/Ponsen/orgs","repos_url":"https://api.github.com/users/Ponsen/repos","events_url":"https://api.github.com/users/Ponsen/events{/privacy}","received_events_url":"https://api.github.com/users/Ponsen/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T10:13:34Z","updated_at":"2016-07-08T10:13:34Z","body":"Just found out, that the mic is still block by my activity. Releasing the microfone and the camera fixes the issue."}}
{"actor":{"display_login":"Ponsen"}}