Inside a Foreground Service I encode media with FFMPEG. By logging the encode progress I noticed the process gets paused(in some devices)
while device connect
device connect
You need to implement it as ForegroundService. It is required to avoid the pausing at least from API Level 26.
ForegroundService