cropsly / ffmpeg-android-java

Android java library for FFmpeg binary compiled using https://github.com/writingminds/ffmpeg-android
http://writingminds.github.io/ffmpeg-android-java
GNU General Public License v3.0
3.32k stars 831 forks source link

FFmpegLoadLibraryAsyncTask.onPostExecute never gets called #368

Open fmmarzoa opened 3 years ago

fmmarzoa commented 3 years ago

Hi,

I'm writing an app in Kotlin, using an Android 9 device for debugging, and when I try to load the ffmpeg executable the onPostExecute method of the FFmpegLoadLibraryAsyncTask never gets called for unknown reasons.

I have set up breakpoints here and there and I see that the doInBackground method is executed as expected and it must be returning true at the end (return ffmpegFile.exists() && ffmpegFile.canExecute() since both of these are true), but then the onPostExecute method of the AsyncTask is never called and so my own FFmpegLoadBinaryResponseHandler callbacks that should be called from there aren't neither.

Any ideas on how to fix this?

I'm thinking that maybe something to do with using Kotlin, since I'm using this same library in other project with Java and running it in the same phone works as expected.

Thanks, Fran