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
Video recording fails to save to file #97
Comments
Have you registered an error listener? All the errors are thrown to error listeners which can be registered as below
Nothing can be implied from the information you provided above. Please reopen the issue when you have more information. |
I added the error listener, but it is never called (although the |
in logcat it gives me a lot of these: |
Interesting, can you update the library to version Also one more thing, are you setting the |
updated and I tried with the other way (setting it through the xml), but everything is the same I'm running it on xiaomi mi 5 (android 8.0, API 26) Maybe this is because the lib is using Timber? Saw there are not logs when I use Timber instead of Log |
Lib using Timber does not change anything. Try logging or throwing the throwable that you get in camera error listener. Something like,
|
No error is thrown even after logging |
@prajapatiravi257 are you using the same device as @yonathan06? If not what device are you on? If yes have you tested on other devices? This issue could be very specific to certain devices. Also try running the sampleApp on same device and see if you are still seeing same problem. |
Yes even i have the same vendor model xiaomi 6A, I had also tested it on moto g5s plus and its working fine. And yes i am same issue with the sample app in xiaomi device. |
Can it be that the device is mapped as Camera1 because of the capabilities check? |
yeah it can be but now i am using camera2 api from google samples for video recording and its working fine |
It seems, on certain devices, the library is falling back to camera1 implementation and thus could not start video recording (not supported on camera1). Implementing video recording on camera1 might be a future enhancement. In regards with this issue, the library functions as designed. |
stopVideoRecording()
always returns false, with no errorThe text was updated successfully, but these errors were encountered: