-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
startRecording throws IOException in MediaRecorder prepare call #9
Comments
Hi what device and OS version are you using |
@triniwiz hi 😊 This was on a Samsung Galaxy Tab running Android 7.1.1 |
Just FYI: added jitpack to my build.gradle so I could install fancycamera version Also: the error does not happen in the Android Studio device emulator (Pixel 3a, API 29), though I can't fully test functionality on the emulator since it doesn't actually save a real video to the device storage. |
@triniwiz I was able to test it on a newer Android phone and same error. Device Huawei Y6s, Android version 9.1.0.246 |
Hi again @triniwiz Maybe a long shot, but I was wondering if you have any recommendations for what I can do to debug this issue? I created an example repo with a simple version of my app to ease debugging here: https://github.com/disbelief/video-recorder-test And I added an issue with all the details I've come up with thus far: disbelief/video-recorder-test#1 Any help/advice would be greatly appreciated. |
Looking at the log this |
Thanks will I try cutting down on the custom configuration and relying on the defaults of the camcorder. I think possibly that "NULL surface" is where the preview would be displayed typically... possibly two processes trying to access the camera output at the same time? |
@triniwiz sorry, something else I just noticed: there's a stacktrace printed earlier in the logs saying "The camera device has been disconnected". This is when the camera is first initialized in preview mode, before Oddly the preview continues to work and the app does not crash. However perhaps this has something to do with the subsequent error thrown by startRecording? Here's the earlier stack trace, which is thrown when
Does this indicate anything to you? |
I'm also trying to have a camera functionality work with TeamHive/capacitor-video-recorder, but it's broken. Did you ever figure it out? @disbelief |
I’m currently working on some v2 updates which should address a couple issues |
This is on a Samsung device running Android 7.1.1
For background,
fancycamera
is a dependency of the capacitor-video-recorder plugin. I've updated the plugin to use the latest version of fancycamera from maven (v1.2.2
).Calling
startRecording
throws an uncaught IOException which locks up my app. Here is the log output:Previous to calling
startRecording
my app displays the video preview correctly, so access to the camera and audio are not an issue.The text was updated successfully, but these errors were encountered: