-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 Capture for Android 13 (SDK 33) doesn't work #1859
Comments
I face the same issue. It's strange... |
I found that the reason why it causes the result to be "Error: User cancelled xx" is because the confirmation screen (see the screenshot below) is missing after clicking end recording. I use a local android project (without react-native, pure native) and test the "same" code to come out with this screen, so there is no problem. I tried adjusting the react-native version, the android os version and android sdk version and found that only react-native + android 13 devices have this problem (regardless of react-native version and android sdk version). But I still don't know how to fix this issue .... |
I encountered the same error when trying to do video capture on an Android emulator that was using Android 13, but when I created a test build and put it on a real device both the image and video capturing worked correctly. Currently using version 0.37.3 of react-native-image-crop-picker and version 0.68.5 of RN. |
I am stuck at this. Any progress here. |
@huanguolin @jde8aa @Talhafayyaz11 Hi friends! I will mark this issue as resolved but first, let me help ya out! So, I'm going to take a stab that all 3 of you are using Android 13+ which is giving the "didCancel" response. This is not an issue with the image picker (well, the docs could be clearer) This is a PERMISSION ISSUE! The fix should look like this:
This should fix up any Android 13 Video capture issues related to didCancel. Since at least the 4 of us have had this issue (and I assume more) They should make more of a stink about it in the docs but the code works. ++ wrap a little magic around this using Platform.OS to account for iOS and you're back in business! |
Thanks for the suggestion @DaneHoward but permissions have already been obtained in my case. The video capture simply doesn't work on Android emulators running Android 13 for me. It works fine on a real device though, and image capturing works fine on both emulators and real devices. |
same here doesn't work in android 13 emulator
|
Version
Tell us which versions you are using:
Platform
Expected behaviour
Videos are captured successfully on openCamera with mediaType option 'video'
Actual behaviour
When capturing a video on Android SDK 33 / Android 13 -> The only response is that the user cancelled even if that's not the case
Steps to reproduce
Init project
Install react-native-image-crop-picker
Try to capture video on an Android 13 (SDK 33) device
Only response on RN side is "Error: User cancelled image selection"
Response in Android emulator is attached below
Additional Info
I wanted to add this section because I've already done some research and hope that helps
Attachments
// stacktrace or any other useful debug info
I get this bad boy in the Android Emulator:
Love react-native-image-crop-picker? Please consider supporting our collective:
👉 https://opencollective.com/react-native-image-crop-picker/donate
The text was updated successfully, but these errors were encountered: