a914-gowtham / android-video-trimmer

Helps to trim local videos with compress option on Android applications using Exoplayer 2 and FFmpeg.
Other
380 stars 117 forks source link

android 13 cant trim video permission denied.WRITE_EXTERNAL_SORAGE -> READ_EXTERNAL_VIDEO #94

Closed shagi1234 closed 1 year ago

farukkyldzx commented 1 year ago

do you have a solution for this problem?

shagi1234 commented 1 year ago

i cant solve it

a914-gowtham commented 1 year ago

@shagi1234 is this happening for all videos?

brendancooper1332 commented 1 year ago

I believe that the checkStoragePermission function in ActVideoTrimmer.java would need to be ` private boolean checkStoragePermission() { if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { return checkPermission( Manifest.permission.READ_MEDIA_VIDEO, Manifest.permission.ACCESS_MEDIA_LOCATION); } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { return checkPermission( Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.ACCESS_MEDIA_LOCATION); } else return checkPermission(Manifest.permission.READ_EXTERNAL_STORAGE);

}`
a914-gowtham commented 1 year ago

@brendancooper1332 you are right. added in v1.7.14

shagi1234 commented 1 year ago

is it working then api33 .

a914-gowtham commented 1 year ago

@shagi1234 yes it works