VideoCrop icon indicating copy to clipboard operation
VideoCrop copied to clipboard

Doesn't work in Android 10

Open pranishres opened this issue 4 years ago • 10 comments

pranishres avatar Oct 08 '20 15:10 pranishres

Please describe a little more information on what's the problem?

VivekThummar52 avatar Dec 16 '20 05:12 VivekThummar52

I have tested it and it's not working on devices that have Android 10 and 11

aldrek avatar Jan 09 '21 12:01 aldrek

I don't think so, because i have used this and it works fine in all the tested devices with Android 10. Can you please specify where the issue occurs (while opening video or at the time of Saving video)?

VivekThummar52 avatar Jan 10 '21 11:01 VivekThummar52

As fo From 2 November 2020, app updates must target Android 10 (API level 29) or higher. the target SDK and compile SDK is less than 29 in this repo. when you higher the SDK the error pops up. I have found a solution I could make a pr to fix this repo

aldrek avatar Jan 28 '21 09:01 aldrek

So, basically the solution is to simply add "requestLegacyExternalStorage=true" in manifest file?

VivekThummar52 avatar Jan 28 '21 14:01 VivekThummar52

even with requestLegacyExternalStorage still, there is a crash happening Capture

aldrek avatar Jan 29 '21 14:01 aldrek

@aldrek in first line, you can see error "permission denied". So,can you please check if you have added any required permissions or not?

VivekThummar52 avatar Jan 29 '21 14:01 VivekThummar52

it's not related to any manifest permission. As from android 10, no external binaries are allowed to be executed for security concern I would recommend using a well-supported library for decoding the video. like this one https://github.com/tanersener/mobile-ffmpeg

aldrek avatar Jan 29 '21 18:01 aldrek

@aldrek yeah, sorry for that, that's what I'm using since more than one year but i thought you are cropping video using UI based tools,by the way best of luck!!

VivekThummar52 avatar Jan 29 '21 19:01 VivekThummar52

you need to update the ffmpeg

proyo-code avatar Mar 03 '21 01:03 proyo-code