Open DastanIqbal opened 6 years ago
Does the ffmpeg command stop when pausing the app/activity? This should not happen.
In Android developer settings, did you enable Don't keep activities. Destroy activity as soon as the user leaves it
?
Ya its working when phone is On, on Pause/Stop state. but when I turnoff screen, then its suddenly stopped .
Its disabled Don't keep activities. Destroy activity as soon as the user leaves it
Its happening on certain devices, Tested on these Asus T00J(4.4), Huawei P10 Plus (8.0)
What if you run it in a foreground service?
Ya I have tried service, bind service, thread, Async task, RxJava thread too. In all these cases its same, Let me know if anyting else I can try,
only difference I found in other similar kind of app is they are using dynamic library & using JNI to call ffmpeg method,
and I tried to execute binary from JNI also, by generating .so file for calling & loading ffmpeg binary. but It didn't work.
I asked because when I am executing binary with cmds. Its working fine till, I am not closing screen. but when I press poweroff button, then process stopped suddenly. I was thinking may be I load .so file & execute cmd from JNI, then may be it will work. or may be you can fix poweroff process kill issue.